-
Notifications
You must be signed in to change notification settings - Fork 180
bx message validate
Eric Voskuil edited this page Oct 3, 2015
·
12 revisions
Validate a message signature.
$ bx message-validate --help
Usage: bx message-validate [-h] [--config VALUE] PAYMENT_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):
PAYMENT_ADDRESS The payment 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.
$ bx message-validate 1BCyH5qVL5EkfhQnw4WmqfDDekJefKYEYj IPEb09fvqo/QMFq2kf8PC3cEcWs0C+7Kv8ImKNkUv3I3CvVwDzHkjgJHGYWnFhpbQRQJKQFd+Bww/1qUpNjh0J0= "Who is John Galt?"
The signature is valid.
invalid signature
$ bx message-validate 1BCyH5qVL5EkfhQnw4WmqfDDekJefKYEYj IPEb09fvqo/QMFq2kf8PC3cEcWs0C+7Kv8ImKNkUv3I3CvVwDzHkjgJHGYWnFhpbQRQJKQFd+Bww/1qUpNjh0J0= "Who is John Galt"
The signature is not valid.
routed input, validate self
$ bx message-validate 1BCyH5qVL5EkfhQnw4WmqfDDekJefKYEYj II/InhNcMd4PlrEkpp7sJTeR42okpc4b/JgojxnMib7lSNvTicnSahDxuOjZbO3WJWRdocUa3UtyrW1YEIh3wDY= < bx.exe
The signature is valid.
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands