The parameter for `secp` should go first, `idx` should go second. See: https://github.com/rust-bitcoin/rust-miniscript/blob/6a89bd0d1aa2a4b2e78d624276471727bf61b753/src/descriptor/mod.rs#L591 Update the `xpub_descriptors.rs` example to use this API instead of `derive`