GithubHelp home page GithubHelp logo

isabella232 / ethsingapore-hackathon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bankex/ethsingapore-hackathon

0.0 0.0 0.0 76.16 MB

License: Apache License 2.0

JavaScript 27.51% Shell 1.28% CSS 0.06% HTML 6.40% Go 64.00% Python 0.75%

ethsingapore-hackathon's Introduction

ETHSingapore-hackathon

Plasma Cashflow with history reduction with zk-SNARKS.

plasma

What have we done here?

  1. Plasma cashflow, based on specs https://hackmd.io/DgzmJIRjSzCYvl4lUjZXNQ?view and https://ethresear.ch/t/plasma-prime-design-proposal/4222
  2. History voids compression on zkSNARK

Overview more about voids and history reduction here: https://ethresear.ch/t/plasma-prime-design-proposal/4222 https://ethresear.ch/t/short-s-nt-ark-exclusion-proofs-for-plasma/4438

Main goals for this prototype: We are going to show plasma spec without lacks of MoreVP, Cash or RSA accumulators. We think, potentially fully s[nt]ark-driven plasma is better. But this construction is closer to production usage because we use the very simple circuit to exclude voids from the history. It is enough to use only hash functions and Merkle proofs, without any signatures or transaction processing.

What can you see here:

  1. SNARK, compressing the voids. For production, usage needs to implement Pedersen hash on bellman or libsnark.
  2. prototypes of some kinds of challenges. We do not focus all our attention on challenges, because plasma cash-specific challenges are a solved problem and no novelty here.
  3. we implement SumMerkleTree on solidity, golang, python, zokrates, covered by tests
  4. Also, you can see the plasma with separate components: root node, thick and thin client, contracts and snark.

Installation

  1. Run install.sh
  2. Run ganache
  3. Deploy BankexPlasma contract
  4. Copy address to config.go at node/config
  5. Run operator.go with go run operator.go
  6. Rum verifier.go with go run verifier.go
  7. Open http://localhost:8080/frontend to see the dashboard

Don't forget to import your private key from ganache to config.go

ethsingapore-hackathon's People

Contributors

enorage avatar k06a avatar poma avatar snjax 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.