Function tari_wallet_ffi::contact_get_public_key[][src]

#[no_mangle]pub unsafe extern "C" fn contact_get_public_key(
    contact: *mut TariContact,
    error_out: *mut c_int
) -> *mut TariPublicKey

Gets the TariPublicKey of the TariContact

Arguments

contact - The pointer to a TariContact error_out - Pointer to an int which will be modified to an error code should one occur, may not be null. Functions as an out parameter.

Returns

*mut TariPublicKey - Returns a pointer to a TariPublicKey. Note that it returns ptr::null_mut() if contact is null

Safety

The public_key_destroy method must be called when finished with a TariPublicKey to prevent a memory leak