signmessagewithprivkey

Back to util

Summary

Sign a message with the private key of an address

Description

Sign a message with the private key of an address

Arguments

  • privkey (STR, required): The private key to sign the message with.
  • message (STR, required): The message to create a signature of.

Results

  • signature (STR): The signature of the message encoded in base 64

Examples

Create the signature
qbit-cli signmessagewithprivkey "privkey" "my message"
Verify the signature
qbit-cli verifymessage "QbURpsSa6XFTg61KScF1yntyVDVb1742e2" "signature" "my message"
As a JSON-RPC call
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "signmessagewithprivkey", "params": ["privkey", "my message"]}' -H 'content-type: application/json' http://127.0.0.1:8352/