Earned a Ship Weeks badge.

Post-Quantum dApp
Bedrock
Protecting digital ownership and keeping applications operational when cryptographic authority fails.
About
Digital ownership should outlive the cryptography that protects it. Recent developments in cryptographic research have reinforced the importance of mathematical diversity and cryptographic agility. Yet many blockchain applications still depend on a single signature family for both everyday operations and emergency recovery. Bedrock addresses this dependency. It is reusable cryptographic continuity infrastructure that gives smart contracts two independently established authorities: - ML-DSA-87, verified through QoreChain's native pqcVerify precompile, for everyday operations. - RFC 8554 LMS, a hash-based signature scheme with an independently held offline recovery key. Bedrock Vault, our live reference application on QoreChain, demonstrates this architecture through real deposits, payouts, withdrawals and independent recovery. Combining signature families is not itself new. Bedrock's contribution is an authorization architecture that bounds financial exposure, retires compromised authority, preserves legitimate user entitlements and enables continued application operation without relying on the affected application-level verifier. WHAT BEDROCK ENABLES - Bounded financial exposure: A compromised daily authority cannot exceed its configured cumulative allowance, even across multiple periods and without immediate human intervention. Replenishing that allowance requires both authorities. - Independent recovery: An LMS-authorized incident can be submitted by an unrelated relayer, retiring the compromised authority and invalidating its outstanding nonbinding privileged instructions. - Protected user rights: Existing deposits, withdrawal requests and matured financial obligations remain enforceable under the application's defined security model. - Operational continuity: Supported financial operations continue under independent hash-based authorization without calling pqcVerify. - Reusable infrastructure: Developers can integrate Bedrock into their own applications through open-source Solidity modules, a published SDK, CLI and independent verification tooling. WHAT WE DEMONSTRATED ON QORECHAIN'S DIANA TESTNET 1. Public compromise challenge We funded three comparable vaults and deliberately published every designated ML-DSA application signing key. The conventional single-authority vault and the same-family guardian vault were drained. Bedrock lost only its configured 0.05 QOR exposure allowance, retained 0.25 of its original 0.3 test QOR and subsequently retired the compromised authority. The disclosed authority has been refused since. 2. Protection without immediate intervention We compared two vaults under the same compromised authority across five spending periods. The period-only vault lost 0.10 QOR and continued permitting payouts. Bedrock's cumulative exposure policy limited losses to 0.05 QOR and refused further payouts. This demonstrates why temporary spending limits alone are insufficient against persistent compromise. 3. Independent recovery and economic continuity Our live incident drill completed 13 of 13 checks across 12 transactions. An unrelated relayer submitted an LMS-authorized incident. Malicious pending authority was invalidated, while legitimate withdrawal rights and previously matured obligations remained enforceable. A separate end-to-end test using the QoreX wallet extension demonstrated that a user could deposit, request a withdrawal and successfully claim their funds while Bedrock Vault remained in Recovery mode. 4. Strong comparative baselines We compared Bedrock against conventional authorization, same-family recovery and OpenZeppelin's existing diverse multisigner architecture. Our results acknowledge where existing approaches provide stronger guarantees. Bedrock's distinction is the combination of bounded routine authorization, independently enforced recovery and application-level financial continuity without requiring an offline recovery signature for every ordinary operation. BUILT TO BE INDEPENDENTLY EXAMINED Bedrock provides reusable contracts, a published npm package, a CLI, Bedrock Check, a public challenge, a technical paper and browser-based evidence verification. Visitors can independently reproduce 109 read-only verification checks against recorded on-chain evidence without connecting a wallet or sending a transaction. Developers can install the bedrock-continuity package, inspect supported deployments and integrate Bedrock's continuity mechanisms into their own applications. SECURITY BOUNDARIES Bedrock protects adopting applications under a defined threat model. It does not claim protection against complete QoreChain consensus failure or network-wide transaction admission failure. The independent recovery key must remain secure. The software LMS signer does not meet NIST SP 800-208 requirements for production signing. The implementation has undergone two QCAI assessment stages, AI-assisted security examination, extensive differential test
How it's made
Architecture Bedrock is implemented in Solidity 0.8.28 using Foundry, with reusable components designed for application-level cryptographic continuity. - Bedrock Verify: RFC 8554 LMS/HSS verification through ERC-7913, alongside an ML-DSA-87 adapter using QoreChain's native pqcVerify precompile. - Bedrock Core: independent authority management, cumulative exposure policies, authorization epochs, incident handling and recovery-mode execution. - Bedrock Vault and Bedrock Directory: two reference applications demonstrating financial and configuration continuity. - Bedrock SDK and CLI: published developer tooling for integration, inspection, recovery preparation and evidence verification. - Bedrock Check: independently inspects supported deployments and distinguishes readable contract state, recognized implementations, verified evidence, unknown properties and unsupported capabilities. A Go keystore, built using Trail of Bits' lms-go implementation, manages the stateful LMS signing process. TypeScript tooling handles deployment, transaction execution, reproducible experiments and verification. Native QoreChain integration Bedrock uses: - @qorechain/sdk for account derivation, ML-DSA-87 signing, proof-of-possession key registration, hybrid-signed transactions and EVM authorization windows. - @qorechain/evm for authorization window status and transaction cost information. - pqcVerify (0x0a01) for native post-quantum application signature verification. - pqcKeyStatus (0x0a02) to bind the primary application authority to a possession-proven registered QoreChain key. - Scoped EVM windows restricting operational roles to designated application contracts. All central application workflows were executed on Diana testnet. Cryptographic correctness and security evidence - Both official RFC 8554 test cases pass. - 371 independent reference comparisons plus 9,245 additional lms-go review verdicts agree across all 20 supported parameter combinations. - H20 and H25 examinations use last-leaf signatures and constructed authentication paths. A complete H25 key was not generated. - 112 passing Foundry tests, including 35 tests originating from separate AI-assisted reviews. - Eight invariant tests, each exercised across 1,920 calls. - Three deliberately introduced defects detected by the test suite. - Seven successful bounded symbolic core checks, one vault entitlement check and two single-charge budget checks. - Multi-charge symbolic checks remain incomplete. Solver timeouts are not presented as proofs. - A successful clean GitHub Actions verification run. - 109/109 live evidence checks covering recorded transactions, gas measurements and challenge balances. Measured verification gas on Diana: - LMS: 248,285 gas. - ML-DSA-87 through pqcVerify: 230,352 gas. Developer distribution The bedrock-continuity package is published on npm as version 0.1.0. It includes the TypeScript SDK, CLI, Bedrock Check and reusable Solidity sources. Installation and integration have been tested from a fresh project against the published registry package. https://www.npmjs.com/package/bedrock-continuity Engineering challenges Stateful hash-based signatures require strict signing-index management. Bedrock reserves signing indices before generating signatures and checks them against the contract's expected state. An attempted reuse of a recovery key across deployments was refused; the failed experiment is retained as evidence. QCAI's first assessment also revealed a verifier-response validation weakness. We corrected the issue, redeployed and repeated the live experiments. Our QCAI assessment improved from 75/100 to 85/100. Both assessment reports, remediation decisions, independent review findings and reproducible commands are published in the repository. Reproducibility The entire project is MIT-licensed. Run make verify for the offline verification suite, make verify-live for read-only verification against Diana, or make sdk-registry to reproduce the published package integration. Clean CI run: https://github.com/Femtech-web/bedrock/actions/runs/46936732384 Technical documentation: docs/ Security examination: docs/AUDIT.md AI-assisted engineering disclosure: AI_USAGE.md Bedrock uses established cryptographic standards rather than introducing a new cryptographic primitive. Its contribution is the practical enforcement of application-level continuity under defined failures of cryptographic authority.
Timeline
Pushed 16 commits to main
- 69ea4b2 feat(web): name the research section "How it works"; vault link back in the footer · Femtech-web
- 0efbaf0 docs(readme): name Bedrock Vault and link it from the top table · Femtech-web
- 9fa2bff feat(web): Bedrock Vault as a top-level destination; fit the nav and two labels on 320 px phones · Femtech-web
- 3e9b5e4 docs(readme): demo video, CI workflow and the QoreX vault page · Femtech-web
- 5b1207b fix(web): /use labels claimable requests and explains QoreX's pending-request refusal · Femtech-web
and 11 more commits
Pushed 7 commits to main
- 03793ef test: add crypto review tests, generated ABI, and live exposure results · Femtech-web
- a80fc5b feat: add UseVault component, page, and integration docs for QoreX vault interaction · Femtech-web
- 3f2a8ce feat: add new web pages, data assets and sync-data script for Bedrock site · Femtech-web
- 38ebf45 docs: add live verification results, script and updated gas measurements, plus test gas probe refactor · Femtech-web
- a5322d5 docs: add QCAI Stage 2 audit report, update audit documentation, and add related test case · Femtech-web
and 2 more commits
New project.
Comments and questions
- No comments yet.