#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_agreement_key_public(
key: *const PamojaAgreementKey,
out_public_key: *mut u8,
) -> PamojaStatusExpand description
Copies out the public key to hand to a peer.
§Arguments
key- the agreement key.out_public_key- receivesPAMOJA_SESSION_KEY_LENbytes.
§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.