verifymessagebip322
verifymessagebip322 "address" "signature" "message" Verify a BIP-322 signed message for any address type (P2PKH, P2WPKH, P2TR, etc.). Arguments: 1. address (string, required) The bitcoin address that signed the message. 2. signature (string, required) The BIP-322 signature in base64 encoding. 3. message (string, required) The message that was signed. Result: true|false (boolean) If the signature is verified or not. Examples: > bitcoin-cli verifymessagebip322 "bc1q..." "<signature>" "TENSORCASH_GOVERNANCE:..." > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "verifymessagebip322", "params": ["bc1q...", "<signature>", "TENSORCASH_GOVERNANCE:..."]}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
verifymessagebip322(address: string, signature: string, message: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"verifymessagebip322","params":["\"<address>\"","\"<signature>\"","\"<message>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| address | string | yes | The bitcoin address that signed the message. |
| signature | string | yes | The BIP-322 signature in base64 encoding. |
| message | string | yes | The message that was signed. |
Result
Type: any
true|false (boolean) If the signature is verified or not.
Source: services/core-node/bcore/src/rpc/bip322.cpp:157
C++ symbol: verifymessagebip322