@ethereumjs/verkle / InternalNode
-
↳
InternalNode
• new InternalNode(options
)
Name | Type |
---|---|
options |
VerkleInternalNodeOptions |
• children: (null
| VerkleNode
)[]
• commitment: Point
• copyOnWrite: Record
<string
, Point
>
• depth: number
• type: VerkleNodeType
= VerkleNodeType.Internal
▸ commit(): Point
▸ cowChild(_
): void
Name | Type |
---|---|
_ |
number |
void
▸ getChildren(index
): null
| VerkleNode
Name | Type |
---|---|
index |
number |
null
| VerkleNode
▸ hash(): Uint8Array
Uint8Array
▸ insert(key
, value
, resolver
): void
Name | Type |
---|---|
key |
Uint8Array |
value |
Uint8Array |
resolver |
() => void |
void
▸ insertStem(stem
, values
, resolver
): void
Name | Type |
---|---|
stem |
Uint8Array |
values |
Uint8Array [] |
resolver |
() => void |
void
▸ raw(): Uint8Array
[]
Uint8Array
[]
▸ serialize(): Uint8Array
Uint8Array
the RLP serialized node
▸ setChild(index
, child
): void
Name | Type |
---|---|
index |
number |
child |
VerkleNode |
void
▸ Static
create(depth
): InternalNode
Name | Type |
---|---|
depth |
number |
▸ Static
fromRawNode(rawNode
, depth
): InternalNode
Name | Type |
---|---|
rawNode |
Uint8Array [] |
depth |
number |