Skip to main content

pamoja_public_identity_fingerprint

Function pamoja_public_identity_fingerprint 

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

Writes the short hex fingerprint of a public key.

The fingerprint is a convenient label for logs and displays, not a substitute for the full key when checking trust.

§Returns

PamojaStatus::Ok on success, having written PAMOJA_FINGERPRINT_LEN lowercase hex characters to out_fingerprint. No null terminator is written.

§Safety

public_key must point to at least PAMOJA_KEY_LEN readable bytes, and out_fingerprint must point to at least PAMOJA_FINGERPRINT_LEN writable bytes.