Skip to main content
Version: v2.0_alpha

IMessageProcessor

MessageProcessor interface

processingComplete

function processingComplete() external view returns (bool)

Get the result of whether there are unprocessed messages left

Return Values

NameTypeDescription
[0]boolWhether there are unprocessed messages left

sbCommitment

function sbCommitment() external view returns (uint256)

Get the commitment to the state and ballot roots

Return Values

NameTypeDescription
[0]uint256The commitment to the state and ballot roots

getPublicCircuitInputs

function getPublicCircuitInputs(uint256 _currentMessageBatchIndex, uint256 _newSbCommitment) external view returns (uint256[])

Get public circuit inputs.

Parameters

NameTypeDescription
_currentMessageBatchIndexuint256The current processed batch index
_newSbCommitmentuint256The new state root and ballot root commitment after all messages are processed

Return Values

NameTypeDescription
[0]uint256[]publicInputs public circuit inputs