Skip to content

IPovwMint

PovwMint controls the minting of token rewards associated with Proof of Verifiable Work (PoVW). This contract consumes updates produced by the mint calculator guest, mints token rewards, and maintains state to ensure that any given token reward is minted at most once.

Functions

mint

Mint tokens as a reward for verifiable work.

function mint(bytes calldata journalBytes, bytes calldata seal) external;

workLogCommit

Get the current work log commitment for the given work log.

This commits to the consumed nonces for all updates that have been included in a mint operation.

function workLogCommit(address workLogId) external view returns (bytes32);

Errors

InvalidSteelCommitment

selector 0x36ce79a0

error InvalidSteelCommitment();

IncorrectSteelContractAddress

selector 0x98d6328f

error IncorrectSteelContractAddress(address expected, address received);

IncorrectInitialUpdateCommit

selector 0xf4a2b615

error IncorrectInitialUpdateCommit(bytes32 expected, bytes32 received);