verifymessage

Back to util

Summary

Verify a signed message.

Description

Verify a signed message.

Arguments

  • address (STR, required): The qbit address to use for the signature.
  • signature (STR, required): The signature provided by the signer in base 64 encoding (see signmessage).
  • message (STR, required): The message that was signed.

Results

  • value (BOOL): If the signature is verified or not.

Examples

Unlock the wallet for 30 seconds
qbit-cli walletpassphrase "mypassphrase" 30
Create the signature
qbit-cli signmessage "QbURpsSa6XFTg61KScF1yntyVDVb1742e2" "my message"
Verify the signature
qbit-cli verifymessage "QbURpsSa6XFTg61KScF1yntyVDVb1742e2" "signature" "my message"
As a JSON-RPC call
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "verifymessage", "params": ["QbURpsSa6XFTg61KScF1yntyVDVb1742e2", "signature", "my message"]}' -H 'content-type: application/json' http://127.0.0.1:8352/