Function derive_to_path

Source
#[no_mangle]
pub unsafe extern "C" fn derive_to_path(
    master_xprv: *const c_char,
    derivation_path: *const c_char,
) -> *mut c_char
Expand description

Derives child keys from a master xprv. Allows passing a custom derivation path string.

ยง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.