novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

Implement deterministic wallets #487

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
BIP32 HD wallets are easier to back up, especially when combined with mnemonic 
codes. Matija Mazi and Ken Segwick already contributed code that implements the 
core BIPs, now it needs to be integrated with the rest of the system.

The first part of this work is to refactor key chain management out from the 
wallet, and ensure that the new interfaces support deterministic keychains. It 
is being done on this branch:

https://code.google.com/r/hearn-bitcoinj/source/list?name=keychain

Work remaining on this first step:

1) Split the encryption code in BasicKeyChain out into a subclass, as it's not 
useful for the deterministic parts.

2) Add serialization of the keys into the KeyChains. Implement a protobuf 
serialization scheme for HD keychains.

3) Add generation of the bloom filters into the KeyChains.

The next step after that is rewriting the wallet to use the new classes. All 
this is a functionality no-op for now, from the users perspective.

Original issue reported on code.google.com by hearn@google.com on 26 Nov 2013 at 1:07

GoogleCodeExporter commented 9 years ago
This has now landed (in an incomplete form) in git master. Key rotation needs 
to be repaired, auto upgrade needs to be done and interaction with Bloom 
filtering still isn't quite right, but the bulk of the heavy lifting is done.

Original comment by mh.in.en...@gmail.com on 29 May 2014 at 6:31

GoogleCodeExporter commented 9 years ago
Currently everything except Bloom filter auto-rescans is done. I've attached a 
program that demonstrates the issue caused by lack of auto-rescan. It's Kotlin. 
I might check it in later as the seed of a regression test suite.

Original comment by mh.in.en...@gmail.com on 8 Sep 2014 at 4:45

Attachments:

GoogleCodeExporter commented 9 years ago
Done with the 0.12 release.

Original comment by mh.in.en...@gmail.com on 21 Oct 2014 at 4:23