signmessage - Zcash 5.5.0 RPC

signmessage "t-addr" "message"

Sign a message with the private key of a t-addr

1. "t-addr"  (string, required) The transparent address to use to look up the private key.
   that will be used to sign the message.
2. "message" (string, required) The message to create a signature of.

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


Unlock the wallet for 30 seconds
> zcash-cli walletpassphrase "mypassphrase" 30

Create the signature
> zcash-cli signmessage "t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1" "my message"

Verify the signature
> zcash-cli verifymessage "t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1" "signature" "my message"

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

Maintained by @_garethtdavies; modified by: mdr0id;license of the docs is MIT (see zcash repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet zcash node