From 1e8ee5eace2bf2e22c5d894c607e00d38fe8e9bb Mon Sep 17 00:00:00 2001 From: gilardh Date: Sun, 25 Oct 2020 00:19:40 +0200 Subject: [PATCH] Correction of the generation of the t-address --- lib/src/paper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/paper.rs b/lib/src/paper.rs index d29a589..7d7a851 100644 --- a/lib/src/paper.rs +++ b/lib/src/paper.rs @@ -47,7 +47,7 @@ pub fn double_sha256(payload: &[u8]) -> Vec { /// to get these values. /// Usually these will be different for testnet and for mainnet. pub struct CoinParams { - pub taddress_version: [u8; 2], + pub taddress_version: [u8; 1], pub tsecret_prefix : [u8; 1], pub zaddress_prefix : String, pub zsecret_prefix : String, @@ -57,7 +57,7 @@ pub struct CoinParams { pub fn params() -> CoinParams { CoinParams { - taddress_version : [0x1C, 0xB8], + taddress_version : [0x3c], tsecret_prefix : [0xBC], zaddress_prefix : "zs".to_string(), zsecret_prefix : "secret-extended-key-main".to_string(),