VerifyMessage in server-side
This scenario mainly explains how the server-side verify the result of the signMessage. Fields verification can also be implemented using mina-signer. Only signMessage examples are provided here.
The features is implemented through mina-signer.
mina-signer is the NodeJS SDK provided by Mina Protocol for sign, verify signatures, etc.
Verify Message
Add mina-signer to
package.json
.
Import and init mina-signer.
There are two types of initialization supported here. The main network type is mainnet, and the type of other network are testnet. See original definition.
Implement code.
This is an example of server-side verification of signature. You can refer to the implementation or run it locally.
Last updated