The code in this repo is unaudited and not recommended for production use.
Please refer to this Ethereum Research post for details. The circuits in this repo uses circuits from circom-ecdsa.
yarn
yarn run build:ecdsaverify
yarn run run:ecdsaverify
cd ./bench
open ./index.html
The full proof and the proving time will be displayed in the browser console.
Circuit | Constraints | zKey size |
---|---|---|
ecdsa_verify | 163,239 | 119MB |
ecdsa_verify_pubkey_to_addr | 466,599 | 291MB |
The setup:
- M1 Pro Macbook Pro
- Internet speed: 40Mbps
- Browser: Brave browser
Circuit | Proving time |
---|---|
ecdsa_verify | 51s |
ecdsa_verify_pubkey_to_addr | 107s |
The setup:
- M1 Pro Macbook Pro
Circuit | Proving time |
---|---|
ecdsa_verify | 18s |
ecdsa_verify_pubkey_to_addr | 32s |