Struct diem_client::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, Global>,
secondary_signers: Vec<AccountAuthenticator, Global>
) -> SignedTransaction
pub fn new_with_authenticator(
raw_txn: RawTransaction,
authenticator: TransactionAuthenticator
) -> SignedTransaction
Checks that the signature of given transaction. Returns Ok(SignatureCheckedTransaction) if
the signature is valid.
Returns the hash when the transaction is commited onchain.
Trait Implementations
This Arbitrary impl only generates valid signed transactions. TODO: maybe add invalid ones?
type Parameters = ()
type Parameters = ()
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
type Strategy = BoxedStrategy<SignedTransaction>
type Strategy = BoxedStrategy<SignedTransaction>
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SignedTransaction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SignedTransaction, <__D as Deserializer<'de>>::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 !=.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Performs the conversion.
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
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.