Skip to main content

ProofNode class

ProofNode is a partial Reverse Hash Service result it contains the current node hash and its children

ProofNode

Signature:

export declare class ProofNode 

Constructors

ConstructorModifiersDescription
(constructor)(hash, children)Creates an instance of ProofNode.

Properties

PropertyModifiersTypeDescription
childrenHash[]
hashHash

Methods

MethodModifiersDescription
fromHex(hexNode)static

Creates ProofNode Hashes from hex values

nodeType()Determination of Node type Can be: Leaf, Middle or State node
toJSON()JSON Representation of ProofNode with a hex values