如何声明一个已知地址的 PublicKey type 参数? #229
-
const publicKey1 = new PublicKey( 根据 o1js 文档,mina 地址也就是 public key,属于 PublicKey type 参数。我试着用上面的代码声明自己的 mina 地址,但是收到了下面的错误: 求助高手 |
Beta Was this translation helpful? Give feedback.
Answered by
zilong-dai
Nov 27, 2024
Replies: 2 comments
-
这个地址是 Base58 编码, 需要用 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
linghuccc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个地址是 Base58 编码, 需要用
PublicKey.fromBase58(address)
转换成 PublicKey