GithubHelp home page GithubHelp logo

mammon's Introduction

Mammon

Will slowly be an ETH consensus client for research purposes.

Written in C++, currently only has basic types for phase0, their serialization and Merkleization. This is very skeletal and is only here to test a CI environment, things will move drastically from commit to commit. The only functionality currently is in test_ssz which tests the serialization, deserialization and Merkleization, as well as the yaml deconding/encoding of the basic types. Relies on Acutest for basic testing and on yaml-cpp for yaml decoding/encoding.

Build

Warning: At times (for example now) this code will only build on specific CPUs. Currently it should only build on CPUs supporting SHA-ni extensions. I will update with runtime checks after different extensions assembly has been implemented.

$ mkdir build
$ cd build
$ cmake .. -DMINIMAL=true
$ make

Place the eth2 test vectors from the eth2 spec tests repo in the root directory of mammon (this repo has one one test-vector for each type). Run the tests with

$ make test

Setup

format is Google C++ Style Guide with the only modifications that indentation is 4 characters and column width is 120. Enforced with clang-format. Code is checked with clang-tidy and cppcheck.

I'm testing on Arch linux and compiling both with gcc and clang, using C++20. This repo is under GPLv3 with the caveat that acutest is released under MIT license.

  • No Doxygen strings.
  • No error checking.
  • Not portable.

mammon's People

Contributors

potuz avatar

Watchers

 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.