pub struct SignedTransaction { /* private fields */ }
Expand description
A transaction that was signed.
Implementations§
Source§impl SignedTransaction
impl SignedTransaction
Sourcepub fn new(
transaction: Transaction,
network: &Network,
) -> Result<SignedTransaction>
pub fn new( transaction: Transaction, network: &Network, ) -> Result<SignedTransaction>
Create a new signed transaction on the network
.
Sourcepub fn new_without_network(
transaction: Transaction,
signatures: Vec<DecoratedSignature>,
) -> SignedTransaction
pub fn new_without_network( transaction: Transaction, signatures: Vec<DecoratedSignature>, ) -> SignedTransaction
Create a new transaction without the network information attached.
Sourcepub fn sign(&mut self, keypair: &KeyPair) -> Result<()>
pub fn sign(&mut self, keypair: &KeyPair) -> Result<()>
Add one more signature to the transaction.
Sourcepub fn signature_base(&self) -> Result<Vec<u8>>
pub fn signature_base(&self) -> Result<Vec<u8>>
Return the signature base of the transaction, which is the value that, when hashed, should be signed.
Sourcepub fn transaction(&self) -> &Transaction
pub fn transaction(&self) -> &Transaction
Return the transaction.
Sourcepub fn signatures(&self) -> &Vec<DecoratedSignature>
pub fn signatures(&self) -> &Vec<DecoratedSignature>
Return the signatures.
Trait Implementations§
Source§impl Clone for SignedTransaction
impl Clone for SignedTransaction
Source§fn clone(&self) -> SignedTransaction
fn clone(&self) -> SignedTransaction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SignedTransaction
impl RefUnwindSafe for SignedTransaction
impl Send for SignedTransaction
impl Sync for SignedTransaction
impl Unpin for SignedTransaction
impl UnwindSafe for SignedTransaction
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