@did-btc1/smt / Node
Interface: Node
Defined in: node.ts:4
Methods
copy()
> copy(): Node
Defined in: node.ts:15
copy performs a deep copy (or "computed" reference). In real usage, you might store partial subtrees or do a shallow copy.
Returns
Node
getHash()
> getHash(): Uint8Array
Defined in: node.ts:6
getHash returns the Merkle hash of this node.
Returns
Uint8Array
getSum()
> getSum(): bigint
Defined in: node.ts:9
getSum returns the 64-bit sum that this node contributes upward.
Returns
bigint