Skip to content

bx message sign

evoskuil edited this page Dec 12, 2014 · 14 revisions

Create a message signature.

$ bx message-sign --help
Usage: bx message-sign [-h] [--config VALUE] WIF [MESSAGE]               

Info: Create a message signature.                                        

Options (named):

-c [--config]        The path to the configuration settings file.        
-h [--help]          Get a description and instructions for this command.

Arguments (positional):

WIF                  The WIF private key to use for signing.             
MESSAGE              The binary message data to sign. If not specified   
                     the message is read from STDIN.

By signing data provided by another party the signer can prove to that party ownership of a Bitcoin address. This can be carried out over a public network and does not risk compromise of the private key of the address.

The WIF key used in signing must correspond to the Bitcoin address for which validation is required. Otherwise subsequent validation against that address will fail. WIF keys contain a flag indicating whether the corresponding Bitcoin address is derived from the corresponding EC public key in the compressed or the uncompressed format.

See also message-validate.

Example 1

$ bx message-sign L13gvvM3TtL2EmfBdye8tp4tQhcbCG3xz3VPrBjSZL8MeJavLL8K "Who is John Galt?"
IPEb09fvqo/QMFq2kf8PC3cEcWs0C+7Kv8ImKNkUv3I3CvVwDzHkjgJHGYWnFhpbQRQJKQFd+Bww/1qUpNjh0J0=

Example 2

routed input, sign self

$ bx message-sign L13gvvM3TtL2EmfBdye8tp4tQhcbCG3xz3VPrBjSZL8MeJavLL8K < bx.exe
II/InhNcMd4PlrEkpp7sJTeR42okpc4b/JgojxnMib7lSNvTicnSahDxuOjZbO3WJWRdocUa3UtyrW1YEIh3wDY=

BX Menu

Clone this wiki locally