pub enum TransactionEnvelope {
EnvelopeTypeTxV0(TransactionV0Envelope),
EnvelopeTypeTx(TransactionV1Envelope),
EnvelopeTypeTxFeeBump(FeeBumpTransactionEnvelope),
Default(EnvelopeType),
}Expand description
Autogenerated definition for type TransactionEnvelope
Variants§
EnvelopeTypeTxV0(TransactionV0Envelope)
EnvelopeTypeTx(TransactionV1Envelope)
EnvelopeTypeTxFeeBump(FeeBumpTransactionEnvelope)
Default(EnvelopeType)
Implementations§
Source§impl TransactionEnvelope
impl TransactionEnvelope
Sourcepub fn create_base64_signature(
&self,
network: &Network,
keypair: &SecretKey,
) -> Vec<u8> ⓘ
pub fn create_base64_signature( &self, network: &Network, keypair: &SecretKey, ) -> Vec<u8> ⓘ
Generate a base64 encoded signature
Generate a signature for the transaction_envelope. Generate the signature
for a network having the passphrase contained in network. The secret key for
signing the envelope is provided by keypair.
The signature is not appended to the transaction envelope.
Sourcepub fn sign(
&mut self,
network: &Network,
keypairs: Vec<&SecretKey>,
) -> Result<(), StellarSdkError>
pub fn sign( &mut self, network: &Network, keypairs: Vec<&SecretKey>, ) -> Result<(), StellarSdkError>
Generate and add signatures to a transaction envelope
Generate and add signatures to the transaction_envelope. The signature
is generated for a network having the passphrase contained in network. Generate and add
one signature for each keypair in keypairs.
Sourcepub fn add_base64_signature<T: AsRef<[u8]>>(
&mut self,
network: &Network,
base64_signature: T,
public_key: &PublicKey,
) -> Result<(), StellarSdkError>
pub fn add_base64_signature<T: AsRef<[u8]>>( &mut self, network: &Network, base64_signature: T, public_key: &PublicKey, ) -> Result<(), StellarSdkError>
Add a base64 encoded signature to a transaction envelope
Add a previously generated base64 encoded signature to the transaction_envelope.
This function verifies whether the signature is valid given the passphrase contained in network
and the public_key.
pub fn get_hash(&self, network: &Network) -> [u8; 32]
Trait Implementations§
Source§impl Clone for TransactionEnvelope
impl Clone for TransactionEnvelope
Source§fn clone(&self) -> TransactionEnvelope
fn clone(&self) -> TransactionEnvelope
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransactionEnvelope
impl Debug for TransactionEnvelope
Source§impl PartialEq for TransactionEnvelope
impl PartialEq for TransactionEnvelope
Source§impl XdrCodec for TransactionEnvelope
impl XdrCodec for TransactionEnvelope
Source§fn to_xdr_buffered(&self, write_stream: &mut WriteStream)
fn to_xdr_buffered(&self, write_stream: &mut WriteStream)
Source§fn from_xdr_buffered<T: AsRef<[u8]>>(
read_stream: &mut ReadStream<T>,
) -> Result<Self, DecodeError>
fn from_xdr_buffered<T: AsRef<[u8]>>( read_stream: &mut ReadStream<T>, ) -> Result<Self, DecodeError>
impl Eq for TransactionEnvelope
impl StructuralPartialEq for TransactionEnvelope
Auto Trait Implementations§
impl Freeze for TransactionEnvelope
impl RefUnwindSafe for TransactionEnvelope
impl Send for TransactionEnvelope
impl Sync for TransactionEnvelope
impl Unpin for TransactionEnvelope
impl UnwindSafe for TransactionEnvelope
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
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.