Skip to main content

pamoja_audit_log_new

Function pamoja_audit_log_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_audit_log_new( identity: *const PamojaDeviceIdentity, ) -> *mut PamojaAuditLog
Expand description

Creates a log that signs with a device identity and starts from nothing.

§Arguments

  • identity - the identity whose signature each entry will carry.

§Returns

A handle the caller must release with pamoja_audit_log_free, or null on failure with the reason available from pamoja_last_error_message.

§Safety

identity must be a live handle from pamoja_device_identity_new, or null.