pub enum NativeScriptWitnessInfo {
Count(usize),
Vkeys(Vec<Ed25519KeyHash>),
AssumeWorst,
}Variants§
Implementations§
source§impl NativeScriptWitnessInfo
impl NativeScriptWitnessInfo
sourcepub fn num_signatures(num: usize) -> Self
pub fn num_signatures(num: usize) -> Self
Unsure which keys will sign, but you know the exact number to save on tx fee
sourcepub fn vkeys(vkeys: Vec<Ed25519KeyHash>) -> Self
pub fn vkeys(vkeys: Vec<Ed25519KeyHash>) -> Self
This native script will be witnessed by exactly these keys
sourcepub fn assume_signature_count() -> Self
pub fn assume_signature_count() -> Self
You don’t know how many keys will sign, so the maximum possible case will be assumed
Trait Implementations§
source§impl Clone for NativeScriptWitnessInfo
impl Clone for NativeScriptWitnessInfo
source§fn clone(&self) -> NativeScriptWitnessInfo
fn clone(&self) -> NativeScriptWitnessInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NativeScriptWitnessInfo
impl RefUnwindSafe for NativeScriptWitnessInfo
impl Send for NativeScriptWitnessInfo
impl Sync for NativeScriptWitnessInfo
impl Unpin for NativeScriptWitnessInfo
impl UnwindSafe for NativeScriptWitnessInfo
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more