pub enum LockPosition {
Before,
After,
}Expand description
Lock position for PushDrop template.
Determines whether the public key and OP_CHECKSIG come before or after the data fields in the locking script.
Variants§
Before
Pubkey and OP_CHECKSIG come before data fields (default).
Script: <pubkey> OP_CHECKSIG <fields...> OP_2DROP... OP_DROP
After
Pubkey and OP_CHECKSIG come after data fields.
Script: <fields...> OP_2DROP... OP_DROP <pubkey> OP_CHECKSIG
Trait Implementations§
Source§impl Clone for LockPosition
impl Clone for LockPosition
Source§fn clone(&self) -> LockPosition
fn clone(&self) -> LockPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LockPosition
Source§impl Debug for LockPosition
impl Debug for LockPosition
Source§impl Default for LockPosition
impl Default for LockPosition
Source§fn default() -> LockPosition
fn default() -> LockPosition
Returns the “default value” for a type. Read more
impl Eq for LockPosition
Source§impl PartialEq for LockPosition
impl PartialEq for LockPosition
impl StructuralPartialEq for LockPosition
Auto Trait Implementations§
impl Freeze for LockPosition
impl RefUnwindSafe for LockPosition
impl Send for LockPosition
impl Sync for LockPosition
impl Unpin for LockPosition
impl UnsafeUnpin for LockPosition
impl UnwindSafe for LockPosition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more