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
remove all sanity_check and ext_check methods from the library
Well, there are sanity checks in the type system (which are private and
make sense) and a sanity_check method in the PSBT module that I didn't
look at. But the rest are gone now.
These should really never have existed. At this point in this commit
series we are pretty close to a point where they serve no purpose at
all; miniscripts constructed with from_ast, from_str and decode are
all sanity-checked at construction with the same set of checks.
We haven't yet attempted to apply these validation parameters to either
of the policy types, or gone through all the non-miniscript descriptor
types, but we'll get there. The next series of PRs are going to overhaul
all the error types in the library based on this validation framework.
I considered deprecating these but we are also deleting the AnalysisError
error that it returns. We could reintroduce them with a return type like
Result<(), Infallible>, which in a decent language would be non-breaking,
but Rust is indecent and this wouldn't really help callers.
Also deletes AnalysisError, ExtParams, and the Analysis variant of the
top-level Error enum!
Copy file name to clipboardExpand all lines: examples/psbt_sign_finalize.rs
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ fn main() {
20
20
let s = "wsh(t:or_c(pk(027a3565454fe1b749bccaef22aff72843a9c3efefd7b16ac54537a0c23f0ec0de),v:thresh(1,pkh(032d672a1a91cc39d154d366cd231983661b0785c7f27bc338447565844f4a6813),a:pkh(03417129311ed34c242c012cd0a3e0b9bca0065f742d0dfb63c78083ea6a02d4d9),a:pkh(025a687659658baeabdfc415164528065be7bcaade19342241941e556557f01e28))))#7hut9ukn";
21
21
let bridge_descriptor = Descriptor::from_str(s).unwrap();
0 commit comments