Skip to content

Export both Casa pairing keys by QR and microSD - #665

Draft
Jacksper13 wants to merge 3 commits into
dev-v2.4.0from
casa-crypto-account-export
Draft

Export both Casa pairing keys by QR and microSD#665
Jacksper13 wants to merge 3 commits into
dev-v2.4.0from
casa-crypto-account-export

Conversation

@Jacksper13

@Jacksper13 Jacksper13 commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Casa is moving Passport pairing to provide both the root public key used by existing vaults and the hardened m/45' public key used by new vaults. Casa can select the correct key without asking the user to choose a compatibility mode, whether the user pairs by QR or microSD.

What changed

  • Export both public keys in one crypto-account QR payload.
  • Export both public keys in the microSD Passport Summary file, preserving the existing root-key block and adding a separately labeled m/45' block.
  • Describe each QR key as sh(wpkh(hdkey)), matching Casa's nested-SegWit vault format.
  • Use the legacy HD key, keypath, and coin-info CBOR tags expected by Casa.
  • Encode both mainnet and testnet correctly.

Safety and compatibility

Only public keys and chain codes are exported. The legacy root-key section remains unchanged for existing file importers. The m/45' node stays inside Passport's sensitive-values scope and is wiped with the other derived key material when the export completes.

The complete 226-byte CBOR payload is pinned by the same deterministic fixture used by Passport Prime, so accidental wire-format changes fail CI.

Validation

  • Python syntax and formatting
  • Rust compilation, formatting, and tests
  • Exact CBOR wire-format fixture
  • Full firmware builds in CI

@Jacksper13
Jacksper13 force-pushed the casa-crypto-account-export branch 2 times, most recently from 3b114e4 to 93d88af Compare August 12, 2026 22:01
@Jacksper13
Jacksper13 marked this pull request as ready for review August 12, 2026 22:06
@Jacksper13 Jacksper13 changed the title Export Casa pairing as a crypto-account QR Export both Casa pairing keys by QR and microSD Aug 12, 2026
@mjg-foundation
mjg-foundation changed the base branch from main to dev-v2.4.0 August 27, 2026 20:31
@mjg-foundation
mjg-foundation force-pushed the casa-crypto-account-export branch from cc9abc1 to af41e63 Compare August 27, 2026 20:33
@mjg-foundation
mjg-foundation marked this pull request as draft August 27, 2026 22:14
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.

1 participant