verifymessage
The verifymessage is a Litecoin RPC method that allows users to verify a signed message using a Litecoin address. This method can be used to confirm the authenticity of a message by verifying that the signature was created by the owner of the address, without revealing the private key. Use cases include proving ownership of an address, verifying the content of a message, or validating communications within a trustless system.
Parameters
The verifymessage method accepts three required parameters:
parameter | type | description |
|---|---|---|
address | string | The Litecoin address that supposedly signed the message. |
signature | string | The base64-encoded signature of the message. |
message | string | The message that was signed. |
Return Object
The verifymessage method returns a single boolean value:
name | description |
|---|---|
isvalid | Indicates if the signature is valid for the given message and address. |
Request Example
Request