Skip to content

Latest commit

 

History

History
339 lines (188 loc) · 6.65 KB

InternalNode.md

File metadata and controls

339 lines (188 loc) · 6.65 KB

@ethereumjs/verkle / InternalNode

Class: InternalNode

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new InternalNode(options)

Parameters

Name Type
options VerkleInternalNodeOptions

Overrides

BaseVerkleNode.constructor

Defined in

node/internalNode.ts:19

Properties

children

children: (null | VerkleNode)[]

Defined in

node/internalNode.ts:14


commitment

commitment: Point

Inherited from

BaseVerkleNode.commitment

Defined in

node/baseVerkleNode.ts:8


copyOnWrite

copyOnWrite: Record<string, Point>

Defined in

node/internalNode.ts:15


depth

depth: number

Inherited from

BaseVerkleNode.depth

Defined in

node/baseVerkleNode.ts:9


type

type: VerkleNodeType = VerkleNodeType.Internal

Defined in

node/internalNode.ts:16

Methods

commit

commit(): Point

Returns

Point

Overrides

BaseVerkleNode.commit

Defined in

node/internalNode.ts:25


cowChild

cowChild(_): void

Parameters

Name Type
_ number

Returns

void

Defined in

node/internalNode.ts:29


getChildren

getChildren(index): null | VerkleNode

Parameters

Name Type
index number

Returns

null | VerkleNode

Defined in

node/internalNode.ts:63


hash

hash(): Uint8Array

Returns

Uint8Array

Inherited from

BaseVerkleNode.hash

Defined in

node/baseVerkleNode.ts:19


insert

insert(key, value, resolver): void

Parameters

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

Returns

void

Overrides

BaseVerkleNode.insert

Defined in

node/internalNode.ts:67


insertStem

insertStem(stem, values, resolver): void

Parameters

Name Type
stem Uint8Array
values Uint8Array[]
resolver () => void

Returns

void

Defined in

node/internalNode.ts:73


raw

raw(): Uint8Array[]

Returns

Uint8Array[]

Overrides

BaseVerkleNode.raw

Defined in

node/internalNode.ts:116


serialize

serialize(): Uint8Array

Returns

Uint8Array

the RLP serialized node

Inherited from

BaseVerkleNode.serialize

Defined in

node/baseVerkleNode.ts:30


setChild

setChild(index, child): void

Parameters

Name Type
index number
child VerkleNode

Returns

void

Defined in

node/internalNode.ts:33


create

Static create(depth): InternalNode

Parameters

Name Type
depth number

Returns

InternalNode

Defined in

node/internalNode.ts:54


fromRawNode

Static fromRawNode(rawNode, depth): InternalNode

Parameters

Name Type
rawNode Uint8Array[]
depth number

Returns

InternalNode

Defined in

node/internalNode.ts:37