#[repr(C)]pub struct SignedTransaction {
pub tx: Transaction,
pub signatures: VecM<DecoratedSignature>,
pub pubkey_claim_key: Option<PublicKey>,
}Expand description
A transaction with cryptographic signatures.
This is the form in which transactions are transmitted and stored. Before execution, the signatures are verified against the auth claim.
Each signature is over
cxs(DomainSeparator("Transaction")) || network_hash || xdr(tx): the
domain separator keeps it from being reinterpreted as a signature over
another object, and the network hash binds it to one network.
Fields§
§tx: TransactionThe transaction to execute.
signatures: VecM<DecoratedSignature>Signatures that authorize this transaction.
These signatures must satisfy the auth_claim in the transaction.
See SignedTransaction for the message they sign.
pubkey_claim_key: Option<PublicKey>The public key a kPubkeySignature auth claim names by hash.
Present exactly when the auth claim is kPubkeySignature, and then its
PublicKeyHash must equal the claim’s pubkey_preimage.pubkey_hash.
It sits outside the signed Transaction because the claim already
commits to it by hash; keeping it out of the claim keeps the claim that
contracts read the same size for every scheme.
Trait Implementations§
Source§impl Clone for SignedTransaction
impl Clone for SignedTransaction
Source§fn clone(&self) -> SignedTransaction
fn clone(&self) -> SignedTransaction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConstMaxSize for SignedTransaction
impl ConstMaxSize for SignedTransaction
Source§impl ConstMaxSize for SignedTransaction
impl ConstMaxSize for SignedTransaction
Source§impl Debug for SignedTransaction
impl Debug for SignedTransaction
impl EncodesAs<SignedTransaction> for SignedTransaction
impl Eq for SignedTransaction
Source§impl Hash for SignedTransaction
impl Hash for SignedTransaction
Source§impl JsonSchema for SignedTransaction
impl JsonSchema for SignedTransaction
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for SignedTransaction
impl Ord for SignedTransaction
Source§fn cmp(&self, other: &SignedTransaction) -> Ordering
fn cmp(&self, other: &SignedTransaction) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SignedTransaction
impl PartialEq for SignedTransaction
Source§impl PartialOrd for SignedTransaction
impl PartialOrd for SignedTransaction
Source§impl<'_r> ReadXDR<'_r> for SignedTransaction
impl<'_r> ReadXDR<'_r> for SignedTransaction
Source§fn read_xdr<R>(r: &mut R) -> Result<SignedTransaction, ReadError>where
R: Reader<'_r>,
fn read_xdr<R>(r: &mut R) -> Result<SignedTransaction, ReadError>where
R: Reader<'_r>,
Source§fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, SignedTransaction>,
) -> Result<Init<'__xdrs_s, SignedTransaction>, ReadError>where
R: Reader<'_r>,
fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, SignedTransaction>,
) -> Result<Init<'__xdrs_s, SignedTransaction>, ReadError>where
R: Reader<'_r>,
slot, without first building it
on the stack. Read more