Solidity Verifier
Pattern for publishing commitments and enabling verification.
In many deployments, the on-chain component is a commitment registry (batch hash + proof reference).
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract FairseqRegistry {
event BatchCommitted(bytes32 indexed batchHash, bytes32 indexed proofHash);
function commit(bytes32 batchHash, bytes32 proofHash) external {
emit BatchCommitted(batchHash, proofHash);
}
}
This enables:
- immutable batch commitments on-chain
- off-chain proof verification tied to the commitment