Skip to content

BranchNode⚓︎

BranchNode
Branch node in a compact Patricia tree.

Extends⚓︎

Constructors⚓︎

new BranchNode()⚓︎

new BranchNode(path, links): BranchNode

Creates a branch node.

Parameters⚓︎

Parameter Type Description
path PatriciaTreePath Branch path.
links Hash256[] Branch links.

Returns⚓︎

BranchNode

Overrides⚓︎

TreeNode.constructor

Properties⚓︎

Property Type Description Inherited from
links Hash256[] Branch links. -
path PatriciaTreePath Node path. TreeNode.path

Accessors⚓︎

hexPath⚓︎

Get Signature⚓︎

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

string

Hex representation of path.

Inherited from⚓︎

TreeNode.hexPath

Methods⚓︎

calculateHash()⚓︎

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

Returns⚓︎

Hash256

Hash of the node.

Inherited from⚓︎

TreeNode.calculateHash