IMessageProcessor
MessageProcessor interface
processingComplete
function processingComplete() external view returns (bool)
Get the result of whether there are unprocessed messages left
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | Whether there are unprocessed messages left |
sbCommitment
function sbCommitment() external view returns (uint256)
Get the commitment to the state and ballot roots
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The commitment to the state and ballot roots |
getPublicCircuitInputs
function getPublicCircuitInputs(uint256 _currentMessageBatchIndex, uint256 _newSbCommitment) external view returns (uint256[])
Get public circuit inputs.
Parameters
Name | Type | Description |
---|---|---|
_currentMessageBatchIndex | uint256 | The current processed batch index |
_newSbCommitment | uint256 | The new state root and ballot root commitment after all messages are processed |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256[] | publicInputs public circuit inputs |