Skip to content

feat: integrate Casa Tookan wallet connection and signing - #32

Draft
droplister wants to merge 4 commits into
masterfrom
codex/casatookan-integration
Draft

droplister wants to merge 4 commits into
masterfrom
codex/casatookan-integration

Conversation

@droplister

@droplister droplister commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Enable Casa Tookan from the existing XCPDEX Connect button, chooser and mobile header. Add app metadata/CORS and handle late injection, passive restore, revoked grants and retryable connection errors. Ordinary compose uses the SDK PSBT fallback.

SDK and supported boundary

Pinned to XCP/wallet-sdk@089ca36 (XCP/wallet-sdk#13). The adapter supports mainnet Legacy, Native SegWit and BIP-86 Taproot, selected inputs, preserved foreign signatures, reusable authorizations and up to 20 PSBTs per approval. Message proofs declare BIP-137 or ECDSA-BIP86 explicitly.

Each PSBT requires prevouts and is capped at 64 KiB. Casa does not validate application intents or linked marketplace bundles. Script-path/commit-reveal, multisig and nested SegWit remain unsupported. Detection requires the Casa marker, so ordinary Unisat is not mistaken for Casa.

The integration remains build-time opt-in with NEXT_PUBLIC_CASATOOKAN_ENABLED=true. No production deployment, live-chain broadcast, or installed iOS/Android test is claimed. SDK evidence includes real dev-wallet signing and 481 passing unit tests; site browser suites use a deterministic provider. The official dev bridge is only used in temporary QA, never shipped.

Validation

10 Casa browser tests, 102 web unit tests, 5 render-read tests, web typecheck and lockfile dry run pass. Earlier production-build testing inside the official Casa dev wallet verified Legacy/SegWit connection and restore.

See docs/casatookan.md for setup, evidence and rollout limits.

The pinned SDK also reports its confirmed inability to recover custom Taproot outputs (taprootTreeKeyPath: false). This is an additive capability report; no additional site flow is enabled. Direct-wallet evidence and the upstream restrictions are documented in XCP/wallet-sdk#13.

@droplister droplister changed the title Pilot Casa Tookan connections with browser regression tests feat: integrate Casa Tookan wallet connection and signing Oct 20, 2026
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