Function stackmate::get_address[][src]

#[no_mangle]
pub unsafe extern "C" fn get_address(
    deposit_desc: *const c_char,
    node_address: *const c_char,
    index: *const c_char
) -> *mut c_char
Expand description

Gets a new address for a descriptor wallet at a given index. Client must keep track of address indexes and ensure prevention of address reuse.

Safety

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