19 lines
459 B
Rust
19 lines
459 B
Rust
|
use tree_hash::TreeHashType;
|
||
|
|
||
|
#[derive(Debug, PartialEq, Clone)]
|
||
|
pub enum Error {
|
||
|
ShouldNotProduceBTreeOverlay,
|
||
|
NoFirstNode,
|
||
|
NoBytesForRoot,
|
||
|
UnableToObtainSlices,
|
||
|
UnableToGrowMerkleTree,
|
||
|
UnableToShrinkMerkleTree,
|
||
|
TreeCannotHaveZeroNodes,
|
||
|
ShouldNeverBePacked(TreeHashType),
|
||
|
BytesAreNotEvenChunks(usize),
|
||
|
NoModifiedFieldForChunk(usize),
|
||
|
NoBytesForChunk(usize),
|
||
|
NoOverlayForIndex(usize),
|
||
|
NotLeafNode(usize),
|
||
|
}
|