Why We Put the Quorum On Chain: Rejecting Threshold MPC for an ERC-4337 Vault Signer

The decision on the table is where the M-of-N rule for a custody vault lives: inside a threshold signing protocol spread across enclaves, or inside the smart account's validateUserOp, where each key sits in a separate HSM domain. We chose the contract. The deciding question was not which design signs faster. It was which design can still remove a dead or compromised signer when one of the signers is the thing that has failed.

The option we rejected, at its strongest

Threshold ECDSA across three enclave nodes is a serious design, and on several axes it beats what we built. It produces one ordinary secp256k1 signature, so the vault looks like a plain externally owned account on every EVM chain and on most non-EVM chains too, with no contract to deploy, audit or migrate. Gas cost is a single ecrecover, and that matters for high-frequency treasury flows. The approval policy stays off chain and private, so counterparties cannot read the signer set from storage. Proactive key refresh lets the operator rotate shares without changing the address, which keeps allowlists and exchange whitelists valid for years. If our only goals had been chain reach and per-operation cost, MPC would have won and this record would not exist.

Where it breaks under partial failure

The failure mode that decided it is a resharing ceremony that stalls when one node drops out halfway through. Threshold protocols need a quorum to sign and a quorum to refresh, and in a 2-of-3 setup losing one node during refresh leaves the other two holding shares from different epochs. Recovery then depends on the protocol vendor's state machine, the enclave attestation chain, and operators making the right call under pressure, all off chain and all invisible to the auditor. With the smart account, a failed HSM domain is just an address that stops producing signatures. The two remaining domains sign an ordinary UserOperation that replaces it, the EntryPoint enforces the same validation it always does, and the change lands as a public, replayable event. Our rule for every component follows from that: a signer, bundler or paymaster that fails must be replaceable by a transaction the surviving quorum can authorize without the failed party taking part, and any design that needs the failed party to cooperate in its own removal is rejected.

Keeping the rest of the path alive

The quorum only helps if a signed operation still reaches a block, so the signing service sends each UserOperation to at least two independent bundlers and keeps a fallback that calls handleOps directly from an HSM-held relayer key when every public mempool is down. Every operation carries a validUntil window of 300 seconds, short enough that a signature stuck at a dead bundler expires before anyone can replay it at a bad moment, and long enough to cover HSM queueing and a bundler retry. The paymaster is optional by design: if its deposit runs dry or its signer goes offline, the account pays its own gas from a buffer the policy refuses to spend below. Key custody sits in modules validated under cryptographic module schemes such as FIPS 140 and Common Criteria, with each of the three domains on a separate vendor or cloud trust root, so a single firmware recall cannot take out two signers at once. We put the cost of on-chain 2-of-3 validation at tens of thousands of extra gas per operation over a single ECDSA check, an estimate, and we accept it as the price of recovery that anyone can audit. Passkey signers add P-256 verification, which is cheap only where the chain exposes a precompile, so the policy treats WebAuthn as one approver among several and never as the sole path.

What would have flipped the decision

Had the vault needed to hold assets on chains with no canonical EntryPoint or no economical P-256 verification, threshold MPC would have been the correct answer, and the remaining risk is that the product roadmap adds exactly such a chain, which forces the next decision: run a second custody architecture alongside this one, or decline the chain.

Does an EntryPoint version migration reintroduce the single point of failure we were trying to remove?

Partly. A new EntryPoint means a new trusted contract, and an account that cannot move to it while the old one is deprecated is stranded. We handle this by making the EntryPoint address a quorum-governed setting in the account rather than a constant, so the same 2-of-3 that replaces a dead signer also approves the migration, and by keeping the old EntryPoint deposit funded until the new path has run cleanly in production.

Back to WalletHSM · Domains

← Back to WalletHSM
Engineering & Architecture Brief

Why We Put the Quorum On Chain: Rejecting Threshold MPC for an ERC-4337 Vault Signer

