Skip to content

Commit a9dc79f

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 a9dc79f

16 files changed

+1172
-371
lines changed

GETTING_STARTED.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ yarn preprod:down
7878
- [NetworkInfo provider OpenAPI spec](./packages/cardano-services/src/NetworkInfo/openApi.json)
7979
1. More advanced examples of using the SDK are in the [e2e tests](./packages/e2e/test/wallet).
8080
Explore these examples on how to use the wallet and the client libraries.
81+
1. For hardware wallet testing, see [Hardware Testing Guide](./packages/wallet/HARDWARE_TESTING.md).

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ or
104104
yarn test:debug
105105
```
106106

107+
#### Hardware Testing
108+
109+
For hardware wallet testing, see [Hardware Testing Guide](packages/wallet/HARDWARE_TESTING.md).
110+
107111
### Lint
108112

109113
```bash

packages/e2e/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ The providers used during the e2e test can be configured via environment variabl
2424

2525
If you are using _testnet_ or _mainnet_ as your test environment, ensure that the wallets you are configuring via environment variables contain some funds.
2626

27+
For hardware wallet testing, see [Hardware Testing Guide](../wallet/HARDWARE_TESTING.md).
28+
2729
<a name="generate_wallet"></a>
2830
If you need to create a new wallet via a new set of mnemonics, you can run:
2931

packages/hardware-trezor/MASTER_KEY_GENERATION.md

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

0 commit comments

Comments
 (0)