Git Product home page Git Product logo

gurrpi / plasma-evm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tokamak-network/plasma-evm

0.0 2.0 0.0 98.2 MB

Forked from ethereum/[email protected]

License: GNU Lesser General Public License v3.0

Dockerfile 0.03% Makefile 0.10% Go 88.75% Shell 0.15% NSIS 0.18% Ruby 0.01% Python 0.28% HTML 0.10% JavaScript 4.21% Solidity 0.18% Assembly 0.36% C 4.49% C++ 0.73% M4 0.20% Java 0.23% CSS 0.01% Perl 0.01%

plasma-evm's Introduction

Plasma EVM PoC Implementation

Proof-of-concept Implementation of Plasma EVM, forked from Onther-Tech/plasma-evm. You can check the RootChain smart contract here.

Development Status

  • Make enter / exit requests
  • Submit NRBs / ORBs
  • Finalize block and requests
  • Challenge on Null Address Transaction in NRBs

Implementing TrueBit's verification game is under research as well as challenges that requires verification game.

Ethereum client

Building geth requires both a Go (version 1.9 or later) and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, run

We're using Onther-Tech/go-ethereum as an ethereum client instead of ganache-cli due to the support for WebSocket JSONRPC endpoint. Especially, the client is modified with respect to genesis and developer accounts setup like ganache-cli.

For the simple start of both clients(ethereum, plasma-evm), you can run run.rootchain.sh in Onther-Tech/go-ethereum and run.pls.sh in Onther-Tech/plasma-evm (this is recommended way to setup devlop and test plasma-evm).

Build

Just run make geth in terminal.

Command-line Options

Here is some additional command-line options for Plasma-EVM.

ROOTCHAIN OPTIONS:
  --rootchain.opeartorAddress   Specify operator address as hex
  --rootchain.operatorKey       Specify operator key as hex
  --rootchain.contract          The address of RootChain contract
  --rootchain.url               JSONRPC endpoint of rootchain provider. Use WebSocket to subscribe events. (default: ws://localhost:8546)

DEVELOPER CHAIN OPTIONS:
  --dev.key                 Comma seperated keys as hex for developer accounts

Account Import

You can import your private key and HDwallet into new account with keystore

Using Private Key

Inside build/bin directory, run the following command

geth account importKey <privateKey>

Using HDwallet

Inside build/bin directory, run the following command

geth account importHDwallet <mnemonic> <path>

Test

Some original geth tests may fail. You can just test plasam-evm related feature by running

$ go test pls/rootchain_manager_test.go

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.