Function tari_wallet_ffi::wallet_get_public_key [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_get_public_key(
wallet: *mut TariWallet,
error_out: *mut c_int
) -> *mut TariPublicKey
Get the TariPublicKey from a TariWallet
Arguments
wallet
- The TariWallet pointer
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 the public key, note that ptr::null_mut() is returned
if wc is null
Safety
The public_key_destroy
method must be called when finished with a TariPublicKey to prevent a memory leak