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
key.rs: remove a bunch of unwrap()s which are impossible
Now that we are consistent about the rules that a DerivedDescriptor must
obey, we no longer return a Result from derived_key(), which in turn
eliminates a bunch of other unwraps.
/// let secp = secp256k1::Secp256k1::verification_only();
949
949
/// let descriptor = Descriptor::<DescriptorPublicKey>::from_str("tr(xpub6BgBgsespWvERF3LHQu6CnqdvfEvtMcQjYrcRzx53QJjSxarj2afYWcLteoGVky7D3UKDP9QyrLprQ3VCECoY49yfdDEHGCtMMj92pReUsQ/0/*)")
950
950
/// .expect("Valid ranged descriptor");
951
-
/// let result = descriptor.at_derivation_index(0).unwrap().derived_descriptor(&secp).expect("Non-hardened derivation");
951
+
/// let result = descriptor.at_derivation_index(0).unwrap().derived_descriptor(&secp);
0 commit comments