Browse Source

Correction of the generation of the t-address

pull/6/head
gilardh 4 years ago
parent
commit
1e8ee5eace
  1. 4
      lib/src/paper.rs

4
lib/src/paper.rs

@ -47,7 +47,7 @@ pub fn double_sha256(payload: &[u8]) -> Vec<u8> {
/// to get these values. /// to get these values.
/// Usually these will be different for testnet and for mainnet. /// Usually these will be different for testnet and for mainnet.
pub struct CoinParams { pub struct CoinParams {
pub taddress_version: [u8; 2], pub taddress_version: [u8; 1],
pub tsecret_prefix : [u8; 1], pub tsecret_prefix : [u8; 1],
pub zaddress_prefix : String, pub zaddress_prefix : String,
pub zsecret_prefix : String, pub zsecret_prefix : String,
@ -57,7 +57,7 @@ pub struct CoinParams {
pub fn params() -> CoinParams { pub fn params() -> CoinParams {
CoinParams { CoinParams {
taddress_version : [0x1C, 0xB8], taddress_version : [0x3c],
tsecret_prefix : [0xBC], tsecret_prefix : [0xBC],
zaddress_prefix : "zs".to_string(), zaddress_prefix : "zs".to_string(),
zsecret_prefix : "secret-extended-key-main".to_string(), zsecret_prefix : "secret-extended-key-main".to_string(),

Loading…
Cancel
Save