LeafNode⚓︎
- LeafNode
- Leaf node in a compact Patricia tree.
Extends⚓︎
Constructors⚓︎
new LeafNode()⚓︎
Creates a leaf node.
Parameters⚓︎
Parameter | Type | Description |
---|---|---|
path |
PatriciaTreePath |
Leaf path. |
value |
Hash256 |
Leaf value. |
Returns⚓︎
LeafNode
Overrides⚓︎
Properties⚓︎
Property | Type | Description | Inherited from |
---|---|---|---|
path |
PatriciaTreePath |
Node path. | TreeNode .path |
value |
Hash256 |
Leaf value. | - |
Accessors⚓︎
hexPath⚓︎
Get Signature⚓︎
Gets hex representation of path.
Returns⚓︎
string
Hex representation of path.
Inherited from⚓︎
Methods⚓︎
calculateHash()⚓︎
- LeafNode.calculateHash
- Calculates node hash.
Returns⚓︎
Hash of the node.