ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / encodeVerkleLeafBasicData

Function: encodeVerkleLeafBasicData()

encodeVerkleLeafBasicData(account): Uint8Array

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

This function takes a VerkleLeafBasicData object and encodes its properties (version, nonce, code size, and balance) into a compact Uint8Array format. Each property is serialized and padded to match the required byte lengths defined by EIP-6800. Additionally, 4 bytes are reserved for future use as specified in EIP-6800.

Parameters

account

Account

Returns

Uint8Array