Skip to content

bx address embed

evoskuil edited this page Oct 13, 2014 · 13 revisions

Generate a Bitcoin address with an embedded record of binary data.

$ bx address-embed --help
Usage: bx address-embed [-h] [--config VALUE] [--version VALUE] [DATA]

Info: Generate a Bitcoin 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 Bitcoin 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.

Example 1

$ bx address-embed "Satoshi Nakamoto"
168LnUjqoJLie1PW5dTaF2vKUU9Jf6Fe4a
$ bx address-embed -v 42 "Satoshi Nakamoto"

HzKg93FwcsoWzDF97FSxcJMMuexvUhjGKa

BX Menu

Clone this wiki locally