Commit 7423fcf
committed
test: GetAddress returns BIP-86 taproot addresses
Drives the emulator through the full GetAddress path for SPENDTAPROOT --
fsm_msgGetAddress, path_mismatched's m/86' branch, compute_address, the
BIP-86 tweak and bech32m encoding -- none of which the firmware's C unit
tests reach.
Expected values are the three official BIP-86 vectors. BIP-86 publishes
them against the "abandon abandon ... about" mnemonic, which is exactly
what setup_mnemonic_abandon loads, so these are the spec's constants and
not values our implementation produced.
Verified against a locally built emulator: 1 passed. Also mutation
checked -- flipping one character of the first expected address makes it
fail, so the assertions are not vacuous.
NOTE: gated at 7.16.0 via TAPROOT_FIRMWARE_VERSION. develop is currently
7.15.0, so this SKIPS until the project version bumps. A gate that is
never reached is a test that is silently green forever -- keep the
constant in step with CMakeLists.txt.1 parent d88a073 commit 7423fcf
1 file changed
Lines changed: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments