Function tari_wallet_ffi::private_key_generate[][src]

#[no_mangle]pub unsafe extern "C" fn private_key_generate() -> *mut TariPrivateKey

Generates a TariPrivateKey

Arguments

() - Does not take any arguments

Returns

*mut TariPrivateKey - Returns a pointer to a TariPrivateKey

Safety

The private_key_destroy method must be called when finished with a TariPrivateKey to prevent a memory leak.