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 LocalizedTransaction
pub fn sender(&mut self) -> Address
[src]
pub fn sender(&mut self) -> Address
Returns 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) -> bool
Checks is signature is empty.
pub fn as_unsigned(&self) -> &Transaction
[src]
pub fn as_unsigned(&self) -> &Transaction
Reference to unsigned part of this transaction.
pub fn standard_v(&self) -> u8
[src]
pub fn standard_v(&self) -> u8
pub fn original_v(&self) -> u64
[src]
pub fn original_v(&self) -> u64
The 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) -> Signature
Construct 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) -> H256
Get 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 LocalizedTransaction
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for LocalizedTransaction
[src]
impl Clone for LocalizedTransaction
fn clone(&self) -> LocalizedTransaction
[src]
fn clone(&self) -> LocalizedTransaction
Returns 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 LocalizedTransaction
fn eq(&self, other: &LocalizedTransaction) -> bool
[src]
fn eq(&self, other: &LocalizedTransaction) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for LocalizedTransaction
[src]
impl Eq for LocalizedTransaction
impl Deref for LocalizedTransaction
[src]
impl Deref for LocalizedTransaction
type Target = UnverifiedTransaction
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
Auto Trait Implementations
impl Send for LocalizedTransaction
impl Send for LocalizedTransaction
impl Sync for LocalizedTransaction
impl Sync for LocalizedTransaction