Bitcoin Forum
April 14, 2024, 08:02:27 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Golang BIP 32 implementation  (Read 1945 times)
WeMeetAgain (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 11


View Profile
January 06, 2014, 02:11:53 AM
Last edit: January 09, 2014, 06:46:00 AM by WeMeetAgain
Merited by ABCbits (11)
 #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
1713124947
Hero Member
*
Offline Offline

Posts: 1713124947

View Profile Personal Message (Offline)

Ignore
1713124947
Reply with quote  #2

1713124947
Report to moderator
1713124947
Hero Member
*
Offline Offline

Posts: 1713124947

View Profile Personal Message (Offline)

Ignore
1713124947
Reply with quote  #2

1713124947
Report to moderator
1713124947
Hero Member
*
Offline Offline

Posts: 1713124947

View Profile Personal Message (Offline)

Ignore
1713124947
Reply with quote  #2

1713124947
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713124947
Hero Member
*
Offline Offline

Posts: 1713124947

View Profile Personal Message (Offline)

Ignore
1713124947
Reply with quote  #2

1713124947
Report to moderator
1713124947
Hero Member
*
Offline Offline

Posts: 1713124947

View Profile Personal Message (Offline)

Ignore
1713124947
Reply with quote  #2

1713124947
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: 1005



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

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