ethereumjs-monorepo

@ethereumjs/trie / ExtensionNode

Class: ExtensionNode

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ExtensionNode(nibbles, value)

Parameters

Name Type
nibbles Nibbles
value Uint8Array

Overrides

Node.constructor

Defined in

packages/trie/src/node/extension.ts:8

Properties

_nibbles

_nibbles: Nibbles

Inherited from

Node._nibbles

Defined in

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


_terminator

_terminator: boolean

Inherited from

Node._terminator

Defined in

packages/trie/src/node/node.ts:11


_value

_value: Uint8Array

Inherited from

Node._value

Defined in

packages/trie/src/node/node.ts:10

Methods

encodedKey

encodedKey(): Nibbles

Returns

Nibbles

Inherited from

Node.encodedKey

Defined in

packages/trie/src/node/node.ts:43


key

key(k?): Nibbles

Parameters

Name Type
k? Nibbles

Returns

Nibbles

Inherited from

Node.key

Defined in

packages/trie/src/node/node.ts:23


keyLength

keyLength(): number

Returns

number

Inherited from

Node.keyLength

Defined in

packages/trie/src/node/node.ts:31


raw

raw(): [Uint8Array, Uint8Array]

Returns

[Uint8Array, Uint8Array]

Inherited from

Node.raw

Defined in

packages/trie/src/node/node.ts:47


serialize

serialize(): Uint8Array

Returns

Uint8Array

Inherited from

Node.serialize

Defined in

packages/trie/src/node/node.ts:51


value

value(v?): Uint8Array

Parameters

Name Type
v? Uint8Array

Returns

Uint8Array

Inherited from

Node.value

Defined in

packages/trie/src/node/node.ts:35


decodeKey

Static decodeKey(key): Nibbles

Parameters

Name Type
key Nibbles

Returns

Nibbles

Inherited from

Node.decodeKey

Defined in

packages/trie/src/node/node.ts:19


encodeKey

Static encodeKey(key): Nibbles

Parameters

Name Type
key Nibbles

Returns

Nibbles

Defined in

packages/trie/src/node/extension.ts:12