Sign Message
Once an application is connected to Martian wallet via connect method, it can also request that the user signs a given message using given api. Applications are free to write their own messages which will be displayed to users from within Martian's signature prompt. Message signatures do not involve network fees and are a convenient way for apps to verify ownership of an address. It takes one parameter listed below:
For more information on how to verify the signature of a message, please refer to tweetnacl-js.
Below is an example code describing the way to sign a message.
Last updated