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.
Warning: At times this code will only build on specific CPUs.
$ mkdir build
$ cd build
$ cmake .. -DMINIMAL=true
$ make
Warning: This code is not portable and will not run on arbitrary CPUs, currently it runs only on Intel or AMD CPUS that either support SHA extensions natively or support AVX2 extensions.
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
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.
- Relies on Acutest for basic testing (included)
- Depends and on yaml-cpp for yaml decoding/encoding.
- Includes modified assembly from intel-ipsec-mb optimized for processing of SHA256 of 64 bytes blocks.