Struct ethcore::transaction::SignedTransaction
[−]
[src]
pub struct SignedTransaction { /* fields omitted */ }
A UnverifiedTransaction
with successfully recovered sender
.
Methods
impl SignedTransaction
[src]
fn new(transaction: UnverifiedTransaction) -> Result<Self, Error>
Try to verify transaction and recover sender.
fn sender(&self) -> Address
Returns transaction sender.
fn public_key(&self) -> Public
Returns a public key of the sender.
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 From<Transaction> for SignedTransaction
[src]
fn from(t: Transaction) -> Self
Performs the conversion.
impl Debug for SignedTransaction
[src]
impl Clone for SignedTransaction
[src]
fn clone(&self) -> SignedTransaction
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 Eq for SignedTransaction
[src]
impl PartialEq for SignedTransaction
[src]
fn eq(&self, __arg_0: &SignedTransaction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SignedTransaction) -> bool
This method tests for !=
.
impl HeapSizeOf for SignedTransaction
[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::
impl Encodable for SignedTransaction
[src]
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl Deref for SignedTransaction
[src]
type Target = UnverifiedTransaction
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value