Post-quantum owners for Safe: hash-based signers (Winterlock)

TL;DR
Every Safe is ultimately controlled by ECDSA owner keys. Winterlock replaces them with hash-based owners — WOTS for daily signing, SPHINCS+ for recovery — that an existing Safe can adopt in place, without moving funds. Feedback welcome. We’d also ask the foundation to consider an open call for post-quantum owner support.

Why now
This week Vitalik argued that AI-accelerated math could weaken elliptic-curve and lattice cryptography sooner than expected, and recommended hash-based constructions wherever possible. Ethereum’s post-quantum roadmap targets core L1 upgrades for 2029. Wallet migration will take longer.

For Safe specifically:

  • A Safe has no key of its own, but its owners are almost always ECDSA.
  • Every executed transaction publishes owner signatures, so each signer’s public key is recoverable. If ECDSA weakens, those keys are the first targets.
  • Owners can be swapped in place, without moving funds — avoiding the migration mistakes Vitalik says have cost him more than hacks.

What we propose

  1. Hash-based owner. An EIP-1271 contract that verifies WOTS signatures against a Merkle tree of one-time keys. Each key is valid for one Safe nonce only. A stateless SPHINCS+ key is the backup and recovery path.
  2. Migration. Tooling to add a Winterlock owner, raise the threshold, and retire the ECDSA owners, after checking modules, guards, and fallback handlers so no ECDSA path to the funds remains.
  3. Shared verification cost. A WOTS signature is about 2 KB and takes hundreds of hashes to check, far more gas than ECDSA. An off-chain prover can collect many signatures and post one STARK proof that they are all valid, splitting the on-chain cost across the batch. STARKs are hash-based, so the stack stays free of elliptic curves and lattices. Anyone can skip the batch and verify directly at full price. Batching is optional and cannot block a transaction.
  4. Signing app. Existing hardware wallets first; dedicated hardware only if demand justifies it.

Once owners are hash-based, publishing signatures on-chain no longer exposes a reusable key.

Open questions

  • Long term, does Safe prefer an EIP-1271 owner, a module, or a guard?
  • Some flows sign more than once per nonce (rejections, off-chain messages, permits). We plan separate key slots so no one-time key is reused. Better ideas welcome.
  • Would Safe{Wallet} flag owners whose public keys are already exposed?
  • Which chains first? Verification gas is easier to absorb on L2s.
  • Any DAOs or treasuries interested as design partners?

What we’re asking for

  • Design feedback.
  • A foundation open call or grant track for post-quantum owner support.
  • Help with Safe app integration, and audit funding through the security track.

Rough milestones

  1. Spec, reference contracts, test suite
  2. Audited owner contract and migration tool on testnet
  3. Batched verification beta, with direct verification as fallback
  4. Hardware wallet signing app

About us
Johann & Max, Berlin
winterlock.eth.limo

4 Likes

Update: prototype on Sepolia, and what it costs

I’ve built a prototype and tested it end to end on Sepolia. Winterlock signers work as ordinary Safe owners today, through Safe’s own app and Transaction Service, with no changes on Safe’s side:

  • Each member is an EIP-1271 owner contract. Every one-time key is bound to one Safe, network and nonce, and a spare key per nonce allows replacing or cancelling.
  • Members’ signers post proposals and confirmations through the Transaction Service API (about 1.8 KB each), and Safe’s app shows the queue, confirmations and history as usual.
  • An existing Safe can switch in place by swapping its owners one at a time, and a member’s owner has the same address on every network.

Gas

Measured with Safe v1.4.1 at today’s mainnet pricing:

ECDSA owners Winterlock owners
2-of-3 ETH transfer 65.8k 247.3k
2-of-3 ERC-20 transfer 72.6k 253.9k
Extra per signing owner about 90k
Once per member and network (owner and first keys) about 255k
Once per network, shared by everyone about 3M
  • The ratio looks large because a plain Safe transfer is cheap. What matters is the absolute extra: about 90k gas per signing owner. At 1 gwei that’s about 0.00009 ETH, and on an L2 at 0.01 gwei about 0.0000009 ETH, plus a small L1 data fee.
  • Sepolia already runs Glamsterdam, which makes new state much more expensive. There, transactions cost about the same, while the one-time costs grow: about 0.6M gas per member and network, and about 20M once per network.
  • For comparison, a single-signer ERC-4337 account (Kernel) with Winterlock costs about 1.3× an ECDSA transfer on L1 under Glamsterdam pricing, and about 1.6× on L2s.

Questions for the Safe team and the community

  1. Message signatures don’t fit. A post-quantum message signature is about 5.8 KB per owner, over the Transaction Service’s 5,000-byte limit for message confirmations. For now the plan is on-chain approval through SignMessageLib for permits, and collecting sign-in signatures ourselves. Would you consider a higher limit for contract-owner message signatures?
  2. Executing as a non-owner. Does Safe’s app let a connected account that isn’t an owner execute a fully confirmed transaction? Winterlock owners can’t connect a wallet, so a member would execute from any funded account.
  3. Review. Reviews of the construction from cryptographers are very welcome: the tweaks, the target-sum encoding, the nonce binding and the key certificates.

winterlock.eth.limo

1 Like

the test rig for hardware signers