Page MenuHomePhabricator

[electrum] add BIP44 mnemonic-to-address test with the eCash derivation paths
ClosedPublic

Authored by PiRK on Jul 29 2025, 14:36.

Details

Summary

While looking for test vectors for eCash address generation from seed, I noticed that Electrum ABC does not have a test using the m/44'/899'/0' derivation path.
It is useful to have such a test so we can share it with other wallets willing to support eCash and ensure everyone generates the same addresses from a given mnemonic phrase.

Add also tests for the 1899' path to check CashTab generates the same address. One of the tests matches an existing CashTab unittest, and I checked the other one by importing the seed into CashTab and comparing the first receive address.

Test Plan

python test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
bip44_899_test
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33991
Build 67451: Build Diffelectrum-functional-tests · electrum-tests
Build 67450: arc lint + arc unit

Event Timeline

PiRK requested review of this revision.Jul 29 2025, 14:36
PiRK retitled this revision from [electrum] add a BIP44 mnemonic to address test with the eCash derivation paths to [electrum] add BIP44 mnemonic-to-address test with the eCash derivation paths.Jul 29 2025, 14:37
PiRK planned changes to this revision.Jul 29 2025, 14:53

let's add also tests for the 1 account (m/44'/899'/1' derivation)

test also a m/44'/899'/1' derivation path, and test a few public keys
This gives us identical coverage to a brave-wallet unit test on which i'm working, which is based on an ZCash test.

This revision is now accepted and ready to land.Jul 29 2025, 16:36