GithubHelp home page GithubHelp logo

4nnnn / zksync-account-webauthn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from porco-rosso-j/zksync-account-webauthn

0.0 0.0 0.0 729 KB

TypeScript 71.94% CSS 0.58% HTML 0.64% Solidity 26.84%

zksync-account-webauthn's Introduction

Overview

This is the submission for Scaling Ethereum hackathon held by ETHGlobal.
see: https://ethglobal.com/showcase/bye-bye-private-key-wm3aa

Contracts

contract Description
Account.sol zkSync Account Abstraction Wallet
AccountFactory.sol Deployer of Account.sol
WebAuthn.sol handles values given by webauthn and produce message for validation in EllipticCurve
EllipticCurve.sol verify message and signature with publickey. ECDSA256 & p256 curve
Paymaster.sol sponsor for accounts' meta-transaction

Development

setup

git clone [email protected]:porco-rosso-j/zksync-account-webauthn.git
cd zksync-account-webauthn
yarn

Run zksync local network

docker should be run first.

git clone https://github.com/matter-labs/local-setup.git
cd local-setup
./start.sh

Deployment

create .env file and add the line NODE_ENV="test".

then run:

yarn hardhat compile
yarn hardhat deploy-zksync --script deploy/deploy.ts

Preparetion for frontend

copy&paste deployed address to frontend/src/scripts/utils/address/ts

webauthn: "0x4B5DF730c2e6b28E17013A1485E5d9",
factory: "0x996462e0eAf00bF6BF0Ea15F29d715C0eD3906F1",
paymaster: "0x1A2894885076934dAf5a398Ff216c6d665707bbA",

run frontend

cd frontend
yarn
yarn start

ceveats

zksync has recently launch zksync era and many changes have been made in dependencies. check: https://era.zksync.io/docs/dev/troubleshooting/changelog.html

zksync-account-webauthn's People

Contributors

porco-rosso-j avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.