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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(hash, children) | Creates an instance of ProofNode. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
children | Hash[] | ||
hash | Hash |
Methods
Method | Modifiers | Description |
---|---|---|
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 |