Please find attached fireflies ai notes from today’s session. Thank you everyone and catch you again in 2 weeks!
ClarityWG — Meeting Notes
Date: Jun 9, 2026, 9:00 AM Attendees: Rapha RSierra, Brice Dobry, Friedger Müffke, Hugo C, Radu, Setzeus, … Language: English (Global)
Highlights
-
BTC TX output extraction (Rust) — extracts a single output by index from a serialized Bitcoin tx, returning script, amount, and txid; no witness data. Merged into the PoX WF integration branch.
-
Merkle proof verification (built-in) — validates tx inclusion in a block; guarded against the CVE-2012-2459 duplicate-leaf vuln. Critical for confirming BTC staking txs.
-
Passkey auth for smart wallets — WebAuthn signature verification in Clarity with no backend DB; domain verification for phishing resistance; gasless Face ID signing demoed on an sBTC-funded wallet.
-
Ledger ↔ passkey integration — derive a Ledger-compatible seed phrase from a passkey; powers on-chain Nostr content rewards via sBTC.
-
Clarinet 3.19 — imminent; ships all new built-ins except variadic concat (pending PR). SIP to be voted alongside the BTC staking SIP, targeting Epoch 4.0.
Bitcoin transaction processing
TX output extraction in Rust (00:00) — A function extracts a single output from a serialized BTC tx by output index, returning script, amount, and txid without witness data. Direct calls to the Bitcoin library (per Brice) keep accuracy and cost in check versus a Clarity implementation. Witness txids are excluded for now; inclusion is under discussion. Merged into the PoX WF integration branch.
Merkle proof verification built-in (04:18) — Validates that a BTC tx is included in a block using leaf hash, Merkle root, tx index, total tx count, and sibling hashes. Includes safeguards against duplicated leaf hashes in odd-numbered Merkle trees (CVE-2012-2459). Allows up to 24 sibling hashes — beyond Bitcoin block constraints — for robust verification.
Remaining work (08:19) — Finalize the variadic concat built-in to consolidate multiple concatenations into one, cutting cost and improving performance. Pending PR merge; targeted for Clarinet 3.19. The SIP carrying these built-ins is expected to be voted concurrently with the BTC staking vote, launching alongside Epoch 4.0. An sBTC testnet is live and expected fully operational by week’s end for end-to-end testing.
Open questions (09:30) — Brice requested feedback on parsing complexity / cost to prioritize the next iteration, especially around parsing tx inputs/outputs more comprehensively and verifying Stacks txs via Merkle proofs. Stacks tx verification use cases remain unclear (verifying success beyond inclusion is the sticking point). Feedback directed to the Stacks Core repo.
Passkey auth & smart wallet integration
Signature verification in Clarity (24:00, Rapha) — Contracts verify WebAuthn passkey signatures with no backend DB by reconstructing a double-SHA256 hash of authenticator data and client data JSON from the front end. Two modes: user presence (tap) and user verification (biometric), defaulting to user-verified. Domain verification within the contract prevents phishing; the factory fund restricts approved domains to two.
Live demo (30:44) — On an sBTC-funded smart wallet, users sign with Face ID and transact (including small token swaps) without managing seed phrases. Wallets deploy freely, onboard via passkeys, and support admin-wallet addition for recovery/upgrades.
Expansion considerations (29:23, 36:00) — Plans to widen domain whitelisting so wallets work across environments and contracts; contracts need to cover all interactions on whitelisted domains. Brice noted strong adoption potential from the improved UX.
Ledger integration & Nostr derivation (Friedger)
Passkey → seed phrase extraction (36:28) — Derives a Ledger-compatible seed phrase from a passkey via a partial random function of the passkey protocol, removing the need to manage seed phrases. Demo app (passnokkel.netlify.app) shows passkey sign-in with automatic Nostr account derivation and auth.
On-chain content rewards via sBTC (38:12) — Upvote/zap Nostr posts using sBTC, authenticated solely by passkeys. Upvotes emit approval messages (incrementing emoji counts); zaps are on-chain payments directly rewarding creators.
Security (39:41) — Passkey sync risks across Google/Apple discussed; iPhone hardware attestation mitigates some concerns. Users can export seed phrases for recovery / cross-device use. Open-source for auditability.
Alignment (41:10) — Passkey-derived seed phrases can serve as admin keys or recovery options for smart wallets, simplifying multi-wallet management.
Clarinet release & SIP timeline
-
Clarinet 3.19 is imminent, including all built-ins except variadic concat (pending PR). (21:34)
-
The SIP bundling these built-ins will be voted alongside the BTC staking SIP, timed to Epoch 4.0 activation.
-
Testnet w/ sBTC is live, expected fully functional by end of week; early users already exercising the new built-ins in the staking contract. (22:28)
-
Vote expected within ~1 month, moving the feature set into production quickly given demand.
-
Testing (Hugo C, 9:13) — testable on Clarinet 3.19.0; 3.18.0 only shipped two of the functions, 3.19.0 has all of them except variadic concat. → stx-labs/clarinet · discussion #2406
Cost / workflow optimizations
-
Variadic concat (08:19) — Replaces nested concatenations with one variadic function, cutting exponential cost growth. PR ready to merge.
-
Buffer manipulation (20:16) — Slicing/concatenating buffers is expensive; targeted built-ins could help. Rapha’s and Friedger’s use cases show real demand.
-
Rust for complex logic (00:00) — Direct calls to optimized Bitcoin libraries cut on-chain overhead and open the door to delegating costly crypto ops to Rust.
-
Monitoring (22:28) — Active testnet use + community engagement to catch bottlenecks before mainnet.
Action items
Brice Dobry
-
Complete the final PR for variadic concat and coordinate its release in Clarinet 3.19. (00:21)
-
Gather community feedback on BTC built-in features, esp. tx input parsing and witness data support. (00:10)
-
Support the BTC staking SIP vote (incl. new built-ins), targeting Epoch 4.0. (00:21)
Rapha RSierra
-
Share the existing BTC tx parsing library in the Stacks Core repo for review/collaboration. (00:17)
-
Open issues with detailed feedback on practical use cases / challenges with BTC tx built-ins. (00:10)
-
Continue smart wallet dev & demos, including expanded domain support for multi-contract use. (00:29)
-
Collaborate with Friedger and Brice on Nostr + passkey smart wallet integration. (00:42)
Friedger Müffke
-
Share source + demo app for passkey → seed phrase extraction (Ledger integration). (00:37)
-
Continue on-chain sBTC micro-payments and content reward zaps via passkey auth. (00:38)
-
Help build smart wallet admin recovery + cross-platform passkey capabilities. (00:42)
References & contracts
Rapha’s deployed contracts
-
SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.clarity-5-webauthn-v3 — WebAuthn passkey signature verification
-
SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.bitcoin-helper-wtx-v1 — Bitcoin (witness) tx helper / parsing
-
SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.bitcoin-swap-to-stx — Bitcoin swap to STX
Links