@@ -153,7 +153,7 @@ impl LightWallet {
|
|||||||
let extsk: ExtendedSpendingKey = ExtendedSpendingKey::from_path(
|
let extsk: ExtendedSpendingKey = ExtendedSpendingKey::from_path(
|
||||||
&ExtendedSpendingKey::master(bip39_seed),
|
&ExtendedSpendingKey::master(bip39_seed),
|
||||||
&[
|
&[
|
||||||
ChildIndex::Hardened(32),
|
ChildIndex::Hardened(31),
|
||||||
ChildIndex::Hardened(config.get_coin_type()),
|
ChildIndex::Hardened(config.get_coin_type()),
|
||||||
ChildIndex::Hardened(pos)
|
ChildIndex::Hardened(pos)
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ impl Utxo {
|
|||||||
let mut address_bytes = vec![0; address_len as usize];
|
let mut address_bytes = vec![0; address_len as usize];
|
||||||
reader.read_exact(&mut address_bytes)?;
|
reader.read_exact(&mut address_bytes)?;
|
||||||
let address = String::from_utf8(address_bytes).unwrap();
|
let address = String::from_utf8(address_bytes).unwrap();
|
||||||
assert_eq!(address.chars().take(1).collect::<Vec<char>>()[0], 't');
|
assert_eq!(address.chars().take(1).collect::<Vec<char>>()[0], 'R');
|
||||||
|
|
||||||
let mut txid_bytes = [0; 32];
|
let mut txid_bytes = [0; 32];
|
||||||
reader.read_exact(&mut txid_bytes)?;
|
reader.read_exact(&mut txid_bytes)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user