Skip to content

Commit b98e3dc

Browse files
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 schemes
1 parent aefb3e8 commit b98e3dc

File tree

11 files changed

+1129
-371
lines changed

11 files changed

+1129
-371
lines changed

packages/hardware-trezor/MASTER_KEY_GENERATION.md

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)