Struct ethcore::transaction::LocalizedTransaction
[−]
[src]
pub struct LocalizedTransaction { pub signed: UnverifiedTransaction, pub block_number: BlockNumber, 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: BlockNumber
Block number.
block_hash: H256
Block hash.
transaction_index: usize
Transaction index within block.
cached_sender: Option<Address>
Cached sender
Methods
impl LocalizedTransaction
[src]
fn sender(&mut self) -> Address
Returns transaction sender.
Panics if LocalizedTransaction
is constructed using invalid UnverifiedTransaction
.
Methods from Deref<Target=UnverifiedTransaction>
fn as_unsigned(&self) -> &Transaction
Reference to unsigned part of this transaction.
fn standard_v(&self) -> u8
0 if v
would have been 27 under "Electrum" notation, 1 if 28 or 4 if invalid.
fn original_v(&self) -> u64
The v
value that appears in the RLP.
fn network_id(&self) -> Option<u64>
The network ID, or None
if this is a global transaction.
fn signature(&self) -> Signature
Construct a signature object from the sig.
fn check_low_s(&self) -> Result<(), Error>
Checks whether the signature has a low 's' value.
fn hash(&self) -> H256
Get the hash of this header (sha3 of the RLP).
fn recover_public(&self) -> Result<Public, Error>
Recovers the public key of the sender.
Trait Implementations
impl Debug for LocalizedTransaction
[src]
impl Clone for LocalizedTransaction
[src]
fn clone(&self) -> LocalizedTransaction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for LocalizedTransaction
[src]
fn eq(&self, __arg_0: &LocalizedTransaction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LocalizedTransaction) -> bool
This method tests for !=
.
impl Eq for LocalizedTransaction
[src]
impl Deref for LocalizedTransaction
[src]
type Target = UnverifiedTransaction
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value