Struct ethcore_transaction::SignedTransaction [−][src]
pub struct SignedTransaction { /* fields omitted */ }
A UnverifiedTransaction
with successfully recovered sender
.
Methods
impl SignedTransaction
[src]
impl SignedTransaction
pub 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) -> Address
Returns 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) -> bool
Checks 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) -> 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 From<Transaction> for SignedTransaction
[src]
impl From<Transaction> for SignedTransaction
fn from(t: Transaction) -> Self
[src]
fn from(t: Transaction) -> Self
Performs the conversion.
impl Debug for SignedTransaction
[src]
impl Debug for SignedTransaction
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 SignedTransaction
[src]
impl Clone for SignedTransaction
fn clone(&self) -> SignedTransaction
[src]
fn clone(&self) -> SignedTransaction
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 Eq for SignedTransaction
[src]
impl Eq for SignedTransaction
impl PartialEq for SignedTransaction
[src]
impl PartialEq for SignedTransaction
fn eq(&self, other: &SignedTransaction) -> bool
[src]
fn eq(&self, other: &SignedTransaction) -> bool
This 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) -> bool
This method tests for !=
.
impl HeapSizeOf for SignedTransaction
[src]
impl HeapSizeOf for SignedTransaction
fn heap_size_of_children(&self) -> usize
[src]
fn heap_size_of_children(&self) -> usize
Measure 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 SignedTransaction
fn 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 SignedTransaction
type Target = UnverifiedTransaction
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl From<SignedTransaction> for UnverifiedTransaction
[src]
impl From<SignedTransaction> for UnverifiedTransaction
fn from(tx: SignedTransaction) -> Self
[src]
fn from(tx: SignedTransaction) -> Self
Performs the conversion.
impl From<SignedTransaction> for PendingTransaction
[src]
impl From<SignedTransaction> for PendingTransaction
fn from(t: SignedTransaction) -> Self
[src]
fn from(t: SignedTransaction) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for SignedTransaction
impl Send for SignedTransaction
impl Sync for SignedTransaction
impl Sync for SignedTransaction