@did-btc1/smt / NodeFactory
Class: NodeFactory
Defined in: factory.ts:9
Constructors
Constructor
> new NodeFactory(hasher
): NodeFactory
Defined in: factory.ts:10
Parameters
hasher
Returns
NodeFactory
Methods
createBranch()
> createBranch(left
, right
): Branch
Defined in: factory.ts:21
Parameters
left
right
Returns
createEmptyLeaf()
> createEmptyLeaf(): Leaf
Defined in: factory.ts:16
Returns
createLeaf()
> createLeaf(value
, sum
): Leaf
Defined in: factory.ts:12
Parameters
value
Uint8Array
sum
bigint