Docs
Reference
Contract documentation
L1
IProver

IProver

Defines the function that handles prover assignment.

onBlockAssigned

function onBlockAssigned(uint64 blockId, struct TaikoData.BlockMetadataInput input, struct TaikoData.ProverAssignment assignment) external payable

Assigns a prover to a specific block or reverts if this prover is not available.

Parameters

NameTypeDescription
blockIduint64The ID of the proposed block. Note that the ID is only known when the block is proposed, therefore, it should not be used for verifying prover authorization.
inputstruct TaikoData.BlockMetadataInputThe block's BlockMetadataInput data.
assignmentstruct TaikoData.ProverAssignmentThe assignment to evaluate