Struct shuttle_sdk::SignedTransaction
[−]
[src]
pub struct SignedTransaction { /* fields omitted */ }
A transaction that was signed.
Methods
impl SignedTransaction
[src]
fn new(
transaction: Transaction,
network: &Network
) -> Result<SignedTransaction, Error>
[src]
transaction: Transaction,
network: &Network
) -> Result<SignedTransaction, Error>
Create a new signed transaction on the network
.
fn new_without_network(
transaction: Transaction,
signatures: Vec<DecoratedSignature>
) -> SignedTransaction
[src]
transaction: Transaction,
signatures: Vec<DecoratedSignature>
) -> SignedTransaction
Create a new transaction without the network information attached.
fn sign(&mut self, keypair: &KeyPair) -> Result<(), Error>
[src]
Add one more signature to the transaction.
fn hash(&self) -> Result<Vec<u8>, Error>
[src]
Return the transaction hash, suitable for signing.
fn signature_base(&self) -> Result<Vec<u8>, Error>
[src]
Return the signature base of the transaction, which is the value that, when hashed, should be signed.
fn transaction(&self) -> &Transaction
[src]
Return the transaction.
fn signatures(&self) -> &Vec<DecoratedSignature>
[src]
Return the signatures.
Trait Implementations
impl Clone for SignedTransaction
[src]
fn clone(&self) -> SignedTransaction
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ToXdr<TransactionEnvelope> for SignedTransaction
[src]
fn to_xdr(&self) -> Result<TransactionEnvelope, Error>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W>(&self, w: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
Serialize to the writer w
.
fn to_base64(&self) -> Result<String, Error>
[src]
Serialize to base64.
impl Debug for SignedTransaction
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.