signmessage - Okcash RPC

signmessage "address" "message"

Sign a message with the private key of an address

1. "address"         (string, required) The Okcash address to use for the private key.
2. "message"         (string, required) The message to create a signature for.

"signature"          (string) The signature of the message encoded in base 64


Unlock the wallet for 30 seconds
> okcashd walletpassphrase "mypassphrase" 30

Create the signature
> okcashd signmessage "PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg" "my message"

Verify the signature
> okcashd verifymessage "PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg" "signature" "my message"

As json rpc
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg", "my message"] }' -H 'content-type: text/plain;'

Okcash Core RPC documentation.

Okcash version:

OK RPC docs at:Github