[][src]Struct libra_json_rpc_client::SignedTransaction

pub struct SignedTransaction { /* fields omitted */ }

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

impl SignedTransaction[src]

pub fn new(
    raw_txn: RawTransaction,
    public_key: Ed25519PublicKey,
    signature: Ed25519Signature
) -> SignedTransaction
[src]

pub fn new_multisig(
    raw_txn: RawTransaction,
    public_key: MultiEd25519PublicKey,
    signature: MultiEd25519Signature
) -> SignedTransaction
[src]

pub fn authenticator(&self) -> TransactionAuthenticator[src]

pub fn sender(&self) -> AccountAddress[src]

pub fn into_raw_transaction(self) -> RawTransaction[src]

pub fn sequence_number(&self) -> u64[src]

pub fn chain_id(&self) -> ChainId[src]

pub fn payload(&self) -> &TransactionPayload[src]

pub fn max_gas_amount(&self) -> u64[src]

pub fn gas_unit_price(&self) -> u64[src]

pub fn gas_currency_code(&self) -> &str[src]

pub fn expiration_timestamp_secs(&self) -> u64[src]

pub fn raw_txn_bytes_len(&self) -> usize[src]

pub fn check_signature(self) -> Result<SignatureCheckedTransaction, Error>[src]

Checks that the signature of given transaction. Returns Ok(SignatureCheckedTransaction) if the signature is valid.

pub fn format_for_client(
    &self,
    get_transaction_name: impl Fn(&[u8]) -> String
) -> String
[src]

Trait Implementations

impl Arbitrary for SignedTransaction[src]

This Arbitrary impl only generates valid signed transactions. TODO: maybe add invalid ones?

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>

The type of [Strategy] used to generate values of type Self. Read more

impl Clone for SignedTransaction[src]

impl Debug for SignedTransaction[src]

impl<'de> Deserialize<'de> for SignedTransaction[src]

impl Eq for SignedTransaction[src]

impl Hash for SignedTransaction[src]

impl PartialEq<SignedTransaction> for SignedTransaction[src]

impl Serialize for SignedTransaction[src]

impl StructuralEq for SignedTransaction[src]

impl StructuralPartialEq for SignedTransaction[src]

impl TryFrom<Transaction> for SignedTransaction[src]

type Error = Error

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,