Commit a9dc79f
committed
fix(hardware-trezor): support derivationType in getXpub method
- add `derivationType?: MasterKeyGeneration` to `GetTrezorXpubProps`
- update `getXpub` and `createWithDevice` to accept and pass `derivationType`
- include `derivationType` in `cardanoGetPublicKey` call
- add mapping from `MasterKeyGeneration` to Trezor `CardanoDerivationType`
- improve seed length handling for ICARUS vs ICARUS_TREZOR
- import `MasterKeyGeneration` type from `@cardano-sdk/key-management`
- test all derivation types (ICARUS, ICARUS_TREZOR, LEDGER)
- verify parameter passing from `trezorConfig` to `getXpub`
- cover error handling (TransportError, AuthenticationError)
- add integration tests for `createWithDevice`
- mock Trezor connection to avoid device dependencies
- improve test organization with shared utilities and hoisted setup
- enhance coverage for master key generation schemes1 parent aefb3e8 commit a9dc79f
File tree
16 files changed
+1172
-371
lines changed- packages
- e2e
- hardware-trezor
- src
- test
- wallet
- scripts
- test
- hardware/trezor
16 files changed
+1172
-371
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
This file was deleted.
0 commit comments