[][src]Trait bdk::keys::ExtScriptContext

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

    pub fn is_legacy() -> bool { ... }
pub fn is_segwit_v0() -> bool { ... } }

Trait that adds extra useful methods to ScriptContexts

Required methods

Loading content...

Provided methods

pub fn is_legacy() -> bool[src]

Returns whether the script context is Legacy

pub fn is_segwit_v0() -> bool[src]

Returns whether the script context is Segwitv0

Loading content...

Implementors

impl<Ctx: ScriptContext + 'static> ExtScriptContext for Ctx[src]

Loading content...