Function tari_wallet_ffi::wallet_set_key_value[][src]

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

Set a Key Value in the Wallet storage used for Client Key Value store

Arguments

wallet - The TariWallet pointer. key - The pointer to a Utf8 string representing the Key value - The pointer to a Utf8 string representing the Value ot be stored 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

bool - Return a boolean value indicating the operation's success or failure. The error_ptr will hold the error code if there was a failure

Safety

None