-
Notifications
You must be signed in to change notification settings - Fork 179
bx wrap decode
Eric Voskuil edited this page Apr 22, 2017
·
12 revisions
Validate the checksum of checked Base16 data and recover its version and payload.
$ bx wrap-decode --help
Usage: bx wrap-decode [-h] [--config VALUE] [--format VALUE] [WRAPPED]
Info: Validate the checksum of checked Base16 data and recover its
version and payload.
Options (named):
-c [--config] The path to the configuration settings file.
-f [--format] The output format. Options are 'info', 'json' and
'xml', defaults to 'info'.
-h [--help] Get a description and instructions for this command.
Arguments (positional):
WRAPPED The Base16 data to unwrap. If not specified the
value is read from STDIN.
See also wrap-encode.
version 0
$ bx wrap-decode 00031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd0065b09d03c
wrapper
{
checksum 1020266843
payload 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
version 0
}
version 42
$ bx wrap-decode 2a031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006298eebe4
wrapper
{
checksum 3840642601
payload 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
version 42
}
piped input
$ echo 2a031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006298eebe4 | bx wrap-decode
wrapper
{
checksum 3840642601
payload 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
version 42
}
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