Struct ethcore_transaction::SignedTransaction [−][src]
pub struct SignedTransaction { /* fields omitted */ }A UnverifiedTransaction with successfully recovered sender.
Methods
impl SignedTransaction[src] 
impl SignedTransactionpub fn new(transaction: UnverifiedTransaction) -> Result<Self, Error>[src] 
pub fn new(transaction: UnverifiedTransaction) -> Result<Self, Error>Try to verify transaction and recover sender.
pub fn sender(&self) -> Address[src] 
pub fn sender(&self) -> AddressReturns transaction sender.
pub fn public_key(&self) -> Option<Public>[src] 
pub fn public_key(&self) -> Option<Public>Returns a public key of the sender.
pub fn is_unsigned(&self) -> bool[src] 
pub fn is_unsigned(&self) -> boolChecks is signature is empty.
pub fn deconstruct(self) -> (UnverifiedTransaction, Address, Option<Public>)[src] 
pub fn deconstruct(self) -> (UnverifiedTransaction, Address, Option<Public>)Deconstructs this transaction back into UnverifiedTransaction
Methods from Deref<Target = UnverifiedTransaction>
pub fn is_unsigned(&self) -> bool[src] 
pub fn is_unsigned(&self) -> boolChecks is signature is empty.
pub fn as_unsigned(&self) -> &Transaction[src] 
pub fn as_unsigned(&self) -> &TransactionReference to unsigned part of this transaction.
pub fn standard_v(&self) -> u8[src] 
pub fn standard_v(&self) -> u8pub fn original_v(&self) -> u64[src] 
pub fn original_v(&self) -> u64The v value that appears in the RLP.
pub fn chain_id(&self) -> Option<u64>[src] 
pub fn chain_id(&self) -> Option<u64>The chain ID, or None if this is a global transaction.
pub fn signature(&self) -> Signature[src] 
pub fn signature(&self) -> SignatureConstruct a signature object from the sig.
pub fn check_low_s(&self) -> Result<(), Error>[src] 
pub fn check_low_s(&self) -> Result<(), Error>Checks whether the signature has a low 's' value.
pub fn hash(&self) -> H256[src] 
pub fn hash(&self) -> H256Get the hash of this transaction (keccak of the RLP).
pub fn recover_public(&self) -> Result<Public, Error>[src] 
pub fn recover_public(&self) -> Result<Public, Error>Recovers the public key of the sender.
pub fn verify_basic(
    &self, 
    check_low_s: bool, 
    chain_id: Option<u64>, 
    allow_empty_signature: bool
) -> Result<(), Error>[src] 
pub fn verify_basic(
    &self, 
    check_low_s: bool, 
    chain_id: Option<u64>, 
    allow_empty_signature: bool
) -> Result<(), Error>Verify basic signature params. Does not attempt sender recovery.
Trait Implementations
impl From<Transaction> for SignedTransaction[src] 
impl From<Transaction> for SignedTransactionfn from(t: Transaction) -> Self[src] 
fn from(t: Transaction) -> SelfPerforms the conversion.
impl Debug for SignedTransaction[src] 
impl Debug for SignedTransactionfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for SignedTransaction[src] 
impl Clone for SignedTransactionfn clone(&self) -> SignedTransaction[src] 
fn clone(&self) -> SignedTransactionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for SignedTransaction[src] 
impl Eq for SignedTransactionimpl PartialEq for SignedTransaction[src] 
impl PartialEq for SignedTransactionfn eq(&self, other: &SignedTransaction) -> bool[src] 
fn eq(&self, other: &SignedTransaction) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SignedTransaction) -> bool[src] 
fn ne(&self, other: &SignedTransaction) -> boolThis method tests for !=.
impl HeapSizeOf for SignedTransaction[src] 
impl HeapSizeOf for SignedTransactionfn heap_size_of_children(&self) -> usize[src] 
fn heap_size_of_children(&self) -> usizeMeasure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more
impl Encodable for SignedTransaction[src] 
impl Encodable for SignedTransactionfn rlp_append(&self, s: &mut RlpStream)[src] 
fn rlp_append(&self, s: &mut RlpStream)Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>[src] 
fn rlp_bytes(&self) -> ElasticArray1024<u8>Get rlp-encoded bytes for this instance
impl Deref for SignedTransaction[src] 
impl Deref for SignedTransactiontype Target = UnverifiedTransaction
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src] 
fn deref(&self) -> &Self::TargetDereferences the value.
impl From<SignedTransaction> for UnverifiedTransaction[src] 
impl From<SignedTransaction> for UnverifiedTransactionfn from(tx: SignedTransaction) -> Self[src] 
fn from(tx: SignedTransaction) -> SelfPerforms the conversion.
impl From<SignedTransaction> for PendingTransaction[src] 
impl From<SignedTransaction> for PendingTransactionfn from(t: SignedTransaction) -> Self[src] 
fn from(t: SignedTransaction) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for SignedTransaction
impl Send for SignedTransactionimpl Sync for SignedTransaction
impl Sync for SignedTransaction