Skip to main content

pamoja_agreement_key_public

Function pamoja_agreement_key_public 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_agreement_key_public( key: *const PamojaAgreementKey, out_public_key: *mut u8, ) -> PamojaStatus
Expand description

Copies out the public key to hand to a peer.

§Arguments

§Returns

PamojaStatus::Ok on success.

§Safety

key must be a live handle from pamoja_agreement_key_from_seed, and out_public_key must point to at least PAMOJA_SESSION_KEY_LEN writable bytes.