Struct shuttle_core::SignedTransaction
[−]
[src]
pub struct SignedTransaction { /* fields omitted */ }
A transaction that was signed.
Methods
impl SignedTransaction
[src]
fn new(transaction: Transaction, network: &Network) -> Result<SignedTransaction>
[src]
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<()>
[src]
Add one more signature to the transaction.
fn hash(&self) -> Result<Vec<u8>>
[src]
Return the transaction hash, suitable for signing.
fn signature_base(&self) -> Result<Vec<u8>>
[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 Debug for SignedTransaction
[src]
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>
[src]
Build the object that can be serialized to XDR.
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
[src]
Serialize to the writer w
.
fn to_base64(&self) -> Result<String>
[src]
Serialize to base64.
impl<'de> FromXdr<'de, TransactionEnvelope> for SignedTransaction
[src]
fn from_xdr(envelope: TransactionEnvelope) -> Result<SignedTransaction>
[src]
Build the type from the XDR other
object .
fn from_reader<R: Read>(r: &mut R) -> Result<Self>
[src]
Deserialize from a reader r
.
fn from_base64(input: &str) -> Result<Self>
[src]
Deserialize from base64.