Skip to main content

append_receipt

Function append_receipt 

Source
pub fn append_receipt(
    root: &Path,
    capture_utc: Option<i64>,
    receipt: &CustodyReceipt,
) -> Result<(), ReceiptStoreError>
Expand description

Append a verified receipt to the asset’s on-disk log ({uuid}.receipts.cbor), idempotent on receipt_seq: re-persisting a receipt already present is a no-op, so a retried fetch never duplicates the log. The log is stored as canonical CBOR of the receipt Vec in chain order.