Skip to content

New_storage: initial refactoring

Context

This MR refactors the lib_new_storage:

  1. The main change is that the Simple module is functorized so that the hash function becomes a parameter. This is useful to have an actual hash implementation while being able debug the code using just byte concatenation.
  2. This MR defines two new files: key.ml and stream.ml, for modules previously found in simple.ml.
  3. We remove the deprecated Fixed_size module.
  4. We hide the stream type, only exposing the Stream_consume and Stream_produce modules. This way, the type checker ensures the correct handling of the stream.

Manually testing the MR

Checklist

Issue: finalize storage for ORU

tezos/tezos#1647

Edited by Antonio Locascio

Merge request reports