The decision on the table is where the M-of-N rule for a custody vault lives: inside a threshold signing protocol spread across enclaves, or inside the smart account's validateUserOp, where each key sits in a separate HSM domain. We chose the contract. The deciding question was not which design signs faster. It was which design can still remove a dead or compromised signer when one of the signers is the thing that has failed.

The option we rejected, at its strongest

Threshold ECDSA across three enclave nodes is a serious design, and on several axes it beats what we built. It produces one ordinary secp256k1 signature, so the vault looks like a plain externally owned account on every EVM chain and on most non-EVM chains too, with no contract to deploy, audit or migrate. Gas cost is a single ecrecover, and that matters for high-frequency treasury flows. The approval policy stays off chain and private, so counterparties cannot read the signer set from storage. Proactive key refresh lets the operator rotate shares without changing the address, which keeps allowlists and exchange whitelists valid for years. If our only goals had been chain reach and per-operation cost, MPC would have won and this record would not exist.

Where it breaks under partial failure

The failure mode that decided it is a resharing ceremony that stalls when one node drops out halfway through. Threshold protocols need a quorum to sign and a quorum to refresh, and in a 2-of-3 setup losing one node during refresh leaves the other two holding shares from different epochs. Recovery then depends on the protocol vendor's state machine, the enclave attestation chain, and operators making the right call under pressure, all off chain and all invisible to the auditor. With the smart account, a failed HSM domain is just an address that stops producing signatures. The two remaining domains sign an ordinary UserOperation that replaces it, the EntryPoint enforces the same validation it always does, and the change lands as a public, replayable event. Our rule for every component follows from that: a signer, bundler or paymaster that fails must be replaceable by a transaction the surviving quorum can authorize without the failed party taking part, and any design that needs the failed party to cooperate in its own removal is rejected.

Keeping the rest of the path alive

The quorum only helps if a signed operation still reaches a block, so the signing service sends each UserOperation to at least two independent bundlers and keeps a fallback that calls handleOps directly from an HSM-held relayer key when every public mempool is down. Every operation carries a validUntil window of 300 seconds, short enough that a signature stuck at a dead bundler expires before anyone can replay it at a bad moment, and long enough to cover HSM queueing and a bundler retry. The paymaster is optional by design: if its deposit runs dry or its signer goes offline, the account pays its own gas from a buffer the policy refuses to spend below. Key custody sits in modules validated under cryptographic module schemes such as FIPS 140 and Common Criteria, with each of the three domains on a separate vendor or cloud trust root, so a single firmware recall cannot take out two signers at once. We put the cost of on-chain 2-of-3 validation at tens of thousands of extra gas per operation over a single ECDSA check, an estimate, and we accept it as the price of recovery that anyone can audit. Passkey signers add P-256 verification, which is cheap only where the chain exposes a precompile, so the policy treats WebAuthn as one approver among several and never as the sole path.

What would have flipped the decision

Had the vault needed to hold assets on chains with no canonical EntryPoint or no economical P-256 verification, threshold MPC would have been the correct answer, and the remaining risk is that the product roadmap adds exactly such a chain, which forces the next decision: run a second custody architecture alongside this one, or decline the chain.

Technical FAQ: Does an EntryPoint version migration reintroduce the single point of failure we were trying to remove?

Partly. A new EntryPoint means a new trusted contract, and an account that cannot move to it while the old one is deprecated is stranded. We handle this by making the EntryPoint address a quorum-governed setting in the account rather than a constant, so the same 2-of-3 that replaces a dead signer also approves the migration, and by keeping the old EntryPoint deposit funded until the new path has run cleanly in production.

Related Architecture Specifications (HSM): devicehsm.com · hsmcrypt.com · idhsm.com

More Technical Articles on wallethsm.com

The Account Abstraction Revolution: Architecting Enterprise ERC-4337 Bundlers with Hardware Security Modules →Biometric Web3: Securing Passkey-Authorized Smart Wallets with Hardware Cryptographic Infrastructure →