[go: up one dir, main page]

Crate chia_datalayer

Crate chia_datalayer 

Source

Structs§

Block
BlockStatusCache
BreadthFirstIterator
DeltaFileCache
DeltaReader
Hash
InternalNode
KeyId
LeafNode
LeftChildFirstIterator
MerkleBlob
Stores a DataLayer merkle tree in bytes and provides serialization on each access so that only the parts presently in use are stored in active objects. The bytes are grouped as blocks of equal size regardless of being internal vs. external nodes so that block indexes can be used for references to particular nodes and readily converted to byte indexes. The leaf nodes do not hold the DataLayer key and value data but instead an id for each of the key and value such that the code using a merkle blob can store the key and value as they see fit. Each node stores the hash for the merkle aspect of the tree.
NodeMetadata
Parent
ParentFirstIterator
ProofOfInclusion
ProofOfInclusionLayer
TreeIndex
ValueId

Enums§

DeltaReaderNode
Error
InsertLocation
Node
NodeType
Side

Constants§

BLOCK_SIZE
DATA_SIZE
METADATA_SIZE

Functions§

block_range
calculate_internal_hash
collect_and_return_from_merkle_blob
get_internal_terminal
internal_hash
try_get_block
zstd_decode_path

Type Aliases§

BlockBytes
InternalNodesMap
LeafNodesMap
NodeHashToDeltaReaderNode
NodeHashToIndex
TreeIndexType