├── .gitignore ├── Cargo.toml ├── README.md ├── contracts ├── .gitignore ├── .gitmodules ├── README.md ├── broadcast │ └── DeployAccountFactory.s.sol │ │ └── 84531 │ │ ├── run-1692491824.json │ │ ├── run-1692491831.json │ │ ├── run-1692492058.json │ │ ├── run-1692492065.json │ │ └── run-latest.json ├── foundry.toml ├── script │ ├── Counter.s.sol │ └── DeployAccountFactory.s.sol ├── src │ ├── Counter.sol │ ├── P256Account.sol │ ├── P256AccountFactory.sol │ ├── P256Verifier.sol │ ├── SimpleAccount.sol │ ├── SimpleAccountFactory.sol │ ├── SponsorPaymaster.sol │ ├── callback │ │ └── TokenCallbackHandler.sol │ ├── core │ │ ├── BaseAccount.sol │ │ ├── BasePaymaster.sol │ │ ├── EntryPoint.sol │ │ ├── Helpers.sol │ │ ├── NonceManager.sol │ │ ├── SenderCreator.sol │ │ └── StakeManager.sol │ ├── interfaces │ │ ├── IAccount.sol │ │ ├── IAggregator.sol │ │ ├── IEntryPoint.sol │ │ ├── INonceManager.sol │ │ ├── IPaymaster.sol │ │ ├── IStakeManager.sol │ │ └── UserOperation.sol │ ├── samples │ │ ├── SimpleAccount.sol │ │ └── callback │ │ │ └── TokenCallbackHandler.sol │ └── utils │ │ └── Exec.sol └── test │ ├── P256Account.t.sol │ └── SponsorPaymaster.t.sol ├── halo2-circuits ├── Cargo.toml ├── rust-toolchain └── src │ ├── configs │ ├── bench_ecdsa.config │ └── ecdsa_circuit.config │ ├── ecc │ ├── ecdsa_p256.rs │ ├── es256.rs │ └── mod.rs │ ├── lib.rs │ └── results │ └── ecdsa_bench.csv ├── proving-server ├── Cargo.toml ├── P256Verifier.code ├── P256Verifier.sol ├── P256Verifier.yul ├── keys │ └── README.md ├── rust-toolchain └── src │ ├── configs │ └── ecdsa_circuit.config │ └── main.rs ├── rust-toolchain └── web-demo ├── .gitignore ├── .vercelignore ├── README.md ├── next-env.d.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public ├── favicon.ico ├── next.svg ├── thirteen.svg ├── touchID.png └── vercel.svg ├── src ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ └── hello.ts │ └── index.tsx └── styles │ ├── Home.module.css │ └── globals.css ├── tailwind.config.js ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/Cargo.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/README.md -------------------------------------------------------------------------------- /contracts/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/.gitignore -------------------------------------------------------------------------------- /contracts/.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contracts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/README.md -------------------------------------------------------------------------------- /contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692491824.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692491824.json -------------------------------------------------------------------------------- /contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692491831.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692491831.json -------------------------------------------------------------------------------- /contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692492058.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692492058.json -------------------------------------------------------------------------------- /contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692492065.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/broadcast/DeployAccountFactory.s.sol/84531/run-1692492065.json -------------------------------------------------------------------------------- /contracts/broadcast/DeployAccountFactory.s.sol/84531/run-latest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/broadcast/DeployAccountFactory.s.sol/84531/run-latest.json -------------------------------------------------------------------------------- /contracts/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/foundry.toml -------------------------------------------------------------------------------- /contracts/script/Counter.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/script/Counter.s.sol -------------------------------------------------------------------------------- /contracts/script/DeployAccountFactory.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/script/DeployAccountFactory.s.sol -------------------------------------------------------------------------------- /contracts/src/Counter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/Counter.sol -------------------------------------------------------------------------------- /contracts/src/P256Account.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/P256Account.sol -------------------------------------------------------------------------------- /contracts/src/P256AccountFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/P256AccountFactory.sol -------------------------------------------------------------------------------- /contracts/src/P256Verifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/P256Verifier.sol -------------------------------------------------------------------------------- /contracts/src/SimpleAccount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/SimpleAccount.sol -------------------------------------------------------------------------------- /contracts/src/SimpleAccountFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/SimpleAccountFactory.sol -------------------------------------------------------------------------------- /contracts/src/SponsorPaymaster.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/SponsorPaymaster.sol -------------------------------------------------------------------------------- /contracts/src/callback/TokenCallbackHandler.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/callback/TokenCallbackHandler.sol -------------------------------------------------------------------------------- /contracts/src/core/BaseAccount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/BaseAccount.sol -------------------------------------------------------------------------------- /contracts/src/core/BasePaymaster.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/BasePaymaster.sol -------------------------------------------------------------------------------- /contracts/src/core/EntryPoint.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/EntryPoint.sol -------------------------------------------------------------------------------- /contracts/src/core/Helpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/Helpers.sol -------------------------------------------------------------------------------- /contracts/src/core/NonceManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/NonceManager.sol -------------------------------------------------------------------------------- /contracts/src/core/SenderCreator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/SenderCreator.sol -------------------------------------------------------------------------------- /contracts/src/core/StakeManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/core/StakeManager.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/IAccount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/IAccount.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/IAggregator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/IAggregator.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/IEntryPoint.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/IEntryPoint.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/INonceManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/INonceManager.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/IPaymaster.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/IPaymaster.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/IStakeManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/IStakeManager.sol -------------------------------------------------------------------------------- /contracts/src/interfaces/UserOperation.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/interfaces/UserOperation.sol -------------------------------------------------------------------------------- /contracts/src/samples/SimpleAccount.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/samples/SimpleAccount.sol -------------------------------------------------------------------------------- /contracts/src/samples/callback/TokenCallbackHandler.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/samples/callback/TokenCallbackHandler.sol -------------------------------------------------------------------------------- /contracts/src/utils/Exec.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/src/utils/Exec.sol -------------------------------------------------------------------------------- /contracts/test/P256Account.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/test/P256Account.t.sol -------------------------------------------------------------------------------- /contracts/test/SponsorPaymaster.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/contracts/test/SponsorPaymaster.t.sol -------------------------------------------------------------------------------- /halo2-circuits/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/Cargo.toml -------------------------------------------------------------------------------- /halo2-circuits/rust-toolchain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/rust-toolchain -------------------------------------------------------------------------------- /halo2-circuits/src/configs/bench_ecdsa.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/src/configs/bench_ecdsa.config -------------------------------------------------------------------------------- /halo2-circuits/src/configs/ecdsa_circuit.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/src/configs/ecdsa_circuit.config -------------------------------------------------------------------------------- /halo2-circuits/src/ecc/ecdsa_p256.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/src/ecc/ecdsa_p256.rs -------------------------------------------------------------------------------- /halo2-circuits/src/ecc/es256.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/src/ecc/es256.rs -------------------------------------------------------------------------------- /halo2-circuits/src/ecc/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/src/ecc/mod.rs -------------------------------------------------------------------------------- /halo2-circuits/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod ecc; -------------------------------------------------------------------------------- /halo2-circuits/src/results/ecdsa_bench.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/halo2-circuits/src/results/ecdsa_bench.csv -------------------------------------------------------------------------------- /proving-server/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/Cargo.toml -------------------------------------------------------------------------------- /proving-server/P256Verifier.code: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/P256Verifier.code -------------------------------------------------------------------------------- /proving-server/P256Verifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/P256Verifier.sol -------------------------------------------------------------------------------- /proving-server/P256Verifier.yul: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/P256Verifier.yul -------------------------------------------------------------------------------- /proving-server/keys/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/keys/README.md -------------------------------------------------------------------------------- /proving-server/rust-toolchain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/rust-toolchain -------------------------------------------------------------------------------- /proving-server/src/configs/ecdsa_circuit.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/src/configs/ecdsa_circuit.config -------------------------------------------------------------------------------- /proving-server/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/proving-server/src/main.rs -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/rust-toolchain -------------------------------------------------------------------------------- /web-demo/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/.gitignore -------------------------------------------------------------------------------- /web-demo/.vercelignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/.vercelignore -------------------------------------------------------------------------------- /web-demo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/README.md -------------------------------------------------------------------------------- /web-demo/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/next-env.d.ts -------------------------------------------------------------------------------- /web-demo/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/next.config.js -------------------------------------------------------------------------------- /web-demo/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/package-lock.json -------------------------------------------------------------------------------- /web-demo/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/package.json -------------------------------------------------------------------------------- /web-demo/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/postcss.config.js -------------------------------------------------------------------------------- /web-demo/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/public/favicon.ico -------------------------------------------------------------------------------- /web-demo/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/public/next.svg -------------------------------------------------------------------------------- /web-demo/public/thirteen.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/public/thirteen.svg -------------------------------------------------------------------------------- /web-demo/public/touchID.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/public/touchID.png -------------------------------------------------------------------------------- /web-demo/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/public/vercel.svg -------------------------------------------------------------------------------- /web-demo/src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/src/pages/_app.tsx -------------------------------------------------------------------------------- /web-demo/src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/src/pages/_document.tsx -------------------------------------------------------------------------------- /web-demo/src/pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/src/pages/api/hello.ts -------------------------------------------------------------------------------- /web-demo/src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/src/pages/index.tsx -------------------------------------------------------------------------------- /web-demo/src/styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/src/styles/Home.module.css -------------------------------------------------------------------------------- /web-demo/src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/src/styles/globals.css -------------------------------------------------------------------------------- /web-demo/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/tailwind.config.js -------------------------------------------------------------------------------- /web-demo/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/tsconfig.json -------------------------------------------------------------------------------- /web-demo/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zkwebauthn/webauthn-halo2/HEAD/web-demo/yarn.lock --------------------------------------------------------------------------------