You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #911: Return error from at_derivation_index when descriptor has no wildcard
1062144 feat(descriptor): deprecate at_derivation_index, add derive_at_index and TryFrom (Yeji Han)
Pull request description:
Closes#829.
- Previously, calling `at_derivation_index()` on a descriptor without wildcards would silently ignore the index and return the descriptor unchanged. This was error-prone because callers would expect different indices to produce different addresses.
- Callers that need to convert a non-wildcard descriptor to a definite one should use `DefiniteDescriptorKey::new()` on individual keys, or check `has_wildcard()` before calling `at_derivation_index()`.
- Add edge case tests for `at_derivation_index` wildcard check
ACKs for top commit:
apoelstra:
ACK 1062144; successfully ran local tests
Tree-SHA512: 820b8bc543b6884997839374aba3de0d78511c603763650816fe676936795b345e0bec96e19c6a334261b0b0eb252f9f7ae72dee9537830b69d21c485181a0fb
0 commit comments