Exposure-Closed Recovery Escrow

Protect today's data from tomorrow's quantum computers.

ECRE encrypts and signs files with standardized post-quantum cryptography, and gives wallet owners a recovery key that can stop a theft before it settles. Every claim is backed by a formal model, and every limit is written down.

Status: research and pre-production. ECRE has not yet been independently audited. Please do not use it to protect real secrets or funds until it has been.

The problem

Encrypted data can be stolen now and opened later.

Most files today are protected with RSA or elliptic-curve cryptography. A large enough quantum computer will break both.

Harvest now, decrypt later

An attacker can copy encrypted files today and keep them until a quantum computer can open them. Contracts, medical and legal records, keys and backups often need to stay private for ten years or more, so the risk already exists.

The deadline is set

NIST published the first post-quantum standards (FIPS 203, 204 and 205) in August 2024. Its transition plan, NIST IR 8547, deprecates quantum-vulnerable algorithms after 2030 and disallows them after 2035.

Stolen keys move value instantly

With a wallet, one stolen signing key is enough to move funds for good. Owners need a way to cancel a theft in progress and replace their keys, under rules simple enough to check mathematically.

The solution

Belt and braces: classical and post-quantum together.

New algorithms are young. ECRE never relies on a single mathematical assumption, so one broken algorithm does not break the system.

X25519 + ML-KEM-768

Hybrid encryption

Each file is encrypted with a classical key exchange and the NIST ML-KEM standard (FIPS 203) at the same time. The file stays confidential as long as either one holds.

ML-DSA-65 + SLH-DSA

Dual-family signatures

Every signature combines a lattice signature (FIPS 204) and a hash-based signature (FIPS 205). Both must verify, so a forger would have to break two unrelated families of mathematics.

Sender binding

Know who really sent a file

The sender's identity is built into the encryption keys. This closes the "strip and re-sign" attack we found in the earlier ECRE v0.2 design.

Recovery ledger

Recovery that beats theft

Spending waits for a set delay. During that window a separate recovery key can cancel pending spends and rotate keys. The priority rule is model-checked in TLA+.

PKCS#11

Hardware key custody

Keys can be sealed by a hardware security module (HSM) through PKCS#11, or kept in a password vault protected with Argon2id.

Library + CLI

Built to integrate

A Python library, a command-line tool and an HTTP ledger node make it possible to add ECRE to existing storage, key-management and custody systems.

How it works

Four steps, one identity.

Every user has one identity made of four key pairs: two for receiving files, two for signing.

  1. Create an identity

    Generate keys into a password vault or an HSM. Your fingerprint is a short hash of your public keys.

  2. Verify your contacts

    Compare fingerprints over the phone or in person, then pin them. Only pinned senders are accepted.

  3. Encrypt and sign

    A file is encrypted to the recipient with the hybrid scheme and signed with both signature families in one step.

  4. Verify and recover

    The recipient checks both signatures before reading. For wallets, the recovery key can cancel and rotate during the delay window.

Assurance

What is proven, and what is not yet.

Security products should say exactly what they claim. Here is where ECRE stands today.

Done

  • Symbolic proof of the file protocol with the Tamarin prover: confidentiality, sender authentication and no strip-and-re-sign, checked automatically on every change.
  • A control run of the same model finds the old v0.2 attack, which shows the proof can tell a broken design from a sound one.
  • Exhaustive TLC model checking of the ledger's recovery-priority rule (TLA+).
  • Internal security audit with open-source tools; no critical or high findings.
  • Automated tests on Linux (x86 and ARM) and macOS.
  • Built only on standardized algorithms from vetted libraries (pyca/cryptography, liboqs).

Not yet

  • No independent external security audit. This is required before anyone protects real secrets or funds with ECRE.
  • The file format does not stop a whole file from being re-sent (replay). Applications that need this must keep a record of accepted files.
  • The HSM protects keys at rest; signing still happens on the host computer.
  • The proofs cover the protocol design, not the correctness of the code itself.
  • The ledger network uses one sequencer: it detects tampering but cannot prevent delay or censorship.

Public test node. A test ledger node (testnet, no real value) answers at ledger.ecreqc.com/v1/info. Its blocks are signed with post-quantum keys and can be checked by anyone.

Use case

Where ECRE fits.

ECRE does not have production customers yet. The example below shows how it is meant to be used.

Illustrative scenario, not a customer

A law firm archiving contracts for 15 years

A firm sends signed contracts to clients and keeps an encrypted archive that must stay confidential well past 2035. With ECRE, each contract is encrypted to the client's pinned identity and signed with both signature families. Even if the archive leaks today, a future quantum computer cannot read it unless both the classical and the post-quantum parts are broken, and nobody can pass off the firm's contract as their own. Signing keys stay sealed in the firm's HSM.

Long-lived documents

Legal, medical, financial and government records that must outlive today's cryptography.

Digital asset custody

Wallet operators who want a recovery path that takes priority over a stolen key.

Research and teaching

Open specifications and formal models that others can study and extend.

Open core

Open source, with services for teams that need them.

The full source code will be published under the Apache 2.0 licence at launch. Organisations can add paid services around it.

ServiceWhat it includes
Support agreement (SLA)Agreed response times, security patches and upgrade guidance.
IntegrationConnecting ECRE to your document storage, key management and HSMs, wallets or custody platforms.
Ledger operationRunning, or helping you run, ledger nodes.

Terms are agreed per customer. Paid services do not change the security claims and do not replace an independent audit.

White paper

The full design, proofs and limits.

The ECRE-PQ white paper covers the threat model, the cryptographic format, the recovery ledger, the Tamarin and TLA+ results, and the roadmap. It includes an Arabic executive summary.

Interested in piloting, integrating or reviewing ECRE?

Researchers, auditors and organisations with long-lived data are welcome to get in touch.

thaercfo@icloud.com