ethereumjs-monorepo

@ethereumjs/mpt


@ethereumjs/mpt / pathToHexKey

Function: pathToHexKey()

pathToHexKey(path, extension, retType): Uint8Array

Defined in: packages/mpt/src/util/encoding.ts:150

Takes a string path and extends it by the given extension nibbles

Parameters

path

string

String node path

extension

Nibbles

nibbles to extend by

retType

string

string indicating whether to return the key in “keybyte” or “hex” encoding

Returns

Uint8Array

hex-encoded key