MerklePath
Static Method Summary
Static Public Methods | ||
public static |
compute(values: Array, leafValue: *, fnHash: function(o: *): Hash): MerklePath |
|
public static |
unserialize(buf: SerialBuffer): MerklePath |
Constructor Summary
Public Constructor | ||
public |
constructor(nodes: Array<MerklePathNode>) |
Member Summary
Public Members | ||
public get |
nodes: Array<MerklePathNode> |
|
public get |
serializedSize: number |
Method Summary
Public Methods | ||
public |
computeRoot(leafValue: *, fnHash: function(o: *): Hash): Hash |
|
public |
equals(o: MerklePath): boolean |
|
public |
serialize(buf: SerialBuffer): SerialBuffer |
Static Public Methods
public static compute(values: Array, leafValue: *, fnHash: function(o: *): Hash): MerklePath source
Params:
Name | Type | Attribute | Description |
values | Array | ||
leafValue | * | ||
fnHash | function(o: *): Hash |
|
public static unserialize(buf: SerialBuffer): MerklePath source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
Public Constructors
public constructor(nodes: Array<MerklePathNode>) source
Params:
Name | Type | Attribute | Description |
nodes | Array<MerklePathNode> |
Public Members
public get nodes: Array<MerklePathNode> source
public get serializedSize: number source
Public Methods
public computeRoot(leafValue: *, fnHash: function(o: *): Hash): Hash source
Params:
Name | Type | Attribute | Description |
leafValue | * | ||
fnHash | function(o: *): Hash |
|
public equals(o: MerklePath): boolean source
Params:
Name | Type | Attribute | Description |
o | MerklePath |
Return:
boolean |
public serialize(buf: SerialBuffer): SerialBuffer source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|