-
Notifications
You must be signed in to change notification settings - Fork 177
bx wrap encode
evoskuil edited this page Oct 24, 2014
·
9 revisions
Add a version byte and checksum to Base16 data.
$ bx wrap-encode --help
Usage: bx wrap-encode [-h] [--config VALUE] [--version VALUE] [PAYLOAD]
Info: Add a version byte and checksum to Base16 data.
Options (named):
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
-v [--version] The desired version number.
Arguments (positional):
PAYLOAD The Base16 data to wrap. If not specified the value
is read from STDIN.
See also wrap-decode.
--version 0
$ bx wrap-encode 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
00031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd0065b09d03c
--version 42
$ bx wrap-encode -v 42 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
2a031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006298eebe4
Demonstrate wrap-encode
equivalence to steps 4-8 in Technical background of version 1 Bitcoin addresses.
$ bx wrap-encode 010966776006953d5567439e5e39f86a0d273bee | bx base58-encode
00010966776006953d5567439e5e39f86a0d273beed61967f6
16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM
piped input
$ bx base16-encode "Satoshi Nakamoto" | bx wrap-encode
5361746f736869204e616b616d6f746f
005361746f736869204e616b616d6f746f5311991f
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