@ethereumjs/binarytree / InternalBinaryNode
Defined in: node/internalNode.ts:9
Binary tree internal (branch) node with two child references.
new InternalBinaryNode(
options):InternalBinaryNode
Defined in: node/internalNode.ts:14
InternalBinaryNodeOptions
InternalBinaryNode
children: (
ChildBinaryNode|null)[]
Defined in: node/internalNode.ts:10
type:
0=BinaryNodeType.Internal
Defined in: node/internalNode.ts:12
getChild(
index):ChildBinaryNode|null
Defined in: node/internalNode.ts:71
number
ChildBinaryNode | null
raw():
Uint8Array<ArrayBufferLike>[]
Defined in: node/internalNode.ts:101
Returns the raw serialized representation of this internal node as an array of Uint8Arrays.
The returned array contains:
pathLength is a one-byte Uint8Array representing the number of meaningful bits in the child’s path.packedPathBytes is the packed byte representation of the child’s bit path (as produced by bitsToBytes).Uint8Array<ArrayBufferLike>[]
Raw RLP array: type byte, child hashes, then RLP-encoded child paths
serialize():
Uint8Array
Defined in: node/internalNode.ts:82
Uint8Array
the RLP serialized node
setChild(
index,child):void
Defined in: node/internalNode.ts:75
number
ChildBinaryNode | null
void
staticcreate(children?):InternalBinaryNode
Defined in: node/internalNode.ts:64
Generates a new Internal node
(ChildBinaryNode | null)[]
the children nodes
InternalBinaryNode
a new Internal node
staticfromRawNode(rawNode):InternalBinaryNode
Defined in: node/internalNode.ts:18
Uint8Array<ArrayBufferLike>[]
InternalBinaryNode