Module penumbra_tct::storage

source ·
Expand description

Incremental serialization and non-incremental deserialization for the Tree.

Re-exports§

Modules§

  • An in-memory storage backend, useful for testing.

Structs§

  • An update to the underlying storage that constitutes deleting a range of hashes and commitments.
  • Builder for loading commitments to create a Tree.
  • Builder for loading hashes to create a Tree.
  • An update to the underlying storage that constitutes storing a single commitment.
  • An update to the underlying storage that constitutes storing a single hash.
  • A collection of updates to the underlying storage.

Enums§

  • A stored position for the tree: either the position of the tree, or a marker indicating that it is full, and therefore does not have a position.
  • A single update to the underlying storage, as a data type.

Traits§

  • An async storage backend capable of reading stored Hashes and [Commitment]s as well as storing the current Position.
  • An async storage backend capable of writing Hashes and [Commitment]s, and garbage-collecting those which have been forgotten.
  • A synchronous storage backend capable of reading stored Hashes and [Commitment]s as well as storing the current Position.
  • A synchronous storage backend capable of writing Hashes and [Commitment]s, and garbage-collecting those which have been forgotten.