Skip to content
Bedrock

Post-quantum continuity · built on QoreChain

Digital ownership should outlive the cryptography that protects it.

Bedrock gives a smart contract a second, independent line of authority. If its daily keys are stolen or their cryptography fails, a recovery key from a different signature family retires them, and users keep everything they own.

Every daily signing key publishedrecorded · diana testnet

Single key
0 / 0.3emptied
ML-DSA guardian
0 / 0.3emptied
Bedrock
0.25 / 0.3held

Test QOR. Bedrock paid out only its 0.05 QOR exposure budget before its LMS root retired the published key. See the experiment

Illustration

1/5 · NormalDaily operations are signed with ML-DSA-87. The LMS recovery key stays offline.

01/The problem

What happens to a contract on the day its signature family fails?

QoreChain made post-quantum signatures native: ML-DSA-87 keys in x/pqc, hybrid-signed EVM windows, a verification precompile. That is a strong base. It also means every account and every contract rests on one signature family and one verifier.

  • A key is stolen

    Someone holds a copy of the daily ML-DSA key. Nothing else is wrong.

  • The family is forgeable

    Every ML-DSA signature can be forged. Every ML-DSA key fails at once.

  • The verifier fails

    Valid signatures are rejected. Nothing is stolen, but nothing signed with ML-DSA goes through.

In every test and live run here, the failure is simulated: a key is handed to an attacker, published, or a verifier is replaced. No algorithm is broken.

02/The idea

Two ML‑DSA keys are redundancy. ML‑DSA plus a hash‑based key is diversity.

Daily operations run on ML-DSA-87. A second root, an RFC 8554 LMS key built only on SHA-256, stays offline. A failure of one family does not carry over to the other.

  1. 1

    Normal

    ML-DSA-87 signs daily operations. Each root alone can commit only a bounded amount; the LMS key stays offline.

  2. 2

    Incident

    One LMS signature, delivered by anyone, declares an incident. The ML-DSA root is retired and whatever it left pending is void.

  3. 3

    Recovery

    The contract keeps running on the LMS root. Users' own funds never depended on either root, so they withdraw as before.

The invariant, property by property →

03/The experiment · diana testnet

We published every daily key. Two vaults were emptied. Bedrock’s held.

Three vaults, each funded with 0.3 QOR. Every ML-DSA-87 secret key that controls them is public, which simulates a failure of the whole family. The balances below are read from diana now.

Vault C

Bedrock: ML-DSA + LMS recovery

ML-DSA key published, LMS key secret

—/ 0.3 QOR

reading…

0.05 QOR went out under its single-family cap. Then its LMS root retired the published key, and the rest is held.

0x398035f189…d3d925bb on the explorer

reading diana…

  • Verified on chain

    Recovery drill

    An attacker held the ML-DSA key and queued payments to itself. An unrelated relayer delivered one LMS-signed incident: the attacker’s obligation became void, and the user’s withdrawal paid out.

    12 transactions, recorded 2026-12-01 →
  • Verified on chain

    Exposure cap

    One copied key, five periods, nobody responding. A period limit alone kept paying out. Bedrock’s cumulative cap stopped at 0.05 QOR and refused the rest.

    The ledger, recorded 2026-12-02 →
  • Verified on chain

    Bedrock Vault, after the incident

    The drill’s vault has stayed in Recovery mode since 2026-12-01: its daily key can authorize nothing. Deposits, withdrawal requests and claims never needed it, so they still work.

    Try it with QoreX →

04/Build with Bedrock

Add a recovery root to your contract.

Inherit BedrockCore, authorize each action with _authorize, and charge its value with _charge. The TypeScript SDK and CLI prepare, check and submit what each root signs.

install
npm install bedrock-continuity viem
src/Treasury.sol · compiles in a fresh project
import {BedrockCore} from "bedrock/core/BedrockCore.sol";
import {ExposureBudget} from "bedrock/core/ExposureBudget.sol";

contract Treasury is BedrockCore {
    bytes32 constant GRANT =
        keccak256("Grant(address to,uint256 amount)");

    constructor(
        address mldsaVerifier,
        bytes memory mldsaKey,
        address owner,
        bytes memory lmsKey
    )
        BedrockCore(
            mldsaVerifier,
            mldsaKey,
            owner,
            lmsKey,
            ExposureBudget.Policy(1 ether, 5 ether, 1 days),
            2 days
        )
    {}

    function grant(
        address to,
        uint256 amount,
        Authorization calldata auth
    ) external {
        Signers signers =
            _authorize(keccak256(abi.encode(GRANT, to, amount)), auth);
        _charge(signers, amount);
        (bool ok,) = to.call{value: amount}("");
        require(ok);
    }
}

05/Verify

Don’t take our word for it.

Every figure on this site links to the record that produced it and says how it was established. Your browser can re-read every live claim from diana; one command reruns everything else.

371 / 371
LMS verdicts agree with Trail of Bits' independent lms-go
Matched independent reference
13 / 13
recovery drill checks on diana, over 12 transactions
Verified on chain
109 / 109
live claims re-read from diana, sending nothing
Verified on chain
112
Foundry tests, with invariants and planted-defect checks
Reproduced locally
Verify in your browser$ make verify-live

Limits

What Bedrock does not claim.

  • The LMS key is the root of trust. Whoever controls it, by stealing it or through a defect in our LMS verifier, gains full power after DUAL_ACTIVATION_DELAY. Keep it offline.

  • Consensus is out of scope. QoreChain validators sign with ed25519; no application can survive a break there.

  • Network admission still depends on ML-DSA. Every EVM sender on diana needs a registered ML-DSA-87 key and a hybrid-signed window. Bedrock's recovery is independent at the application level only.

  • The software LMS signer does not meet NIST SP 800-208, which requires hardware for stateful keys. A full rollback of its directory cannot be detected.

  • Not audited. QCAI, QoreChain's AI auditor, scored the contracts 75/100 and then 85/100 after the fix. Both reports and our responses are in docs/AUDIT.md, with a separate AI-assisted review of the verifier and contracts (2026-12-02: four informational findings, no code change). Neither AI review nor passing tests is an audit.