Skip to content

TreeNode⚓︎

TreeNode
Node in a compact Patricia tree.

Extended by⚓︎

Constructors⚓︎

new TreeNode()⚓︎

new TreeNode(path): TreeNode

Creates a tree node.

Parameters⚓︎

Parameter Type Description
path PatriciaTreePath Node path.

Returns⚓︎

TreeNode

Properties⚓︎

Property Type Description
path PatriciaTreePath Node path.

Accessors⚓︎

hexPath⚓︎

Get Signature⚓︎

get hexPath(): string
TreeNode.hexPath
Gets hex representation of path.
Returns⚓︎

string

Hex representation of path.

Methods⚓︎

calculateHash()⚓︎

calculateHash(): Hash256
TreeNode.calculateHash
Calculates node hash.

Returns⚓︎

Hash256

Hash of the node.