Coder Social home page Coder Social logo

vivianjeng / anon-transfer Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 632 KB

Transfer X ETH with A account, withdraw Y ETH with B account.

Home Page: https://anon-transfer.online/

Dockerfile 0.22% Solidity 2.05% TypeScript 97.04% CSS 0.51% JavaScript 0.18%
anonymous blockchain ethereum transfer unirep zk-snarks zkp

anon-transfer's Introduction

Hi there ๐Ÿ‘‹

anon-transfer's People

Contributors

antoncoding avatar vivianjeng avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

anon-transfer's Issues

[fix] Only support `gwei` transfer

current ETH supply is 122 million ETH

unit dec bit
wei 122000000000000000000000000 87 bit
gwei 122000000000000000 57 bit
ETH 122000000 27 bit

If anon-transfer only supports gwei transfer, we can avoid bit constraints
#10

Overflow

Now reputation proof only supports 64-bit rep
but genProveReputationProof takes number as input

https://github.com/Unirep/Unirep/blob/bae7ee7f33eef45c42730e1b277ccaf138abd56d/packages/core/src/UserState.ts#L743

// number
> 2**64
? 18446744073709552000

// max safe integer
> 2**53-1
? 9007199254740991

// bigint
> BigInt(2)**BigInt(64)
? 18446744073709551616n

Fix1:

  • use circuit template to input bigint string directly
  • (Or write a custom circuit to store 253-bit data)

Fix2:

  • frontend should alert the maximum withdraw amout

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.