IL1DAValidator

Git Source

Functions

checkDA

The function that checks the data availability for the given batch input.

function checkDA(
  uint256 _chainId,
  uint256 _batchNumber,
  bytes32 _l2DAValidatorOutputHash,
  bytes calldata _operatorDAInput,
  uint256 _maxBlobsSupported
) external returns (L1DAValidatorOutput memory output);

Parameters

NameTypeDescription
_chainIduint256The chain id of the chain that is being committed.
_batchNumberuint256The batch number for which the data availability is being checked.
_l2DAValidatorOutputHashbytes32The hash of that was returned by the l2DAValidator.
_operatorDAInputbytesThe DA input by the operator provided on L1.
_maxBlobsSupporteduint256The maximal number of blobs supported by the chain. We provide this value for future compatibility. This is needed because the corresponding blobsLinearHashes/blobsOpeningCommitments in the L1DAValidatorOutput struct will have to have this length as it is required to be static by the circuits.