Skip to content

feat: enable trezor support for zcash#11338

Merged
gomesalexandre merged 15 commits intodevelopfrom
feat_trezor_ledger
Dec 10, 2025
Merged

feat: enable trezor support for zcash#11338
gomesalexandre merged 15 commits intodevelopfrom
feat_trezor_ledger

Conversation

@gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Dec 9, 2025

Description

  • implementation plan
  • implement me in hdwallet and test here
  • ???
  • PROFIT

Issue (if applicable)

closes shapeshift/hdwallet#761

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Testing

  • ZCash derivation is happy with Ledger
  • Zcash sends are happy with Ledger
  • Try at least another UTXO send with Ledger and confirm still happy

Engineering

  • ^

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)
  • ^

Screenshots (if applicable)

https://jam.dev/c/652f849a-4cc8-4f1f-b1da-7d89a195eeb4

gomesalexandre and others added 2 commits December 10, 2025 02:30
Add comprehensive implementation plan documenting:
- Current broadcast error with Trezor wallet
- Root cause analysis (missing Trezor Connect parameters)
- Required hdwallet-trezor changes
- Testing strategy including verdaccio pipeline
- Technical background on Zcash versioning

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 9, 2025

Warning

Rate limit exceeded

@gomesalexandre has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 7 minutes and 7 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 83f643a and 1fd25b6.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (7)
  • .claude/skills/hdwallet-verdaccio-local-publish-pipeline/SKILL.md (1 hunks)
  • ZCASH_TREZOR_IMPLEMENTATION.md (1 hunks)
  • package.json (1 hunks)
  • packages/chain-adapters/package.json (1 hunks)
  • packages/swapper/package.json (1 hunks)
  • src/hooks/useWalletSupportsChain/useWalletSupportsChain.ts (2 hunks)
  • src/state/slices/portfolioSlice/utils/index.ts (2 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat_trezor_ledger

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gomesalexandre gomesalexandre changed the title wip: enable trezor support for implementation wip: enable trezor support for zcash Dec 9, 2025
gomesalexandre and others added 8 commits December 10, 2025 02:34
Clarify that web changes are NOT yet implemented:
- PR #11327 reverted Trezor support to native-only
- Need to add isTrezorHDWallet checks in two files
- Update checklist to reflect pending web work

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add Trezor wallet support for Zcash by updating wallet support checks:
- Import isTrezorHDWallet helper
- Allow Trezor alongside native wallet for Zcash transactions

Files modified:
- useWalletSupportsChain.ts: Add Trezor check for zecChainId
- portfolioSlice utils: Add Trezor check for zecChainId

Note: Requires hdwallet-trezor updates to pass Zcash-specific
transaction parameters (versionGroupId, consensusBranchId) to
Trezor Connect. See ZCASH_TREZOR_IMPLEMENTATION.md for details.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Bump all hdwallet packages to 1.62.26-zcash-trezor.0 (local verdaccio)
- Update publish pipeline skill with verification step for all package.json files
- Configure yarn to use local verdaccio registry

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@gomesalexandre gomesalexandre changed the title wip: enable trezor support for zcash feat: enable trezor support for zcash Dec 10, 2025
Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

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

image

Derivation is fine, signing is fine, I guess we can give this a go!

@gomesalexandre gomesalexandre marked this pull request as ready for review December 10, 2025 19:27
@gomesalexandre gomesalexandre requested a review from a team as a code owner December 10, 2025 19:27
@gomesalexandre gomesalexandre enabled auto-merge (squash) December 10, 2025 19:30
@gomesalexandre gomesalexandre merged commit 4e9c6df into develop Dec 10, 2025
4 checks passed
@gomesalexandre gomesalexandre deleted the feat_trezor_ledger branch December 10, 2025 19:38
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.

HDWallet Zcash support on Trezor

2 participants