Function tari_wallet_ffi::emoji_id_to_public_key [−][src]
#[no_mangle]pub unsafe extern "C" fn emoji_id_to_public_key(
emoji: *const c_char,
error_out: *mut c_int
) -> *mut TariPublicKey
Creates a TariPublicKey from a char array in emoji format
Arguments
const *c_char
- The pointer to a TariPublicKey
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 a pointer to a TariPublicKey. Note that it returns null on error.
Safety
The public_key_destroy
method must be called when finished with a TariPublicKey to prevent a memory leak