MerkleApi class abstract interface

Frontier-model Merkle contexts (Sapling + Orchard + Ironwood wallet sync).

Leaves append in order; subtrees must be level-16 aligned at the tip; checkpoints cap at 100 (oldest evicted); witnesses replay the leaf log; positions inside absorbed history are unwitnessable.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkpoint(int id, int checkpointId) → void
Snapshot all trees under checkpointId (evicts oldest beyond cap).
closeContext(int id) → void
Drop a context.
createContext() → int
Create an empty wallet context. Returns 0 on internal error.
createWitness(int id, {required int kind, required int checkpointId, required List<int> positions}) → BuMerkleWitness
Witness positions at checkpointId.
getContext(int id) → BuBytes
Export a context blob (restorable via insertChainState).
insertChainState(int id, {required List<int> blob}) → void
Restore a context from an exported blob (replaces state).
mergeState(int id, {required int kind, required List<int> blob}) → void
Merge checkpoints + contiguous subtrees from an exported merge blob.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateState(int id, {required int kind, required List<int> leaves}) → void
Append n = len/32 leaves to a protocol tree.
updateSubtree(int id, {required int kind, required int start, required List<int> root32}) → void
Absorb one level-16 subtree root at start (must equal current size).

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

ironwood → const int
Ironwood pool (NU6.3 second slot, Orchard-typed frontier).
orchard → const int
Orchard protocol tree.
sapling → const int
Sapling protocol tree.