Struct diem_types::transaction::SignedTransaction [−][src]
pub struct SignedTransaction { /* fields omitted */ }
Expand description
A transaction that has been signed.
A SignedTransaction
is a single transaction that can be atomically executed. Clients submit
these to validator nodes, and the validator and executor submits these to the VM.
IMPORTANT: The signature of a SignedTransaction
is not guaranteed to be verified. For a
transaction whose signature is statically guaranteed to be verified, see
SignatureCheckedTransaction
.
Implementations
pub fn new(
raw_txn: RawTransaction,
public_key: Ed25519PublicKey,
signature: Ed25519Signature
) -> SignedTransaction
pub fn new_multisig(
raw_txn: RawTransaction,
public_key: MultiEd25519PublicKey,
signature: MultiEd25519Signature
) -> SignedTransaction
pub fn new_multi_agent(
raw_txn: RawTransaction,
sender: AccountAuthenticator,
secondary_signer_addresses: Vec<AccountAddress>,
secondary_signers: Vec<AccountAuthenticator>
) -> Self
Checks that the signature of given transaction. Returns Ok(SignatureCheckedTransaction)
if
the signature is valid.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SignedTransaction
impl Send for SignedTransaction
impl Sync for SignedTransaction
impl Unpin for SignedTransaction
impl UnwindSafe for SignedTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.