mirror of
https://github.com/status-im/nim-eth.git
synced 2025-02-16 16:06:35 +00:00
* port eth2_digest speedups to eth_hash * faster comparison * `hash` integration * lower-case printing
12 lines
215 B
Nim
12 lines
215 B
Nim
import
|
|
./trie_defs
|
|
|
|
export trie_defs
|
|
|
|
template checkValidHashZ*(x: untyped) =
|
|
when x.type isnot KeccakHash:
|
|
doAssert(x.len == 32 or x.len == 0)
|
|
|
|
template isZeroHash*(x: openArray[byte]): bool =
|
|
x.len == 0
|