ethereumjs-monorepo

@ethereumjs/trie / BranchNode

Class: BranchNode

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BranchNode()

Defined in

packages/trie/src/node/branch.ts:9

Properties

_branches

_branches: (null | EmbeddedNode)[]

Defined in

packages/trie/src/node/branch.ts:6


_value

_value: null | Uint8Array

Defined in

packages/trie/src/node/branch.ts:7

Methods

getBranch

getBranch(i): null | EmbeddedNode

Parameters

Name Type
i number

Returns

null | EmbeddedNode

Defined in

packages/trie/src/node/branch.ts:41


getChildren

getChildren(): [number, EmbeddedNode][]

Returns

[number, EmbeddedNode][]

Defined in

packages/trie/src/node/branch.ts:50


raw

raw(): (null | EmbeddedNode)[]

Returns

(null | EmbeddedNode)[]

Defined in

packages/trie/src/node/branch.ts:33


serialize

serialize(): Uint8Array

Returns

Uint8Array

Defined in

packages/trie/src/node/branch.ts:37


setBranch

setBranch(i, v): void

Parameters

Name Type
i number
v null | EmbeddedNode

Returns

void

Defined in

packages/trie/src/node/branch.ts:29


value

value(v?): null | Uint8Array

Parameters

Name Type
v? null | Uint8Array

Returns

null | Uint8Array

Defined in

packages/trie/src/node/branch.ts:21


fromArray

Static fromArray(arr): BranchNode

Parameters

Name Type
arr Uint8Array[]

Returns

BranchNode

Defined in

packages/trie/src/node/branch.ts:14