Function stackmate::generate_master[][src]

#[no_mangle]
pub unsafe extern "C" fn generate_master(
    network: *const c_char,
    length: *const c_char,
    passphrase: *const c_char
) -> *mut c_char
Expand description

Generates a mnemonic phrase of a given length. Defaults to 24 words. A master xprv is created from the mnemonic and passphrase.

Safety

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