Public key length issue #241
Answered
by
rohanbeemup
rohanbeemup
asked this question in
Q&A
-
Hello everyone, I am trying to use sign.detached.verify function which expects public key of length 32. The issue I am facing is that the length of the public key I am using is 44 ( I am assuming public key is the wallet id and I am using "new TextEncoder().encode()" to convert the plain public key string to uint8array. Any idea what could be the issue? |
Beta Was this translation helpful? Give feedback.
Answered by
rohanbeemup
May 11, 2022
Replies: 1 comment
-
Resolved by using decode function from bs58 package |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rohanbeemup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolved by using decode function from bs58 package
https://www.npmjs.com/package/bs58