Bitcoin full node and query server

Aug 9, 2018

View in context in the libbitcoin Slack #general mirror.

skaht14:27
About to answer your question, bur let me finish this point… Here is how bx can synthesize BIP 49 segwit style Bitcoin private key and the associated addresses (BIP 49 P2WPKH-nested-in-P2SH):
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 49 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | sed 's/$/01/' | bx base58check-encode -v 128
KzTmMJpH9hK9UVzWcnf4zuxnPDwfqtia8MamFpV8xFwg6SQ3QNX6
% echo "This is a really bad low entropy brain wallet" | bx base16-encode | bx sha256 | cut -c 1-64 | bx mnemonic-new | bx mnemonic-to-seed -p "sucks" | bx hd-new | bx hd-private -d -i 49 | bx hd-private -d -i 0 | bx hd-public -d -i 0 | bx hd-public -i 0 | bx hd-public -i 0 | bx hd-to-ec | bx bitcoin160
2228fd761aaf4da7471d3f08aeb33bf05d3ec2b5
% echo "0 [2228fd761aaf4da7471d3f08aeb33bf05d3ec2b5]" | bx script-to-address -v 5
3M6Wkk3Edxreat9FyJR5XNMgzckJnC3Bb9