Struct ethcore_transaction::UnverifiedTransaction [−][src]
pub struct UnverifiedTransaction { /* fields omitted */ }Signed transaction information without verified signature.
Methods
impl UnverifiedTransaction[src] 
impl UnverifiedTransactionpub fn is_unsigned(&self) -> bool[src] 
pub fn is_unsigned(&self) -> boolChecks is signature is empty.
pub fn as_unsigned(&self) -> &Transaction[src] 
pub fn as_unsigned(&self) -> &TransactionReference to unsigned part of this transaction.
pub fn standard_v(&self) -> u8[src] 
pub fn standard_v(&self) -> u8pub fn original_v(&self) -> u64[src] 
pub fn original_v(&self) -> u64The 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) -> SignatureConstruct 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) -> H256Get 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>) -> H256The message hash of the transaction.
pub fn gas_required(&self, schedule: &Schedule) -> u64[src] 
pub fn gas_required(&self, schedule: &Schedule) -> u64Get the transaction cost in gas for this transaction.
Trait Implementations
impl From<Transaction> for UnverifiedTransaction[src] 
impl From<Transaction> for UnverifiedTransactionfn from(t: Transaction) -> Self[src] 
fn from(t: Transaction) -> SelfPerforms the conversion.
impl Debug for UnverifiedTransaction[src] 
impl Debug for UnverifiedTransactionfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for UnverifiedTransaction[src] 
impl Clone for UnverifiedTransactionfn clone(&self) -> UnverifiedTransaction[src] 
fn clone(&self) -> UnverifiedTransactionReturns 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 UnverifiedTransactionimpl PartialEq for UnverifiedTransaction[src] 
impl PartialEq for UnverifiedTransactionfn eq(&self, other: &UnverifiedTransaction) -> bool[src] 
fn eq(&self, other: &UnverifiedTransaction) -> boolThis 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) -> boolThis method tests for !=.
impl Deref for UnverifiedTransaction[src] 
impl Deref for UnverifiedTransactiontype Target = Transaction
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src] 
fn deref(&self) -> &Self::TargetDereferences the value.
impl Decodable for UnverifiedTransaction[src] 
impl Decodable for UnverifiedTransactionfn 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 UnverifiedTransactionfn 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 UnverifiedTransactionfn from(tx: SignedTransaction) -> Self[src] 
fn from(tx: SignedTransaction) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for UnverifiedTransaction
impl Send for UnverifiedTransactionimpl Sync for UnverifiedTransaction
impl Sync for UnverifiedTransaction