pub trait ExtScriptContext: ScriptContext {
    fn as_enum() -> ScriptContextEnum;

    fn is_legacy() -> bool { ... }
    fn is_segwit_v0() -> bool { ... }
    fn is_taproot() -> bool { ... }
}
Expand description

Trait that adds extra useful methods to ScriptContexts

Required Methods§

Provided Methods§

Returns whether the script context is Legacy

Returns whether the script context is Segwitv0

Returns whether the script context is Tap, aka Taproot or Segwit V1

Implementors§