Function tari_wallet_ffi::public_key_from_private_key [−][src]
#[no_mangle]pub unsafe extern "C" fn public_key_from_private_key(
secret_key: *mut TariPrivateKey,
error_out: *mut c_int
) -> *mut TariPublicKey
Creates a TariPublicKey from a TariPrivateKey
Arguments
secret_key
- 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 TariPublicKey
- Returns a pointer to a TariPublicKey
Safety
The private_key_destroy
method must be called when finished with a private key to prevent a memory leak