pub struct FixedTxWitnessesSet { /* private fields */ }
Expand description
A set of witnesses for a transaction. Keeps original bytes to allow for safe roundtrip serialization. That helps to avoid incorrect script data hash after adding a vkey or bootstrap witness. You can add a vkey witness or a bootstrap witness to the set. Or get TransactionWitnessSet to read fields.
Implementations§
Source§impl FixedTxWitnessesSet
impl FixedTxWitnessesSet
pub fn tx_witnesses_set(&self) -> TransactionWitnessSet
pub fn add_vkey_witness(&mut self, vkey_witness: &Vkeywitness)
pub fn add_bootstrap_witness(&mut self, bootstrap_witness: &BootstrapWitness)
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes( data: Vec<u8>, ) -> Result<FixedTxWitnessesSet, DeserializeError>
Trait Implementations§
Source§impl Clone for FixedTxWitnessesSet
impl Clone for FixedTxWitnessesSet
Source§fn clone(&self) -> FixedTxWitnessesSet
fn clone(&self) -> FixedTxWitnessesSet
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 moreSource§impl Debug for FixedTxWitnessesSet
impl Debug for FixedTxWitnessesSet
Source§impl PartialEq for FixedTxWitnessesSet
impl PartialEq for FixedTxWitnessesSet
Source§impl Serialize for FixedTxWitnessesSet
impl Serialize for FixedTxWitnessesSet
fn serialize<'a, W: Write + Sized>( &self, serializer: &'a mut Serializer<W>, ) -> Result<&'a mut Serializer<W>>
impl Eq for FixedTxWitnessesSet
impl StructuralPartialEq for FixedTxWitnessesSet
Auto Trait Implementations§
impl Freeze for FixedTxWitnessesSet
impl RefUnwindSafe for FixedTxWitnessesSet
impl !Send for FixedTxWitnessesSet
impl !Sync for FixedTxWitnessesSet
impl Unpin for FixedTxWitnessesSet
impl UnwindSafe for FixedTxWitnessesSet
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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