ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / getVerkleTreeIndicesForCodeChunk

Function: getVerkleTreeIndicesForCodeChunk()

getVerkleTreeIndicesForCodeChunk(chunkId): object

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

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

Parameters

chunkId

number

The ID representing a specific chunk.

Returns

object

subIndex

subIndex: number

treeIndex

treeIndex: number