Skip to main content
Version: v3.x

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, uint256 _outputBatchHash) 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
_outputBatchHashuint256The output batch hash

Return Values

NameTypeDescription
[0]uint256[]publicInputs public circuit inputs