verifymessage - Hush 3.10.3 RPC

verifymessage "hushaddress" "signature" "message"

Verify a signed message

Arguments:
1. "hushaddress"    (string, required) The Hush address to use for the signature.
2. "signature"       (string, required) The signature provided by the signer in base 64 encoding (see signmessage).
3. "message"         (string, required) The message that was signed.

Result:
true|false   (boolean) If the signature is verified or not.

Examples:

Unlock the wallet for 30 seconds
> hush-cli walletpassphrase "mypassphrase" 30

Create the signature
> hush-cli signmessage "RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z" "my message"

Verify the signature
> hush-cli verifymessage "RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z" "signature" "my message"

As json rpc
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "verifymessage", "params": ["RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z", "signature", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:18031/


Maintained by The Hush Developers

Welcome to the Hush full node RPC developer documentation!!! You finally made it.