ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / getVerkleTreeIndicesForStorageSlot

Function: getVerkleTreeIndicesForStorageSlot()

getVerkleTreeIndicesForStorageSlot(storageKey): object

Defined in: packages/util/src/verkle.ts:197

Calculates the position of the storage key in the Verkle tree, determining both the tree index (the node in the tree) and the subindex (the position within the node).

Parameters

storageKey

bigint

The key representing a specific storage slot.

Returns

object

subIndex

subIndex: number

treeIndex

treeIndex: bigint