Struct primitives::transaction::TransactionWithSignature
source · pub struct TransactionWithSignature {
pub transaction: TransactionWithSignatureSerializePart,
pub hash: H256,
pub rlp_size: Option<usize>,
}
Expand description
Signed transaction information without verified signature.
Fields§
§transaction: TransactionWithSignatureSerializePart
Serialize part.
hash: H256
Hash of the transaction
rlp_size: Option<usize>
The transaction size when serialized in rlp
Implementations§
source§impl TransactionWithSignature
impl TransactionWithSignature
pub fn new_unsigned(tx: Transaction) -> Self
sourcepub fn is_unsigned(&self) -> bool
pub fn is_unsigned(&self) -> bool
Checks whether signature is empty.
sourcepub fn check_low_s(&self) -> Result<(), Error>
pub fn check_low_s(&self) -> Result<(), Error>
Checks whether the signature has a low ‘s’ value.
pub fn check_y_parity(&self) -> Result<(), Error>
pub fn hash(&self) -> H256
sourcepub fn recover_public(&self) -> Result<Public, Error>
pub fn recover_public(&self) -> Result<Public, Error>
Recovers the public key of the sender.
pub fn rlp_size(&self) -> usize
pub fn from_raw(raw: &[u8]) -> Result<Self, DecoderError>
Methods from Deref<Target = Transaction>§
pub fn gas(&self) -> &U256
pub fn gas_price(&self) -> &U256
pub fn max_priority_gas_price(&self) -> &U256
pub fn data(&self) -> &Bytes
pub fn nonce(&self) -> &U256
pub fn action(&self) -> &Action
pub fn value(&self) -> &U256
pub fn chain_id(&self) -> Option<u32>
pub fn storage_limit(&self) -> Option<u64>
pub fn nonce_mut(&mut self) -> &mut U256
pub fn type_id(&self) -> u8
pub fn is_legacy(&self) -> bool
pub fn is_2718(&self) -> bool
pub fn after_1559(&self) -> bool
pub fn access_list(&self) -> Option<&AccessList>
pub fn priority_gas_price(&self, base_price: &U256) -> U256
pub fn effective_gas_price(&self, base_price: &U256) -> U256
pub fn signature_hash(&self) -> H256
pub fn space(&self) -> Space
Trait Implementations§
source§impl Clone for TransactionWithSignature
impl Clone for TransactionWithSignature
source§fn clone(&self) -> TransactionWithSignature
fn clone(&self) -> TransactionWithSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransactionWithSignature
impl Debug for TransactionWithSignature
source§impl Decodable for TransactionWithSignature
impl Decodable for TransactionWithSignature
source§impl DerefMut for TransactionWithSignature
impl DerefMut for TransactionWithSignature
source§impl<'de> Deserialize<'de> for TransactionWithSignature
impl<'de> Deserialize<'de> for TransactionWithSignature
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encodable for TransactionWithSignature
impl Encodable for TransactionWithSignature
source§impl From<SignedTransaction> for TransactionWithSignature
impl From<SignedTransaction> for TransactionWithSignature
source§fn from(tx: SignedTransaction) -> Self
fn from(tx: SignedTransaction) -> Self
Converts to this type from the input type.
source§impl MallocSizeOf for TransactionWithSignature
impl MallocSizeOf for TransactionWithSignature
source§impl PartialEq for TransactionWithSignature
impl PartialEq for TransactionWithSignature
source§fn eq(&self, other: &TransactionWithSignature) -> bool
fn eq(&self, other: &TransactionWithSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionWithSignature
impl Serialize for TransactionWithSignature
source§impl Deref for TransactionWithSignature
impl Deref for TransactionWithSignature
impl Eq for TransactionWithSignature
impl StructuralPartialEq for TransactionWithSignature
Auto Trait Implementations§
impl RefUnwindSafe for TransactionWithSignature
impl Send for TransactionWithSignature
impl Sync for TransactionWithSignature
impl Unpin for TransactionWithSignature
impl UnwindSafe for TransactionWithSignature
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more