Common utilities for Ethereum https://nimbus.status.im
Go to file
jangko 67bbd88616
Replace exception with assertion in rlp.append of BlockHeader
Using exception in rlp.append turn out creates more problem than it solve.
`blockHash` operation is literally everywhere in nimbus-eth1, nimbus-eth2, and fluffy-code.
The compiler begins to complain about unlisted exception.
Rlp bytes coming from network and test vectors already verified by the decoder.
So, any invalid optional fields of blockheader that come into rlp.append means
programming error. Assertion will be more apropiate in this situation and less problematic.
2023-05-25 15:27:37 +07:00
.github/workflows support only Nim 1.6+ (#606) 2023-05-09 20:19:44 +00:00
doc Fix some typos (#557) 2022-11-16 17:44:00 +01:00
eth Replace exception with assertion in rlp.append of BlockHeader 2023-05-25 15:27:37 +07:00
tests Replace exception with assertion in rlp.append of BlockHeader 2023-05-25 15:27:37 +07:00
tools Move dcli tool to a tools folder (#584) 2023-01-27 18:40:40 +01:00
.gitignore use bearssl rng throughout (#265) 2020-07-07 10:56:26 +02:00
LICENSE-APACHEv2 Moved eth-common to eth 2019-02-05 12:10:36 +02:00
LICENSE-MIT Moved eth-common to eth 2019-02-05 12:10:36 +02:00
README.md move rocksdb to nimbus-eth1 (#460) 2022-04-04 13:46:57 +02:00
eth.nimble support only Nim 1.6+ (#606) 2023-05-09 20:19:44 +00:00
nim.cfg move -d:nimRawSetjmp to nim.cfg (#513) 2022-06-21 16:25:42 +02:00

README.md

eth - Eth Common Library

License: Apache License: MIT Stability: experimental Github action

Introduction

Ethereum-related utilities written in Nim. Includes things like Bloom filters, private/public key utilities, RLP, devp2p, and more.

Docs

Prerequisites

  • Nim & Nimble

Building & Testing

# Install required modules
nimble install
# Run full test suite
nimble test

You can also run specific parts of the test suite, e.g.:

# Test p2p functionality
nimble test_p2p
# Test rlp functionality
nimble test_rlp

Fuzzing

Next to the test suite, there are also several fuzzing test cases available. How these can be run is explained in the fuzzing readme.

License

Licensed and distributed under either of

or

at your option. This file may not be copied, modified, or distributed except according to those terms.