Struct ethcore_transaction::UnverifiedTransaction [−][src]
pub struct UnverifiedTransaction { /* fields omitted */ }
Signed transaction information without verified signature.
Methods
impl UnverifiedTransaction
[src]
impl 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.
Methods from Deref<Target = Transaction>
pub fn rlp_append_unsigned_transaction(
&self,
s: &mut RlpStream,
chain_id: Option<u64>
)
[src]
pub fn rlp_append_unsigned_transaction(
&self,
s: &mut RlpStream,
chain_id: Option<u64>
)
Append object with a without signature into RLP stream
pub fn hash(&self, chain_id: Option<u64>) -> H256
[src]
pub fn hash(&self, chain_id: Option<u64>) -> H256
The message hash of the transaction.
pub fn gas_required(&self, schedule: &Schedule) -> u64
[src]
pub fn gas_required(&self, schedule: &Schedule) -> u64
Get the transaction cost in gas for this transaction.
Trait Implementations
impl From<Transaction> for UnverifiedTransaction
[src]
impl From<Transaction> for UnverifiedTransaction
fn from(t: Transaction) -> Self
[src]
fn from(t: Transaction) -> Self
Performs the conversion.
impl Debug for UnverifiedTransaction
[src]
impl Debug for UnverifiedTransaction
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 UnverifiedTransaction
[src]
impl Clone for UnverifiedTransaction
fn clone(&self) -> UnverifiedTransaction
[src]
fn clone(&self) -> UnverifiedTransaction
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 UnverifiedTransaction
[src]
impl Eq for UnverifiedTransaction
impl PartialEq for UnverifiedTransaction
[src]
impl PartialEq for UnverifiedTransaction
fn eq(&self, other: &UnverifiedTransaction) -> bool
[src]
fn eq(&self, other: &UnverifiedTransaction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnverifiedTransaction) -> bool
[src]
fn ne(&self, other: &UnverifiedTransaction) -> bool
This method tests for !=
.
impl Deref for UnverifiedTransaction
[src]
impl Deref for UnverifiedTransaction
type Target = Transaction
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl Decodable for UnverifiedTransaction
[src]
impl Decodable for UnverifiedTransaction
fn decode(d: &Rlp) -> Result<Self, DecoderError>
[src]
fn decode(d: &Rlp) -> Result<Self, DecoderError>
Decode a value from RLP bytes
impl Encodable for UnverifiedTransaction
[src]
impl Encodable for UnverifiedTransaction
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 From<SignedTransaction> for UnverifiedTransaction
[src]
impl From<SignedTransaction> for UnverifiedTransaction
fn from(tx: SignedTransaction) -> Self
[src]
fn from(tx: SignedTransaction) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for UnverifiedTransaction
impl Send for UnverifiedTransaction
impl Sync for UnverifiedTransaction
impl Sync for UnverifiedTransaction