pub struct Bundle { /* private fields */ }
Expand description
PCZT fields that are specific to producing the transaction’s transparent bundle (if any).
This struct is for representing Sapling in a partially-created transaction. If you
have a fully-created transaction, use the regular Bundle
struct.
Implementations§
Source§impl Bundle
impl Bundle
Sourcepub fn update_with<F>(&mut self, f: F) -> Result<(), UpdaterError>
pub fn update_with<F>(&mut self, f: F) -> Result<(), UpdaterError>
Updates the bundle with information provided in the given closure.
Source§impl Bundle
impl Bundle
Sourcepub fn finalize_spends(&mut self) -> Result<(), SpendFinalizerError>
pub fn finalize_spends(&mut self) -> Result<(), SpendFinalizerError>
Finalizes the spends for this bundle.
Source§impl Bundle
impl Bundle
Sourcepub fn extract_effects(
&self,
) -> Result<Option<Bundle<EffectsOnly>>, TxExtractorError>
pub fn extract_effects( &self, ) -> Result<Option<Bundle<EffectsOnly>>, TxExtractorError>
Extracts the effects of this PCZT bundle as a regular Bundle
.
This is used by the Signer role to produce the transaction sighash.
Sourcepub fn extract(self) -> Result<Option<Bundle<Unbound>>, TxExtractorError>
pub fn extract(self) -> Result<Option<Bundle<Unbound>>, TxExtractorError>
Extracts a fully authorized regular Bundle
from this PCZT bundle.
This is used by the Transaction Extractor role to produce the final transaction.
Source§impl Bundle
impl Bundle
Source§impl Bundle
impl Bundle
Sourcepub fn inputs_mut(&mut self) -> &mut [Input]
pub fn inputs_mut(&mut self) -> &mut [Input]
Returns a mutable reference to the inputs in this bundle.
This is used by Signers to apply signatures with Input::sign
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bundle
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnwindSafe for Bundle
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