Trait bdk::keys::ExtScriptContext
source · 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 ScriptContext
s
Required Methods
sourcefn as_enum() -> ScriptContextEnum
fn as_enum() -> ScriptContextEnum
Returns the ScriptContext
as a ScriptContextEnum
Provided Methods
sourcefn is_segwit_v0() -> bool
fn is_segwit_v0() -> bool
Returns whether the script context is Segwitv0
sourcefn is_taproot() -> bool
fn is_taproot() -> bool
Returns whether the script context is Tap
, aka Taproot or Segwit V1