Function tari_wallet_ffi::wallet_sign_message[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_sign_message(
    wallet: *mut TariWallet,
    msg: *const c_char,
    error_out: *mut c_int
) -> *mut c_char

Signs a message using the public key of the TariWallet

Arguments

wallet - The TariWallet pointer. msg - The message 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 c_char - Returns the pointer to the hexadecimal representation of the signature and public nonce, seperated by a pipe character. Empty if an error occured.

Safety

The string_destroy method must be called when finished with a string coming from rust to prevent a memory leak