Enum miniscript::miniscript::Legacy
source · [−]pub enum Legacy {}
Expand description
Legacy ScriptContext
Trait Implementations
sourceimpl Ord for Legacy
impl Ord for Legacy
sourceimpl PartialOrd<Legacy> for Legacy
impl PartialOrd<Legacy> for Legacy
sourcefn partial_cmp(&self, other: &Legacy) -> Option<Ordering>
fn partial_cmp(&self, other: &Legacy) -> 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 Legacy
impl ScriptContext for Legacy
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 Legacy
impl StructuralEq for Legacy
impl StructuralPartialEq for Legacy
Auto Trait Implementations
impl RefUnwindSafe for Legacy
impl Send for Legacy
impl Sync for Legacy
impl Unpin for Legacy
impl UnwindSafe for Legacy
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