EspressoSystems/espresso

Improve KVMerkleTree's `check` API

Opened this issue · 0 comments

The current returned value Option(Option(val), hash) is confusing- the outer Option is never used. A return value of Result<Option, root> makes more sense, where:

  • on failure, return the root hash
  • otherwise, return value only if key was inserted