Home Reference Source Test
public class | source

MerklePath

Static Method Summary

Static Public Methods
public static

compute(values: Array, leafValue: *, fnHash: function(o: *): Hash): MerklePath

public static

Constructor Summary

Public Constructor
public

constructor(nodes: Array<MerklePathNode>)

Member Summary

Public Members
public get
public get

serializedSize: number

Method Summary

Public Methods
public

computeRoot(leafValue: *, fnHash: function(o: *): Hash): Hash

public

equals(o: MerklePath): boolean

public

Static Public Methods

public static compute(values: Array, leafValue: *, fnHash: function(o: *): Hash): MerklePath source

Params:

NameTypeAttributeDescription
values Array
leafValue *
fnHash function(o: *): Hash
  • optional

Return:

MerklePath

public static unserialize(buf: SerialBuffer): MerklePath source

Params:

NameTypeAttributeDescription
buf SerialBuffer

Return:

MerklePath

Public Constructors

public constructor(nodes: Array<MerklePathNode>) source

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
leafValue *
fnHash function(o: *): Hash
  • optional

Return:

Hash

public equals(o: MerklePath): boolean source

Params:

NameTypeAttributeDescription
o MerklePath

Return:

boolean

public serialize(buf: SerialBuffer): SerialBuffer source

Params:

NameTypeAttributeDescription
buf SerialBuffer
  • optional

Return:

SerialBuffer