Bitcoin Forum
May 27, 2024, 06:19:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin-bash-tools now partially supports BIP-0032  (Read 103 times)
grondilu (OP)
Legendary
*
Offline Offline

Activity: 1288
Merit: 1076


View Profile
August 24, 2021, 06:06:04 PM
Merited by ABCbits (11), malevolent (9), pooya87 (5), HCP (5), NotATether (5), hugeblack (4), o_e_l_e_o (4), n0nce (2)
 #1

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.

pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10593



View Profile
August 25, 2021, 03:29:09 AM
Merited by HCP (2), ABCbits (1)
 #2

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

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
grondilu (OP)
Legendary
*
Offline Offline

Activity: 1288
Merit: 1076


View Profile
August 25, 2021, 06:22:37 AM
 #3

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!