Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMountainRange ¶
type IMountainRange[TIndex index.Value, THash types.HashType] interface { Add(ctx context.Context, values ...THash) error Get(ctx context.Context, index TIndex) (THash, error) ProofByIndex(ctx context.Context, index TIndex) (*Proof[TIndex, THash], error) Proof(ctx context.Context, item THash) (*Proof[TIndex, THash], error) Root(ctx context.Context) (IRoot[TIndex, THash], error) Size() TIndex }
func NewMountainRange ¶
func NewMountainRange[TIndex index.Value, THash types.HashType](hf types.Hasher[THash], indexes store.IIndexSource[TIndex, THash]) IMountainRange[TIndex, THash]
NewMountainRange creates a new Merkle Mountain Range.
type INode ¶ added in v0.1.3
type INode[THash types.HashType] interface { encoding.BinaryMarshaler Children() []THash SetLeft(h THash) SetRight(h THash) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.