Skip to main content

pamoja_audit_verifier_new

Function pamoja_audit_verifier_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_audit_verifier_new( public_key: *const u8, ) -> *mut PamojaAuditVerifier
Expand description

Creates a verifier that checks a chain signed by one public key.

§Arguments

  • public_key - the PAMOJA_KEY_LEN-byte key the entries were signed with.

§Returns

A handle the caller must release with pamoja_audit_verifier_free, or null if the key is not a valid public key.

§Safety

public_key must point to at least PAMOJA_KEY_LEN readable bytes.