#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_audit_verifier_check(
verifier: *mut PamojaAuditVerifier,
entry: *const PamojaAuditEntry,
) -> PamojaStatusExpand description
Checks the next entry of a chain, in the order the entries were written.
A verifier only accepts an entry that follows the one before it, so feeding entries out of order, skipping one, or repeating one is refused just as an altered payload is.
§Arguments
verifier- the verifier.entry- the next entry to check.
§Returns
PamojaStatus::Ok if the entry belongs where it was offered, or
PamojaStatus::Auth if the chain, the index, or the signature does not hold.
§Safety
verifier must be a live handle from pamoja_audit_verifier_new, and
entry a live entry handle, or either may be null.