In this PR I've added two new sub-commands for the wallet command group:
mxpy wallet sign-message
mxpy wallet verify-message
mxpy wallet sign-message
This command is used to sign a message. It requires the --message argument and you'll also need to pass in a wallet that will be used for signing the message.
When running mxpy wallet sign-message --message test --pem alice.pem the output will look something like this:
This command is used for verifying a previously signed message. It requires the --address argument which is the bech32 address of the signer, the --message argument which represents the signed message(in readable format) and the --signature argument which is the message signature hex encoded.
To verify the message signed above we can run the following command:
In this PR I've added two new sub-commands for the
wallet
command group:mxpy wallet sign-message
mxpy wallet verify-message
mxpy wallet sign-message
This command is used to sign a message. It requires the
--message
argument and you'll also need to pass in a wallet that will be used for signing the message.When running
mxpy wallet sign-message --message test --pem alice.pem
the output will look something like this:mxpy wallet verify-message
This command is used for verifying a previously signed message. It requires the
--address
argument which is thebech32
address of the signer, the--message
argument which represents the signed message(in readable format) and the--signature
argument which is the message signature hex encoded.To verify the message signed above we can run the following command:
The output will look like this:
In case the message was not signed by someone with that address the output will be: