bitcoinx/ngcccbase — pull request #110 by jimmysong (2013-12-11 04:17:16+00:00)
Title: Issue #65: Make wallets use BIP0032 from pycoin

I used the strategy of using the entire sha256 hash of the color description by using them 4 bytes at a time.

Specifically, each 4-byte sequence was used as the "child". So if the sha256 hash of the earliest color description looks like this in hex:

00000001 00000002 00000003 00000004 00000005 00000006 00000007 00000008

Then the actual wallet used for that color corresponds to

m/1/2/3/4/5/6/7/8

The first address would be
m/1/2/3/4/5/6/7/8/0

The special case of bitcoin also has a sha256 hash of an empty string, which also maps.

The special case of genesis addresses are stored at m/0/i where i is the ith generated color.