Type Alias iota_types::transaction::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
impl Transaction
pub fn from_data_and_signer( data: TransactionData, signers: Vec<&dyn Signer<Signature>>, ) -> Self
pub fn from_data(data: TransactionData, signatures: Vec<Signature>) -> Self
pub fn signature_from_signer( data: TransactionData, intent: Intent, signer: &dyn Signer<Signature>, ) -> Signature
pub fn from_generic_sig_data( data: TransactionData, signatures: Vec<GenericSignature>, ) -> Self
sourcepub fn to_tx_bytes_and_signatures(&self) -> (Base64, Vec<Base64>)
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].