use verifier::interface::{
DataUpdate, IVerifierDispatcher, IVerifierDispatcherTrait, SchnorrSignature,
};
fn consume_update(
verifier: ContractAddress, data_update: DataUpdate, sig: SchnorrSignature,
) {
let v = IVerifierDispatcher { contract_address: verifier };
assert(v.verify(data_update, sig), 'molpha: not verified');
// The payload is authentic. Apply YOUR policy before trusting `value`:
// - reject stale rounds (canonical_timestamp too old)
// - guard against replay (track last accepted (job_id, timestamp))
// - sanity-bound data_update.value for the job
}