Function tari_wallet_ffi::wallet_verify_message_signature [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_verify_message_signature(
wallet: *mut TariWallet,
public_key: *mut TariPublicKey,
hex_sig_nonce: *const c_char,
msg: *const c_char,
error_out: *mut c_int
) -> bool
Verifies the signature of the message signed by a TariWallet
Arguments
wallet
- The TariWallet pointer.
public_key
- The pointer to the TariPublicKey of the wallet which originally signed the message
hex_sig_nonce
- The pointer to the sting containing the hexadecimal representation of the
signature and public nonce seperated by a pipe character.
msg
- The pointer to the msg the signature will be checked against.
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
- Returns if the signature is valid or not, will be false if an error occurs.
Safety
None