diff --git a/zingolib/src/wallet/keys/extended_transparent.rs b/zingolib/src/wallet/keys/extended_transparent.rs index 759ad71d9..0154ead1b 100644 --- a/zingolib/src/wallet/keys/extended_transparent.rs +++ b/zingolib/src/wallet/keys/extended_transparent.rs @@ -102,9 +102,9 @@ impl ExtendedPrivKey { KeyIndex::hardened_from_normalize_index(config.get_coin_type()).unwrap(), ) .unwrap() - .derive_private_key(KeyIndex::hardened_from_normalize_index(0).unwrap()) + .derive_private_key(KeyIndex::hardened_from_normalize_index(position).unwrap()) .unwrap() - .derive_private_key(KeyIndex::Normal(position)) + .derive_private_key(KeyIndex::Normal(0)) .unwrap() }