iota_types::transaction

Type Alias Transaction

Source
pub type Transaction = Envelope<SenderSignedData, EmptySignInfo>;
Expand description

A transaction that is signed by a sender but not yet by an authority.

Aliased Type§

struct Transaction { /* private fields */ }

Implementations§

Source§

impl Transaction

Source

pub fn from_data_and_signer( data: TransactionData, signers: Vec<&dyn Signer<Signature>>, ) -> Self

Source

pub fn from_data(data: TransactionData, signatures: Vec<Signature>) -> Self

Source

pub fn signature_from_signer( data: TransactionData, intent: Intent, signer: &dyn Signer<Signature>, ) -> Signature

Source

pub fn from_generic_sig_data( data: TransactionData, signatures: Vec<GenericSignature>, ) -> Self

Source

pub fn to_tx_bytes_and_signatures(&self) -> (Base64, Vec<Base64>)

Returns the Base64 encoded tx_bytes and a list of Base64 encoded [enum GenericSignature].

Source§

impl Transaction

Source

pub fn verify_signature_for_testing( &self, current_epoch: EpochId, verify_params: &VerifyParams, ) -> IotaResult

Source

pub fn try_into_verified_for_testing( self, current_epoch: EpochId, verify_params: &VerifyParams, ) -> IotaResult<VerifiedTransaction>

Trait Implementations§

Source§

impl TryFrom<SignedTransaction> for Transaction

Source§

type Error = SdkTypeConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: SignedTransaction) -> Result<Self, Self::Error>

Performs the conversion.