Skip to content

bx base58check encode

evoskuil edited this page Oct 24, 2014 · 8 revisions

Convert a Base16 value to Base58Check.

$ bx base58check-encode --help
Usage: bx base58check-encode [-h] [--config VALUE] [--version VALUE]
[BASE16]

Info: Convert a Base16 value to Base58Check.

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):

BASE16               The Base16 value to Base58Check encode. If not
                     specified the value is read from STDIN.

See Base58Check encoding for a detailed description of the encoding.

See also base58check-decode.

Example 1

$ bx base58check-encode 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
173RKgkk7fMbYUYBGyyAHeZ6rwfKRMn17h7DtGsmpEdab8TV6UB

Example 2

version 42

$ bx base58check-encode -v 42 031bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
7DTXS6pY6a98XH2oQTZUbbd1Z7P4NzkJqfraixprPutXQVTkwBGw

Example 3

piped commands

$ bx base16-encode "Satoshi Nakamoto" | bx base58check-encode
5361746f736869204e616b616d6f746f
12ANjYr7zPnxRdZfnmC2e6jjHDpBY

Notice that the following commands produce the equivalent result.

$ bx base16-encode "Satoshi Nakamoto" | bx wrap-encode | bx base58-encode
5361746f736869204e616b616d6f746f
005361746f736869204e616b616d6f746f5311991f
12ANjYr7zPnxRdZfnmC2e6jjHDpBY

BX Menu

Clone this wiki locally