Bitcoin Forum
September 27, 2018, 10:31:11 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Golang BIP 32 implementation  (Read 1827 times)
WeMeetAgain
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
January 06, 2014, 02:11:53 AM
 #1

I made a little BIP 32 implementation in Go. Hierarchical deterministic wallets, yay!

https://github.com/WeMeetAgain/go-hdwallet
documentation: http://godoc.org/github.com/WeMeetAgain/go-hdwallet

It tests against the BIP 32 page  test vectors (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#test-vectors) and passes. (I'm sure it could use more eyes on the code, though)

I used this as reference: https://github.com/vbuterin/pybitcointools/blob/master/pybitcointools/deterministic.py

Examples included in README!

Cheers!

Edit: changed repo name, added documentation link
1538087471
Hero Member
*
Offline Offline

Posts: 1538087471

View Profile Personal Message (Offline)

Ignore
1538087471
Reply with quote  #2

1538087471
Report to moderator
1538087471
Hero Member
*
Offline Offline

Posts: 1538087471

View Profile Personal Message (Offline)

Ignore
1538087471
Reply with quote  #2

1538087471
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538087471
Hero Member
*
Offline Offline

Posts: 1538087471

View Profile Personal Message (Offline)

Ignore
1538087471
Reply with quote  #2

1538087471
Report to moderator
sidazhang
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
January 06, 2014, 05:53:32 AM
 #2

Looks good!

I love seeing Bitcoin Go projects. It is just such a nicer language to write compares to c++
tacotime
Legendary
*
Offline Offline

Activity: 1484
Merit: 1000



View Profile
January 06, 2014, 07:59:41 PM
 #3

Looks good!

I love seeing Bitcoin Go projects. It is just such a nicer language to write compares to c++

You'll like MC2 then, we're coding it entirely in Go. Wink

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
Chillance
Sr. Member
****
Offline Offline

Activity: 307
Merit: 250


View Profile
February 12, 2017, 11:48:20 PM
 #4

I made a little BIP 32 implementation in Go. Hierarchical deterministic wallets, yay!

https://github.com/WeMeetAgain/go-hdwallet
documentation: http://godoc.org/github.com/WeMeetAgain/go-hdwallet

It tests against the BIP 32 page  test vectors (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#test-vectors) and passes. (I'm sure it could use more eyes on the code, though)

I used this as reference: https://github.com/vbuterin/pybitcointools/blob/master/pybitcointools/deterministic.py

Examples included in README!

Cheers!

Edit: changed repo name, added documentation link

Hey! This is cool and looks like what I need. So, I have this Electrum Master Public Key, but I'm not exactly sure how I would use this library with that to get the addresses. Could you help me with this? I shouldn't have to use the seed or any private key for this to work as far as I know.

Thanks!
Chillance
Sr. Member
****
Offline Offline

Activity: 307
Merit: 250


View Profile
February 14, 2017, 12:58:10 AM
 #5

Ok, solved it using https://github.com/btcsuite/btcutil/tree/master/hdkeychain Smiley
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!