-
The Would adding this method to /// Returns true if this desciptor represents scripts from _before_ Taproot was enabled.
pub fn is_pre_taproot(&self) -> bool {
use Descriptor::*;
match self {
Bare(_) | Pkh(_) | Wpkh(_) | Sh(_) | Wsh(_) => true,
Tr(_) => false,
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
apoelstra
May 3, 2022
Replies: 1 comment 1 reply
-
@tcharding there are several different methods in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tcharding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tcharding there are several different methods in
PreTaprootDescriptor
vsDescriptor
. In particular things that did not return a ``Result` pre-Taproot now do.