verifymessage - Particl RPC

verifymessage "address" "signature" "message"

Verify a signed message

Arguments:
1. "particladdress"    (string, required) The particl 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
> particl-cli walletpassphrase "mypassphrase" 30

Create the signature
> particl-cli signmessage "PswXnorAgjpAtaySWkPSmWQe3Fc8LmviVc" "my message"

Verify the signature
> particl-cli verifymessage "PswXnorAgjpAtaySWkPSmWQe3Fc8LmviVc" "signature" "my message"

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


This is a website, created out of frustration with uncomplete and outdated Particl Core RPC documentation online.

Particl version: 0.16.0.1

Note that the RPC is from a regtest node (for completeness), so it includes some additional calls that a regular node doesn't have.


Anon






Mnemonic