ERC-8443 Quantum-resistant bridge signature shield (Quantum Bridge Shield)

Draft · Signatures & auth · created 2026-10-14

A standard in which a committee approves cross-chain bridge message batches using hash-based signatures (LMS) that remain secure against quantum computers, and majority-signature and key-freezing rules let the bridge safely accept messages.

Why it is needed

Current bridge committees sign with secp256k1 ECDSA or BLS12-381. Once a sufficiently powerful quantum computer (running Shor's algorithm) exists, these signatures could have their private keys inverted, and committee public keys and past signatures that are already public could be collected now and decrypted later (harvest now, decrypt later). If even one validator key is compromised, assets on every bridge path that trusts that key are put at risk. Hash-based signatures (LMS), which rely only on the security of a hash function, do not carry this risk, but until now there has been no interoperable way for a bridge to require them, for signers to generate them safely, or to check that different implementations are signing the same thing.

What to implement

In depth

LMS signatures and hybrid mode

A committee member holds a single RFC 8554 LMS public key as one tree. The guard accepts only LMS type codes 5 through 9 (tree heights 5, 10, 15, 20, 25) using SHA-256-based 32-byte output, and LMOTS type codes 1 through 4 (Winternitz parameters 1, 2, 4, 8); other type codes are rejected. The signed object is always a 32-byte digest. Each key is bound, via identifier I (the first 16 bytes of keccak256(chainid, guard, salt) derived from a 32-byte salt), to a single guard on a single chain. Hybrid mode additionally requires a secp256k1 ECDSA signature over the same digest (without the ERC-191 prefix, with s at most half the curve order, and v equal to 27 or 28), while quantum-resistant mode has no ECDSA signature and ignores it. LMS was chosen because its signatures are about 2.5KB and verify on the EVM for roughly 200,000 gas, whereas stateless hash-based signatures run 8 to 50KB and lattice signatures cost millions of gas since the EVM has no precompile for them.

Digest construction and domain separation

Three fixed tags, ROOT_TAG, REVOKE_TAG, and CONFIG_TAG, are defined. rootDigest and revokeDigest are computed as keccak256(TAG, chainid, guard, epoch, root), and configDigest adds to this the hash of the member list, the threshold, and the mode. chainid is block.chainid, guard is the guard address, and epoch is the current epoch at the time of root approval or revocation (except that in configDigest it is the target epoch, the current epoch plus one). This way every digest fixes the chain, guard, epoch, and action type, so that signatures from a different chain, guard, or point in time cannot be mixed in.

Merkle tree construction and inclusion proofs

A leaf hash is computed as keccak256(0x00 || leaf), and an internal node as keccak256(0x01 || left || right); leaves are padded with zeros so that their count is a power of two. If there is a single leaf, the root is that leaf hash itself and the proof is an empty array. isIncluded walks up the proof, using each bit of the index to decide whether the current node is a left or right child, and returns false without reverting if the proof exceeds 64 nodes or the index does not match the proof length.

Quorum determination and one-time key freezing rules

Configuration (signer list, threshold, mode) must satisfy 2*threshold > n and threshold <= n to meet the majority condition. Each action contains an Attestation list with strictly increasing signer indices, and the guard evaluates them in order. If a key is frozen, it is skipped. If no digest has been recorded for that leaf, the signature must verify to be aggregated as valid. If it matches the digest already recorded, it is aggregated again (so an early-published signature cannot block the action). If it differs from the recorded digest but the signature is valid, this is an equivocation, so that key is frozen and SignerFrozen is emitted, and it is not aggregated. The action only becomes valid once the threshold is reached, and only then is the digest recorded on the leaf and nextLeafOf advanced. Anyone can call reportEquivocation with two valid signatures over different digests on the same leaf to freeze the key.

Root approval, revocation, and reconfiguration

Once rootDigest reaches the threshold, the guard records the root as approved and stores the approval timestamp. An approved root only returns true for isIncluded after minRootAge (minimum 60 seconds, fixed at deployment) has elapsed. If revokeDigest reaches the threshold, the root is permanently revoked and can never be approved again; it can also be revoked before approval to permanently block it. Approval and revocation state persist independent of reconfiguration. During reconfiguration, new members who are not retained must prove key possession via provePossession for the configDigest of the target epoch, while retained members carry over their leaf state and frozen state as is. On a successful reconfiguration, the epoch increments by 1.

Bridge integration and leaf binding

Bridge integration must bind to the leaf a unique domain tag that identifies the integration type, destination, bridge endpoint, and the full message, so that a leaf from one integration is not valid for another integration. A bridge only accepts a message when isIncluded is true for its own leaf. As an example, the LayerZero v2 binding builds a leaf by binding LAYERZERO_TAG, the destination endpoint ID, verifier, receiveLibrary, the hash of the 81-byte packet header, payloadHash, and confirmations, and the verifier must check that the header is 81 bytes, the version is 1, and the destination endpoint ID matches.

Signer state management requirements

Because LMS keys are stateful, the signer must permanently record each leaf's usage before exporting a signature, must not sign while behind the on-chain nextLeafOf, and it is recommended to keep a monotonically increasing high-water mark in storage separate from the key. The signer must also recompute the identifier from the salt for each signing request and check that it matches the chain and guard before touching leaf state. Tree height should be chosen to fit the expected batching frequency; height 20 provides 1,048,576 leaves, lasting about 145 days at one batch per block or about 2 years at one batch per minute, which is recommended for active bridges.

This is not yet a finalized proposal

This standard is currently in Draft status, an early-stage proposal whose content may change or be discontinued.

Things to watch out for

Original ERC · ← ERCs