Giter VIP home page Giter VIP logo

rb's Introduction

beacon

Random beacon simulator

Build

docker pull dfinity/build-env

git clone [email protected]:timohanke/rb.git

cd rb

docker run --rm -it -v `pwd`/go:/go dfinity/build-env go run main.go

Run linter(s)

Run all linters:

docker run --rm -it -v `pwd`/go:/go dfinity/build-env gometalinter ./...

As of Jan 22 (EOD) this runs without warnings:

gometalinter --deadline=10s --disable=gas --disable=gocyclo --disable=gotype --disable=interfacer ./...

Run

Simulation

go run sim.go

Cgo test and benchmark

go run test.go

Dependencies

All dependencies below are taken care off in the docker image dfinity/build-env.

go-ethereum

Code currently depends on github.com/ethereum/go-ethereum/common being present in the src directory. This will be removed.

bls command line tool

Code currently calls the command line tool bls_tool.exe compiled from Shigeo's code. This is to be replaced by Shigeo's Cgo code.

The build instructions are here: https://github.com/herumi/bls -> readme.md -> Installation Requirements

That also requires apt-get install libssl-dev

cgo bindings

For cgo, which is transitioning in, we need the environment variables set:

export LIBRARY_PATH=/build/herumi/bls/lib:/build/herumi/mcl/lib:$LIBRARY_PATH

export CPATH=/build/herumi/bls/include:$CPATH

rb's People

Contributors

timohanke avatar bjwbell avatar

Stargazers

Helin Wang avatar Jake avatar

Watchers

 avatar James Cloos avatar  avatar Jake 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.