Threshold-encrypted mempool
Prevent miner-extractable-value extraction by encrypting transaction content before mempool submission and releasing the decryption key only after block ordering is committed. A distributed committee holds threshold key shares, so no single party can decrypt prematurely. The result is cryptographic protection against front-running, back-running, and sandwich attacks, without handing trust to any one relay.
Prevent miner-extractable-value extraction by encrypting transaction content before mempool submission and releasing the decryption key only after block ordering is committed. A distributed committee holds threshold key shares, so no single party can decrypt prematurely. The result is cryptographic protection against front-running, back-running, and sandwich attacks, without handing trust to any one relay.
This pattern is the cryptographic sub-pattern of private transaction broadcasting. The trust-based private-relay variant is documented as a related pattern (see related_patterns.requires).
- Threshold encryption scheme: a k-of-n construction so that k committee members must cooperate to decrypt.
- Distributed key generation: the committee jointly produces the threshold public key without any party ever holding the full private key.
- Keyper committee: a distributed set of key holders drawn from validators, independent operators, or a delegated governance process.
- Block builder integration: the builder accepts encrypted payloads and includes them without inspecting contents.
- Decryption oracle: publishes decryption key shares after block commitment so execution can proceed.
- Identity-based encryption or timelock-encryption variants are optional when slot-based decryption is required without a committee round trip.
Guarantees:
- Pre-inclusion content privacy: transaction contents are hidden from block builders, searchers, and validators until after block commitment.
- Cryptographic enforcement: no single party can decrypt, so front-running and sandwiching at the mempool stage are prevented without trusting a relay.
- Censorship resistance: encrypted payloads carry no application-layer signal, so content-based censorship is not possible at the builder.
- Post-decryption auditability: once the slot key is released, transaction history becomes public and fully verifiable.
Threat model:
- Honest-threshold assumption: fewer than k honest keypers allows premature decryption and restores mempool-stage MEV.
- Liveness: fewer than k online keypers leaves encrypted transactions stuck; operators must decide between a longer liveness timeout and forfeiting the transactions.
- Collusion: keypers colluding with block builders can front-run after decryption, so economic penalties and reputation controls are required.
- Metadata leakage: size, gas limit, and sender address remain visible before decryption and can still enable inference attacks on large or identifiable trades.
- Coverage gap: only the mempool phase is protected; ordering-based extraction that happens after decryption on the public state is out of scope.
- Decryption adds latency after block inclusion, typically sub-second, which can be acceptable for settlement but borderline for latency-sensitive trading.
- Infrastructure complexity is significant: distributed key generation, keyper-network operation, and decryption oracle must all be built and kept live.
- Committee capture is the primary attack surface; diverse keyper sets, time-bounded rotations, and economic bonding mitigate but do not remove the k-of-n trust assumption.
- Common failure modes, such as a compromised share, a distributed key generation ceremony flaw, or an offline committee, must be addressed with key rotation, verifiable distributed key generation, and redundancy with timeout fallbacks.
- Cryptographic protection stops at the mempool boundary; integration with shielding or stealth-address patterns is needed to close the post-decryption visibility gap.
A trading desk submits a large stablecoin trade on a chain that runs a threshold-encryption layer. The desk encrypts the transaction under the current-epoch threshold public key and submits it to the public mempool. Validators include the ciphertext in the next block without seeing the destination or amount. After finalization, the keyper committee releases its shares and the trade is decrypted and executed; competing searchers have no opportunity to front-run or sandwich the trade during the mempool phase. On the same chain, a retail swap user encrypts a token swap to the same public key and obtains the same pre-inclusion privacy without having to trust a specialised private relay.