nim-eth/eth/p2p
Jacek Sieka 6bd6bae86c
Align core types with execution spec (#733)
Since these types were written, we've gained an executable spec:

https://github.com/ethereum/execution-specs

This PR aligns some of the types we use with this spec to simplify
comparisons and cross-referencing.

Using a `distinct` type is a tradeoff between nim ergonomics, type
safety and the ability to work around nim quirks and stdlib weaknesses.

In particular, it allows us to overload common functions such as `hash`
with correct and performant versions as well as maintain control over
string conversions etc at the cost of a little bit of ceremony when
instantiating them.

Apart from distinct byte types, `Hash32`, is introduced in lieu of the
existing `Hash256`, again aligning this commonly used type with the spec
which picks bytes rather than bits in the name.
2024-09-29 10:52:19 +02:00
..
discoveryv5 Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
private Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
auth.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
bootnodes.nim Remove unused bootnodes and add Holesky bootnodes (#644) 2023-10-25 11:07:55 +07:00
discovery.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
ecies.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
enode.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
kademlia.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
p2p_backends_helpers.nim Use asyncraises in p2p (#675) 2024-02-14 15:59:13 +07:00
p2p_protocol_dsl.nim Using unsigned types for message type and requst IDs (#722) 2024-08-30 17:27:09 +00:00
p2p_tracing.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
p2p_tracing_ctail_plugin.nim Moved eth-p2p to eth 2019-02-05 17:40:29 +02:00
peer_pool.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
rlpx.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
rlpxcrypt.nim results: use standalone repo (#687) 2024-05-30 14:46:57 +02:00