@ethereumjs/verkle / LeafNode
↳ LeafNode
• new LeafNode(options)
| Name | Type |
|---|---|
options |
VerkleLeafNodeOptions |
• c1: Point
• c2: Point
• commitment: Point
• depth: number
• stem: Uint8Array
• type: VerkleNodeType = VerkleNodeType.Leaf
• values: Uint8Array[]
▸ commit(): Point
▸ getValue(index): null | Uint8Array
| Name | Type |
|---|---|
index |
number |
null | Uint8Array
▸ hash(): Uint8Array
Uint8Array
▸ insert(key, value, nodeResolverFn): void
| Name | Type |
|---|---|
key |
Uint8Array |
value |
Uint8Array |
nodeResolverFn |
() => void |
void
▸ insertMultiple(key, values): void
| Name | Type |
|---|---|
key |
Uint8Array |
values |
Uint8Array[] |
void
▸ insertStem(key, value, resolver): void
| Name | Type |
|---|---|
key |
Uint8Array |
value |
Uint8Array[] |
resolver |
() => void |
void
▸ raw(): Uint8Array[]
Uint8Array[]
▸ serialize(): Uint8Array
Uint8Array
the RLP serialized node
▸ setDepth(depth): void
| Name | Type |
|---|---|
depth |
number |
void
▸ Static create(stem, values): LeafNode
| Name | Type |
|---|---|
stem |
Uint8Array |
values |
Uint8Array[] |
▸ Static fromRawNode(rawNode, depth): LeafNode
| Name | Type |
|---|---|
rawNode |
Uint8Array[] |
depth |
number |