#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_audit_log_append(
log: *mut PamojaAuditLog,
payload: *const u8,
payload_len: usize,
) -> *mut PamojaAuditEntryExpand description
Appends a payload to a log, signing it and chaining it onto the last entry.
§Arguments
log- the log to append to.payload- the record to store.payload_len- the length ofpayloadin bytes.
§Returns
A handle to the new entry, which the caller must release with
pamoja_audit_entry_free, or null on failure.
§Safety
log must be a live handle from pamoja_audit_log_new or
pamoja_audit_log_resume, and payload must point to at least
payload_len readable bytes, or be null when payload_len is 0.