Author

Topic: bitcoin-bash-tools now partially supports BIP-0032 (Read 102 times)

legendary
Activity: 1288
Merit: 1076
You seem to be missing BIP350[1] which is the new encoding mode for Bech32 encoding that must be used for any SegWit address with witness version >=1.

[1] https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki

Indeed.   I added it to the TODO list.  Thanks.
legendary
Activity: 3402
Merit: 10424
You seem to be missing BIP350[1] which is the new encoding mode for Bech32 encoding that must be used for any SegWit address with witness version >=1.

[1] https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki
legendary
Activity: 1288
Merit: 1076
One of the oldest bitcoin libraries just had a make-over!

https://github.com/grondilu/bitcoin-bash-tools

I've tried to make the code cleaner (fewer abuses of sed for instance) but I also added support for bech32 and a preliminary support for bip-0032.  So far only master key generation is implemented but arguably that is the most difficult part.   Child key derivation should be coming soon.

I also separated the code in several files, each file being useful on his own I think.  Base58 and bech32 for instance are encoding schemes that could conceivably be used for bitcoin non-related tasks.   I may switch back to a single file if some feedback suggests it'd be better.

There is also an additional requirement with jq (https://stedolan.github.io/jq/) to process JSON.  I know I wanted as few dependencies on external programs as possible but this one is very nice and useful.  Again if some feedback suggests I should remove it, I will.
Jump to: