ethereumjs-monorepo

@ethereumjs/mpt


@ethereumjs/mpt / pathToHexKey

Function: pathToHexKey()

pathToHexKey(path, extension, retType): Uint8Array

Defined in: util/encoding.ts:151

Extend a hex path string with extension nibbles and encode as keybytes or hex bytes.

Parameters

path

string

Hex path without 0x prefix

extension

Nibbles

Nibbles appended to the path

retType

string

"hex" or "keybyte" output encoding

Returns

Uint8Array