@did-btc1/smt / Branch
Class: Branch
Defined in: branch.ts:7
Implements
Constructors
Constructor
> new Branch(leftChild
, rightChild
, hasher
): Branch
Defined in: branch.ts:11
Parameters
leftChild
rightChild
hasher
Returns
Branch
Methods
copy()
> copy(): Node
Defined in: branch.ts:41
copy performs a deep copy (or "computed" reference). In real usage, you might store partial subtrees or do a shallow copy.
Returns
Implementation of
getHash()
> getHash(): Uint8Array
Defined in: branch.ts:17
getHash returns the Merkle hash of this node.
Returns
Uint8Array
Implementation of
getLeftChild()
> getLeftChild(): Node
Defined in: branch.ts:57
Returns
getRightChild()
> getRightChild(): Node
Defined in: branch.ts:61
Returns
getSum()
> getSum(): bigint
Defined in: branch.ts:32
getSum returns the 64-bit sum that this node contributes upward.
Returns
bigint