nimbus-eth1/tests/replay
Jordan Hrycaj 4feaa2cfab
Aristo db update for short nodes key edge cases (#1887)
* Aristo: Provide key-value list signature calculator

detail:
  Simple wrappers around `Aristo` core functionality

* Update new API for `CoreDb`

details:
+ Renamed new API functions `contains()` => `hasKey()` or `hasPath()`
  which disables the `in` operator on non-boolean 	`contains()` functions
+ The functions `get()` and `fetch()` always return a not-found error if
  there is no item, available. The new functions `getOrEmpty()` and
  `mergeOrEmpty()` return an an empty `Blob` if there is no such key
  found.

* Rewrite `core_apps.nim` using new API from `CoreDb`

* Use `Aristo` functionality for calculating Merkle signatures

details:
  For debugging, the `VerifyAristoForMerkleRootCalc` can be set so
  that `Aristo` results will be verified against the legacy versions.

* Provide general interface for Merkle signing key-value tables

details:
  Export `Aristo` wrappers

* Activate `CoreDb` tests

why:
  Now, API seems to be stable enough for general tests.

* Update `toHex()` usage

why:
  Byteutils' `toHex()` is superior to `toSeq.mapIt(it.toHex(2)).join`

* Split `aristo_transcode` => `aristo_serialise` + `aristo_blobify`

why:
+ Different modules for different purposes
+ `aristo_serialise`: RLP encoding/decoding
+ `aristo_blobify`: Aristo database encoding/decoding

* Compacted representation of small nodes' links instead of Keccak hashes

why:
  Ethereum MPTs use Keccak hashes as node links if the size of an RLP
  encoded node is at least 32 bytes. Otherwise, the RLP encoded node
  value is used as a pseudo node link (rather than a hash.) Such a node
  is nor stored on key-value database. Rather the RLP encoded node value
  is stored instead of a lode link in a parent node instead. Only for
  the root hash, the top level node is always referred to by the hash.

  This feature needed an abstraction of the `HashKey` object which is now
  either a hash or a blob of length at most 31 bytes. This leaves two
  ways of representing an empty/void `HashKey` type, either as an empty
  blob of zero length, or the hash of an empty blob.

* Update `CoreDb` interface (mainly reducing logger noise)

* Fix copyright years (to make `Lint` happy)
2023-11-08 12:18:32 +00:00
..
goerli68161.txt.gz Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00:00
gunzip.nim bump submodules to further reduce compiler warnings 2023-02-02 09:29:02 +07:00
mainspecs2k.txt.gz Exported blobs and some scripts to parallel project nimbus-eth1-blobs (#995) 2022-03-16 09:13:17 +00:00
pp.nim Aristo db update for short nodes key edge cases (#1887) 2023-11-08 12:18:32 +00:00
pp_light.nim Aristo db update for short nodes key edge cases (#1887) 2023-11-08 12:18:32 +00:00
undump_accounts.nim Aristo db update for short nodes key edge cases (#1887) 2023-11-08 12:18:32 +00:00
undump_blocks.nim Unified database frontend integration (#1670) 2023-08-04 12:10:09 +01:00
undump_kvp.nim Unified database frontend integration (#1670) 2023-08-04 12:10:09 +01:00
undump_storages.nim Aristo db update for short nodes key edge cases (#1887) 2023-11-08 12:18:32 +00:00
xcheck.nim Aristo db allow shorter than 64 nibbles path keys (#1864) 2023-10-27 22:36:51 +01:00