stacks_verify_message
Verify a Stacks message signature, recover the signer's address, and optionally check it against an expected signer for SIWS authentication flows.
Instructions
Verify a Stacks message signature and recover the signer's address. Takes the original message and signature, applies the Stacks prefix, and verifies. Compatible with SIWS (Sign In With Stacks) authentication flows.
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": {
"message": "<message>",
"signature": "<signature>"
},
"name": "stacks_verify_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The original plain text message that was signed. | |
| signature | Yes | The signature in RSV format (65 bytes hex from stacks_sign_message or wallet signature). Accepts both '0x'-prefixed and bare hex formats. | |
| expectedSigner | No | Optional: expected signer address to verify against. If provided, returns whether the signature is valid for this signer. |