ethereumjs-monorepo

@ethereumjs/verkle / LeafNode

Class: LeafNode

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LeafNode(options)

Parameters

Name Type
options VerkleLeafNodeOptions

Overrides

BaseVerkleNode.constructor

Defined in

node/leafNode.ts:15

Properties

c1

c1: Point

Defined in

node/leafNode.ts:11


c2

c2: Point

Defined in

node/leafNode.ts:12


commitment

commitment: Point

Inherited from

BaseVerkleNode.commitment

Defined in

node/baseVerkleNode.ts:8


depth

depth: number

Inherited from

BaseVerkleNode.depth

Defined in

node/baseVerkleNode.ts:9


stem

stem: Uint8Array

Defined in

node/leafNode.ts:9


type

type: VerkleNodeType = VerkleNodeType.Leaf

Defined in

node/leafNode.ts:13


values

values: Uint8Array[]

Defined in

node/leafNode.ts:10

Methods

commit

commit(): Point

Returns

Point

Overrides

BaseVerkleNode.commit

Defined in

node/leafNode.ts:48


getValue

getValue(index): null | Uint8Array

Parameters

Name Type
index number

Returns

null | Uint8Array

Defined in

node/leafNode.ts:52


hash

hash(): Uint8Array

Returns

Uint8Array

Inherited from

BaseVerkleNode.hash

Defined in

node/baseVerkleNode.ts:19


insert

insert(key, value, nodeResolverFn): void

Parameters

Name Type
key Uint8Array
value Uint8Array
nodeResolverFn () => void

Returns

void

Overrides

BaseVerkleNode.insert

Defined in

node/leafNode.ts:56


insertMultiple

insertMultiple(key, values): void

Parameters

Name Type
key Uint8Array
values Uint8Array[]

Returns

void

Defined in

node/leafNode.ts:62


insertStem

insertStem(key, value, resolver): void

Parameters

Name Type
key Uint8Array
value Uint8Array[]
resolver () => void

Returns

void

Defined in

node/leafNode.ts:66


raw

raw(): Uint8Array[]

Returns

Uint8Array[]

Overrides

BaseVerkleNode.raw

Defined in

node/leafNode.ts:71


serialize

serialize(): Uint8Array

Returns

Uint8Array

the RLP serialized node

Inherited from

BaseVerkleNode.serialize

Defined in

node/baseVerkleNode.ts:30


setDepth

setDepth(depth): void

Parameters

Name Type
depth number

Returns

void

Defined in

node/leafNode.ts:82


create

Static create(stem, values): LeafNode

Parameters

Name Type
stem Uint8Array
values Uint8Array[]

Returns

LeafNode

Defined in

node/leafNode.ts:24


fromRawNode

Static fromRawNode(rawNode, depth): LeafNode

Parameters

Name Type
rawNode Uint8Array[]
depth number

Returns

LeafNode

Defined in

node/leafNode.ts:28