Struct ethcore_transaction::LocalizedTransaction [−][src]
pub struct LocalizedTransaction {
    pub signed: UnverifiedTransaction,
    pub block_number: u64,
    pub block_hash: H256,
    pub transaction_index: usize,
    pub cached_sender: Option<Address>,
}Signed Transaction that is a part of canon blockchain.
Fields
signed: UnverifiedTransaction
                           Signed part.
block_number: u64
                           Block number.
block_hash: H256
                           Block hash.
transaction_index: usize
                           Transaction index within block.
cached_sender: Option<Address>
                           Cached sender
Methods
impl LocalizedTransaction[src] 
impl LocalizedTransactionpub fn sender(&mut self) -> Address[src] 
pub fn sender(&mut self) -> AddressReturns transaction sender.
Panics if LocalizedTransaction is constructed using invalid 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 Debug for LocalizedTransaction[src] 
impl Debug for LocalizedTransactionfn 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 LocalizedTransaction[src] 
impl Clone for LocalizedTransactionfn clone(&self) -> LocalizedTransaction[src] 
fn clone(&self) -> LocalizedTransactionReturns 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 PartialEq for LocalizedTransaction[src] 
impl PartialEq for LocalizedTransactionfn eq(&self, other: &LocalizedTransaction) -> bool[src] 
fn eq(&self, other: &LocalizedTransaction) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LocalizedTransaction) -> bool[src] 
fn ne(&self, other: &LocalizedTransaction) -> boolThis method tests for !=.
impl Eq for LocalizedTransaction[src] 
impl Eq for LocalizedTransactionimpl Deref for LocalizedTransaction[src] 
impl Deref for LocalizedTransactiontype Target = UnverifiedTransaction
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src] 
fn deref(&self) -> &Self::TargetDereferences the value.
Auto Trait Implementations
impl Send for LocalizedTransaction
impl Send for LocalizedTransactionimpl Sync for LocalizedTransaction
impl Sync for LocalizedTransaction