Function tari_wallet_ffi::completed_transaction_get_public_nonce[][src]

#[no_mangle]pub unsafe extern "C" fn completed_transaction_get_public_nonce(
    transaction: *mut TariCompletedTransaction,
    error_out: *mut c_int
) -> *mut TariExcessPublicNonce

Gets the TariExcessPublicNonce of a TariCompletedTransaction

Arguments

transaction - The pointer to a TariCompletedTransaction 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 TariExcessPublicNonce - Returns the transaction excess public nonce, note that it will be ptr::null_mut() if transaction is null, if the transaction status is Pending, or if the number of kernels is not exactly one.

Safety

The nonce_destroy method must be called when finished with a TariExcessPublicNonce to prevent a memory leak