You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use zkma.signMessage (with Ethereum type) to sign the raw message and want to use a public key (e.g., from zkma.{getSendPublicKey, getReceivePublicKey}) to verify the signature of the signed message [1, 2].
How can I do verification with Zion SDK?
The idea is to leverage Zion as a tool to generate secure HW signatures of any small data (texts, images, etc.), like using the traditional GPG tool with a higher security level.
Zion SDK doesn't provide any verify message method on it,
Refer to the below sample code (written in Node JS and use 3rd library 'eth-sig-util'), the original message and the output of signed message is required for the function "recoverPersonalSignature",
if the funciton result is equal to your eth address, it means verify success.
Hi Zion dev team,
I use
zkma.signMessage
(with Ethereum type) to sign the raw message and want to use a public key (e.g., fromzkma.{getSendPublicKey, getReceivePublicKey}
) to verify the signature of the signed message [1, 2].How can I do verification with Zion SDK?
The idea is to leverage Zion as a tool to generate secure HW signatures of any small data (texts, images, etc.), like using the traditional GPG tool with a higher security level.
Any suggestion is welcome!
References
The text was updated successfully, but these errors were encountered: