Function stackmate::check_xpub[][src]

#[no_mangle]
pub unsafe extern "C" fn check_xpub(
    xpub: *const c_char
) -> *mut c_char
Expand 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.

Safety

  • This function is unsafe because it dereferences and returns raw pointer.
  • Ensure that result is passed into cstring_free after use.