pub enum ParseScriptContext {
TOP,
P2SH,
P2WPKH,
P2WSH,
P2TR,
}
Variants§
TOP
| Top-level context (script goes directly | in scriptPubKey) |
P2SH
| Inside sh() (script becomes P2SH redeemScript) |
P2WPKH
| Inside wpkh() (no script, pubkey only) |
P2WSH
| Inside wsh() (script becomes v0 witness | script) |
P2TR
| Inside tr() (either internal key, or | BIP342 script leaf) |
Auto Trait Implementations§
impl RefUnwindSafe for ParseScriptContext
impl Send for ParseScriptContext
impl Sync for ParseScriptContext
impl Unpin for ParseScriptContext
impl UnwindSafe for ParseScriptContext
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more