Skip to content

olehmisar/zklogin

Repository files navigation

zkLogin for Base blockchain

Sign in with Apple/Google on Base. Self-custodial. Try it now: https://zklogin.oleh.wtf

How it works

Create a Base(or any EVM) account using "Sign in with Google" flow (Apple is in progress). The account is tied to your Google account and can only be controlled by you.

zkLogin uses zero knowledge proofs to verify the ownership of a Google account to sign transactions on-chain without compromising on security or privacy. Create a self-custodial account now: https://zklogin.oleh.wtf.

zkLogin uses Noir to generate zk proofs and verify them on-chain.

Running locally

Requirements

  • Node.js: recommended to use nvm
  • pnpm: npm install -g pnpm

Run UI

Fill in your .env file and run:

cd apps/interface
pnpm dev

Solidity contracts

Test:

pnpm run test

Deploy:

pnpm run deploy --network baseSepolia --gasprice 0.002gwei

Project structure

  • apps/ - Applications
  • packages/ - Packages

Common scripts

Scripts follow the same pattern in all apps/ and packages/:

  • pnpm dev - Start in development mode
  • pnpm build - Build for production
  • pnpm test:lint - Type-check and lint code
  • pnpm test - Run tests and pnpm test:lint
  • pnpm compile - If available, compile contracts