signmessage - Okcash RPC

signmessage "address" "message"

Sign a message with the private key of an address

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

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

Examples:

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;' http://127.0.0.1:6969/


Okcash Core RPC documentation.

Okcash version: 5.0.0.3

OK RPC docs at:Github