From d5d2fb71cfe83e54a79d388bed783fc30fa7eda7 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Wed, 15 Jun 2016 16:15:54 -0600 Subject: [PATCH] Guarantee first two bytes of spending key are SK --- src/chainparams.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 8246a566f..ac0c71adf 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -107,7 +107,8 @@ public: base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xAD)(0xE4).convert_to_container >(); // guarantees the first two characters, when base58 encoded, are "zc" base58Prefixes[ZCPAYMENT_ADDRRESS] = {22,154}; - base58Prefixes[ZCSPENDING_KEY] = {22,180}; + // guarantees the first two characters, when base58 encoded, are "SK" + base58Prefixes[ZCSPENDING_KEY] = {171,54}; vFixedSeeds = std::vector(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); @@ -186,7 +187,7 @@ public: base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0x87)(0xCF).convert_to_container >(); base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container >(); base58Prefixes[ZCPAYMENT_ADDRRESS] = {22,155}; - base58Prefixes[ZCSPENDING_KEY] = {22,181}; + base58Prefixes[ZCSPENDING_KEY] = {171,55}; vFixedSeeds = std::vector(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));