verify_signature

Function verify_signature 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn verify_signature( signature: *const c_char, message: *const c_char, pubkey: *const c_char, ) -> *mut c_char
Expand description

Signs a message using schnorr signature scheme Private key extracted from extended private key.

ยงSafety

  • This function is unsafe because it dereferences and a returns raw pointer.
  • ENSURE that result is passed into cstring_free(ptr: *mut c_char) after use.