pub fn infer_taproot_tree(
    spenddata: &TaprootSpendData,
    output: &XOnlyPubKey
) -> Option<Vec<(i32, Script, i32)>>
Expand description

| Given a TaprootSpendData and the output | key, reconstruct its script tree. | | If the output doesn’t match the spenddata, | or if the data in spenddata is incomplete, | std::nullopt is returned. Otherwise, | a vector of (depth, script, leaf_ver) | tuples is returned, corresponding | to a depth-first traversal of the script | tree. |