ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / getVerkleTreeKeyForCodeChunk

Function: getVerkleTreeKeyForCodeChunk()

getVerkleTreeKeyForCodeChunk(address, chunkId, verkleCrypto): Promise<Uint8Array<ArrayBufferLike>>

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

Asynchronously calculates the Verkle tree key for the specified code chunk ID.

Parameters

address

Address

The account address to access code for.

chunkId

number

The ID of the code chunk to retrieve.

verkleCrypto

VerkleCrypto

The cryptographic object used for Verkle-related operations.

Returns

Promise<Uint8Array<ArrayBufferLike>>