ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / getBinaryTreeKey

Function: getBinaryTreeKey()

getBinaryTreeKey(stem, leaf): Uint8Array<ArrayBuffer>

Defined in: packages/util/src/binaryTree.ts:133

Combine a 31-byte stem with a leaf suffix to form a binary-tree key (node width 256).

Parameters

stem

Uint8Array

leaf

Uint8Array<ArrayBufferLike> | BinaryTreeLeafType

BinaryTreeLeafType constant or raw suffix bytes

Returns

Uint8Array<ArrayBuffer>