ethereumjs-monorepo

@ethereumjs/mpt


@ethereumjs/mpt / genesisMPTStateRoot

Function: genesisMPTStateRoot()

genesisMPTStateRoot(genesisState): Promise<Uint8Array<ArrayBufferLike>>

Defined in: util/genesisState.ts:20

Compute the state root for a genesis allocation map.

Builds account and storage tries with key hashing enabled.

Parameters

genesisState

GenesisState

Returns

Promise<Uint8Array<ArrayBufferLike>>