Struct ethcore::transaction::UnverifiedTransaction
[−]
[src]
pub struct UnverifiedTransaction { /* fields omitted */ }
Signed transaction information.
Methods
impl UnverifiedTransaction
[src]
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.
Methods from Deref<Target=Transaction>
fn rlp_append_unsigned_transaction(&self,
s: &mut RlpStream,
network_id: Option<u64>)
s: &mut RlpStream,
network_id: Option<u64>)
Append object with a without signature into RLP stream
fn hash(&self, network_id: Option<u64>) -> H256
The message hash of the transaction.
fn sign(self, secret: &Secret, network_id: Option<u64>) -> SignedTransaction
Signs the transaction as coming from sender
.
fn with_signature(self,
sig: Signature,
network_id: Option<u64>)
-> UnverifiedTransaction
sig: Signature,
network_id: Option<u64>)
-> UnverifiedTransaction
Signs the transaction with signature.
fn fake_sign(self, from: Address) -> SignedTransaction
Specify the sender; this won't survive the serialize/deserialize process, but can be cloned.
fn gas_required(&self, schedule: &Schedule) -> u64
Get the transaction cost in gas for this transaction.
Trait Implementations
impl From<Transaction> for UnverifiedTransaction
[src]
fn from(t: Transaction) -> Self
Performs the conversion.
impl Debug for UnverifiedTransaction
[src]
impl Clone for UnverifiedTransaction
[src]
fn clone(&self) -> UnverifiedTransaction
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 UnverifiedTransaction
[src]
impl PartialEq for UnverifiedTransaction
[src]
fn eq(&self, __arg_0: &UnverifiedTransaction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnverifiedTransaction) -> bool
This method tests for !=
.
impl Deref for UnverifiedTransaction
[src]
type Target = Transaction
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl Decodable for UnverifiedTransaction
[src]
fn decode<D>(decoder: &D) -> Result<Self, DecoderError> where D: Decoder
Decode a value from RLP bytes
impl Encodable for UnverifiedTransaction
[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 From<SignedTransaction> for UnverifiedTransaction
[src]
fn from(tx: SignedTransaction) -> Self
Performs the conversion.