pub fn verify_receipt(
receipt: &CustodyReceipt,
pinned_keys: &[HybridVerifyingKey],
expected: &ReceiptExpectations,
now_unix: i64,
) -> Result<(), ReceiptRejection>Expand description
Verify a fetched receipt for a finalized upload: the hybrid signature under one of the
pinned_keys (the published attestation-key history), then that the server’s recomputed
facts match what the client sent, then the gross-drift bound on received_at.
now_unix is the client’s current UNIX time (injected for determinism). Returns Ok(())
only when the receipt is admissible evidence for the write.