Function tari_wallet_ffi::private_key_get_bytes [−][src]
#[no_mangle]pub unsafe extern "C" fn private_key_get_bytes(
pk: *mut TariPrivateKey,
error_out: *mut c_int
) -> *mut ByteVector
Gets a ByteVector from a TariPrivateKey
Arguments
pk
- The pointer to a TariPrivateKey
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 ByteVectror
- Returns a pointer to a ByteVector. Note that it returns ptr::null_mut()
if pk is null
Safety
The byte_vector_destroy
must be called when finished with a ByteVector to prevent a memory leak