diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2013-07-15 01:05:25 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2013-07-15 01:05:25 +0200 |
commit | eb2c999050cc17f8926bfa7a3dad74801c7ac4af (patch) | |
tree | c5adba99014c72f7f465f4732b137309fb11bf58 /src/chainparams.cpp | |
parent | 8388289eb6dfc9add233f8f8b536f84caf771fa6 (diff) |
BIP32 derivation implementation
Diffstat (limited to 'src/chainparams.cpp')
-rw-r--r-- | src/chainparams.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 69636e5be5..49873023ae 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -147,6 +147,8 @@ public: base58Prefixes[PUBKEY_ADDRESS] = list_of(0); base58Prefixes[SCRIPT_ADDRESS] = list_of(5); base58Prefixes[SECRET_KEY] = list_of(128); + base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E); + base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4); // Convert the pnSeeds array into usable address objects. for (unsigned int i = 0; i < ARRAYLEN(pnSeed); i++) @@ -209,6 +211,8 @@ public: base58Prefixes[PUBKEY_ADDRESS] = list_of(111); base58Prefixes[SCRIPT_ADDRESS] = list_of(196); base58Prefixes[SECRET_KEY] = list_of(239); + base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF); + base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94); } virtual Network NetworkID() const { return CChainParams::TESTNET; } }; |