Proposal for Bunker Mode (Quantum-Safe) UMA Voting

Inspired by Justin Drake’s call to action:

Intro

UMA voting ultimately depends on the security of the keys used by tokenholders. There is reason to worry that ECDSA may be broken in the near term by AI with advanced mathematical capabilities and in the medium term by quantum computers. To secure the DVM, UMA voters should migrate to safer voting schemes as soon as possible.

This is the rough first draft of a proposal to harden the UMA protocol to survive the current risk environment. It only requires one new contract, which can be implemented as middleware, the general migration of UMA tokens to smart contract wallets, and frontend work.

Delegate Middleware Contract

UMA currently allows for vote delegation. I would suggest a simple Delegate contract that has an owner address and a nextOwner address. It would also have a function that allows the owner to submit vote(s) to the DVM while simultaneously updating the nextOwner (the previous nextOwner value becomes the new owner).

As an example:

  • Current owner is 0xabc, and current nextOwner is 0xdef
  • 0xabc submits a vote, and designates 0x123 as the new nextOwner
  • 0xdef is promoted to owner and 0x123 is the new nextOwner

Alternatively, the owner may submit a transaction that only designates a new nextOwner, without submitting a vote.

The owner and nextOwner addresses should always be fresh EOAs. Since the public key of the owner is exposed with each vote, an adversary with advanced capabilities—an AI-discovered ECDSA exploit or a sufficiently powerful quantum computer—could discover the private key of the owner and submit a malicious vote. However, they could not change the next owner in the queue, which has been designated in advance and is a fresh EOA.

Migration of UMA Tokens to Smart Contract Wallets

UMA tokenholders should also migrate their UMA tokens to smart contract wallets—such as Safe contracts—and delegate the tokens in those wallets to a Delegate contract with owner and nextOwner values that are fresh EOAs. Then, they should set the owner address of the smart contract wallet itself to a different fresh EOA.

If UMA tokens are generally held by EOAs, vote or vote delegation transactions will expose the public key of the tokenholder address, and therefore potentially expose the private key in the long run. UMA tokens could be safely held by a fresh EOA, but could not be used for voting, and would therefore serve no purpose.

Protocol Pause and Recovery Mechanism

If ECDSA seems to have been compromised, UMA tokenholders can effectively pause the protocol by generally declining to vote with the next clean owner address in their Delegate contracts. When EIP-8141 Frame Transactions are available, the owner may submit a transaction through a private mempool to the Delegate contract that selects a new quantum-safe address as the nextOwner.

Voter Dapp Updates

The UMA voter dapp should make it easy for voters to migrate to this architecture, and encourage them strongly to do so. The flow:

  1. Deploy a Delegate contract
  2. Set the owner and nextOwner in Delegate to fresh EOAs
  3. Deploy a Safe
  4. Migrate UMA tokens to the Safe
  5. Assign ownership of the Safe to a fresh EOA

In addition, there should be guides on how to generate and use fresh EOAs with existing wallet software. There is a lot more that could be fleshed out in this area.

Conclusion

It seems to me that this proposal would protect UMA tokenholders and the UMA protocol from the worst effects of a breakdown of ECDSA security. It requires only one new contract (Delegate), which would be very simple in its functionality. The remainder of the protocol can remain as-is.

The difficult part will be the migration itself, and ongoing voting with fresh addresses. This is a substantial UX challenge, but worth the lift, given the current threat.