-
Notifications
You must be signed in to change notification settings - Fork 179
bx address embed
evoskuil edited this page Mar 2, 2017
·
13 revisions
Create a payment address with an embedded record of binary data.
$ bx address-embed --help
Usage: bx address-embed [-h] [--config VALUE] [--version VALUE] [DATA]
Info: Create a payment address with an embedded record of binary 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 payment address version.
Arguments (positional):
DATA The binary data to encode as Base16. This can be
text or any other data. If not specified the data is
read from STDIN.
The data is hashed as RIPEMD160 and then embedded in a script of the form: dup hash160 [RIPEMD160] equalverify checksig
. The script is then serialized, hashed as RIPEMD160, and used with the specified version to create a Bitcoin payment address.
See the list of Bitcoin address prefixes for a detailed description of version
.
$ bx address-embed "Satoshi Nakamoto"
168LnUjqoJLie1PW5dTaF2vKUU9Jf6Fe4a
piped input
$ echo Satoshi Nakamoto | bx address-embed
Satoshi Nakamoto
168LnUjqoJLie1PW5dTaF2vKUU9Jf6Fe4a
--version 111 (testnet)
$ bx address-embed -v 111 "Satoshi Nakamoto"
mkeJ5XppcKmyR7s7oCRx4x8eLTk1Xrso8t
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