Enum miniscript::miniscript::Segwitv0
source · [−]pub enum Segwitv0 {}
Expand description
Segwitv0 ScriptContext
Trait Implementations
sourceimpl Ord for Segwitv0
impl Ord for Segwitv0
sourceimpl PartialOrd<Segwitv0> for Segwitv0
impl PartialOrd<Segwitv0> for Segwitv0
sourcefn partial_cmp(&self, other: &Segwitv0) -> Option<Ordering>
fn partial_cmp(&self, other: &Segwitv0) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl ScriptContext for Segwitv0
impl ScriptContext for Segwitv0
sourcefn check_frag_non_malleable<Pk: MiniscriptKey, Ctx: ScriptContext>(
_frag: &Terminal<Pk, Ctx>
) -> Result<(), ScriptContextError>
fn check_frag_non_malleable<Pk: MiniscriptKey, Ctx: ScriptContext>(
_frag: &Terminal<Pk, Ctx>
) -> Result<(), ScriptContextError>
Depending on ScriptContext, fragments can be malleable. For Example, under Legacy context, PkH is malleable because it is possible to estimate the cost of satisfaction because of compressed keys This is currently only used in compiler code for removing malleable compilations. This does NOT recursively check if the children of the fragment are valid or not. Since the compilation proceeds in a leaf to root fashion, a recursive check is unnecessary. Read more
sourcefn check_frag_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
frag: &Terminal<Pk, Ctx>
) -> Result<(), ScriptContextError>
fn check_frag_validity<Pk: MiniscriptKey, Ctx: ScriptContext>(
frag: &Terminal<Pk, Ctx>
) -> Result<(), ScriptContextError>
Depending on script Context, some of the Terminals might not be valid. For example, in Segwit Context with MiniscriptKey as bitcoin::PublicKey uncompressed public keys are non-standard and thus invalid. Post Tapscript upgrade, this would have to consider other nodes. This does not recursively check Read more
impl Eq for Segwitv0
impl StructuralEq for Segwitv0
impl StructuralPartialEq for Segwitv0
Auto Trait Implementations
impl RefUnwindSafe for Segwitv0
impl Send for Segwitv0
impl Sync for Segwitv0
impl Unpin for Segwitv0
impl UnwindSafe for Segwitv0
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more