Skip to content

bx message validate

evoskuil edited this page Dec 12, 2014 · 12 revisions

Validate a message signature.

$ bx message-validate --help
Usage: bx message-validate [-h] [--config VALUE] BITCOIN_ADDRESS         
SIGNATURE [MESSAGE]                                                      

Info: Validate 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):

BITCOIN_ADDRESS      The Bitcoin address of the message signer.          
SIGNATURE            The message signature.                              
MESSAGE              The binary message data for which the signature     
                     applies. If not specified the message is read from  
                     STDIN.

A valid signature proves ownership of the Bitcoin address used in validation. However it is important that the message used in verification be unpredictable to the signer and provided by the party requiring the validation. Otherwise the process is subject to a replay attack.

See also message-sign.

Example 1

$ bx message-validate 1BCyH5qVL5EkfhQnw4WmqfDDekJefKYEYj H5+jQAbiQpbLa8n5QTcHJ5fyBUDs9oqLylQEV/dsWY8ket/RbrYqDXhCZvoKUQENgNTb79U8SQUUuYhzsTM+ZHc= "Satoshi Nakamoto"
The signature is valid.

Example 2

routed input, validate self

$ bx message-validate 1BCyH5qVL5EkfhQnw4WmqfDDekJefKYEYj II/InhNcMd4PlrEkpp7sJTeR42okpc4b/JgojxnMib7lSNvTicnSahDxuOjZbO3WJWRdocUa3UtyrW1YEIh3wDY= < bx.exe
The signature is valid.

BX Menu

Clone this wiki locally