Skip to content

Post-quantum signature verification precompile (Falcon / FN-DSA)  #422

Description

@bilalprof

Arc's fee model makes on-chain post-quantum signing economically impossible
today, and a precompile would fix it.

We run a self-custodial payments product where every transaction is signed
in the user's browser with Falcon-1024, the NIST-standardised post-quantum
scheme. We are live on Algorand where Falcon is a native account type. We
would like to move to Arc.

Measured on Arc mainnet at the current 20 Gwei floor, with USDC gas at 18
decimals:

plain USDC transfer 65,000 gas $0.0013
Falcon-512, keccak variant 1,500,000 gas $0.030
Falcon-512, NIST compliant 3,900,000 gas $0.078
Falcon-1024, NIST (est.) ~7,800,000 gas ~$0.156

A Falcon-1024 verification is therefore more than a hundred times the cost of
the payment it authorises, and consumes roughly a quarter of a 30M gas block.
Every available verifier is also Falcon-512 only, unaudited, and the authors
state it should not be used in production.

Draft EIP-8052 proposes a standardised precompile at around 3,000 gas per
verification, which would bring the cost to a small fraction of a cent.

Questions:

  1. Is post-quantum signature verification on Arc's roadmap?
  2. If not, would Circle consider a precompile along EIP-8052 lines?

Arc would be the first chain where stablecoin payments can be post-quantum
secure at the protocol level. Happy to share our measurements and test cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions