Skip to content

Commit e835fbf

Browse files
committed
[Stealth] Update base58 prefixes to correct values
1 parent c7953ff commit e835fbf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/chainparams.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ class CMainParams : public CChainParams
219219
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x88)(0xB2)(0x1E).convert_to_container<std::vector<unsigned char> >();
220220
// Dynamic BIP32 prvkeys start with 'xprv' (Bitcoin defaults)
221221
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xAD)(0xE4).convert_to_container<std::vector<unsigned char> >();
222-
// Dynamic Stealth Address start with 'd'
223-
base58Prefixes[STEALTH_ADDRESS] = std::vector<unsigned char>(1, 90);
222+
// Dynamic Stealth Address start with 'L'
223+
base58Prefixes[STEALTH_ADDRESS] = {0x0F};
224224
// Dynamic BIP44 coin type is '5'
225225
nExtCoinType = 5;
226226

@@ -366,7 +366,7 @@ class CTestNetParams : public CChainParams
366366
// Testnet Dynamic BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
367367
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container<std::vector<unsigned char> >();
368368
// Dynamic Stealth Address start with 'T'
369-
base58Prefixes[STEALTH_ADDRESS] = std::vector<unsigned char>(1, 65);
369+
base58Prefixes[STEALTH_ADDRESS] = {0x15};
370370
// Testnet Dynamic BIP44 coin type is '1' (All coin's testnet default)
371371
nExtCoinType = 1;
372372

@@ -529,7 +529,7 @@ class CRegTestParams : public CChainParams
529529
// Regtest Dynamic BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
530530
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container<std::vector<unsigned char> >();
531531
// Dynamic Stealth Address start with 'R'
532-
base58Prefixes[STEALTH_ADDRESS] = std::vector<unsigned char>(1, 60);
532+
base58Prefixes[STEALTH_ADDRESS] = {0x13};
533533
// Regtest Dynamic BIP44 coin type is '1' (All coin's testnet default)
534534
nExtCoinType = 1;
535535
}
@@ -631,19 +631,19 @@ class CPrivateNetParams : public CChainParams
631631
//vSeeds.push_back(CDNSSeedData("", ""));
632632
//vSeeds.push_back(CDNSSeedData("", ""));
633633

634-
// Testnet Dynamic addresses start with 'y'
634+
// Privatenet Dynamic addresses start with 'y'
635635
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1, 30);
636-
// Testnet Dynamic script addresses start with '8' or '9'
636+
// Privatenet Dynamic script addresses start with '8' or '9'
637637
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1, 10);
638-
// Testnet private keys start with '9' or 'c' (Bitcoin defaults)
638+
// Privatenet private keys start with '9' or 'c' (Bitcoin defaults)
639639
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1, 158);
640-
// Testnet Dynamic BIP32 pubkeys start with 'tpub' (Bitcoin defaults)
640+
// Privatenet Dynamic BIP32 pubkeys start with 'tpub' (Bitcoin defaults)
641641
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0x87)(0xCF).convert_to_container<std::vector<unsigned char> >();
642-
// Testnet Dynamic BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
642+
// Privatenet Dynamic BIP32 prvkeys start with 'tprv' (Bitcoin defaults)
643643
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container<std::vector<unsigned char> >();
644-
// Dynamic Stealth Address start with 'P'
645-
base58Prefixes[STEALTH_ADDRESS] = std::vector<unsigned char>(1, 56);
646-
// Testnet Dynamic BIP44 coin type is '1' (All coin's testnet default)
644+
// Privatenet Stealth Address start with 'P'
645+
base58Prefixes[STEALTH_ADDRESS] = {0x12};
646+
// Privatenet Dynamic BIP44 coin type is '1' (All coin's testnet default)
647647
nExtCoinType = 1;
648648

649649
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_privatenet, pnSeed6_privatenet + ARRAYLEN(pnSeed6_privatenet));

0 commit comments

Comments
 (0)