Skip to content

Conversation

rhyslbw
Copy link
Member

@rhyslbw rhyslbw commented Sep 5, 2025

Found some issues during integration. Fixes, improved test coverage, improved docs contained within

- 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
@rhyslbw rhyslbw force-pushed the fix/trezor-getxpub-derivation-type branch from 918568c to a9dc79f Compare September 5, 2025 11:29
Copy link
Member

@AngelCastilloB AngelCastilloB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @rhyslbw love the documentation! 😍

@rhyslbw
Copy link
Member Author

rhyslbw commented Sep 5, 2025

We have a couple of pre-existing test failures in the Trezor suite, but I won't fix them here

@rhyslbw rhyslbw merged commit 53d2b35 into master Sep 5, 2025
7 of 8 checks passed
@rhyslbw rhyslbw deleted the fix/trezor-getxpub-derivation-type branch September 5, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants