Function stackmate::compile [−][src]
#[no_mangle]
pub unsafe extern "C" fn compile(
policy: *const c_char,
script_type: *const c_char
) -> *mut c_charExpand description
Compiles a policy into a descriptor of the specified script type. Use wpkh for a single signature segwit native wallet (default). Use wsh for a scripted segwit native wallet.
Safety
- This function is unsafe because it dereferences and returns raw pointer.
- Ensure that result is passed into cstring_free after use.