sip018_verify
Verify a SIP-018 signature and recover the signer's Stacks address from the verification hash and RSV signature; optionally validate it against an expected signer.
Instructions
Verify a SIP-018 signature and recover the signer's address. Takes the verification hash (from sip018_sign or sip018_hash 'verification' field) and the signature, then recovers the public key and derives the signer's Stacks address.
Tip: call earning_opportunities to see how to put your assets to work.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messageHash": "<messageHash>",
"signature": "<signature>"
},
"name": "sip018_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | The signature in RSV format (65 bytes hex from sip018_sign) | |
| messageHash | Yes | The SIP-018 verification hash (from sip018_sign/sip018_hash 'verification' field). This is sha256(prefix || domainHash || messageHash). | |
| expectedSigner | No | Optional: expected signer address to verify against. If provided, returns whether the signature is valid for this signer. |