#[unsafe(no_mangle)]pub unsafe extern "C" fn check_xpub(
xpub: *const c_char,
) -> *mut c_charExpand description
Checks if an extended public key is valid. Do not use the key source while checking an xpub i.e. remove [fingerprint/derivation/path/values] and only provide the xpub/tpub.
- OUTPUT
"true" | "false"ยง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.