Trait SignedTransactionIntoRecoveredExt
pub trait SignedTransactionIntoRecoveredExt: SignedTransaction {
// Provided methods
fn try_ecrecovered(&self) -> Option<Recovered<Self>> { ... }
fn try_into_ecrecovered(self) -> Result<Recovered<Self>, Self> { ... }
fn into_ecrecovered_unchecked(self) -> Option<Recovered<Self>> { ... }
fn with_signer(self, signer: Address) -> Recovered<Self> { ... }
}
Expand description
Extension trait for SignedTransaction
to convert it into Recovered
.
Provided Methods§
fn try_ecrecovered(&self) -> Option<Recovered<Self>>
fn try_ecrecovered(&self) -> Option<Recovered<Self>>
Tries to recover signer and return Recovered
by cloning the type.
fn try_into_ecrecovered(self) -> Result<Recovered<Self>, Self>
fn try_into_ecrecovered(self) -> Result<Recovered<Self>, Self>
Tries to recover signer and return Recovered
.
Returns Err(Self)
if the transaction’s signature is invalid, see also
SignedTransaction::recover_signer
.
fn into_ecrecovered_unchecked(self) -> Option<Recovered<Self>>
fn into_ecrecovered_unchecked(self) -> Option<Recovered<Self>>
Consumes the type, recover signer and return Recovered
without
ensuring that the signature has a low s
value (EIP-2).
Returns None
if the transaction’s signature is invalid.
fn with_signer(self, signer: Address) -> Recovered<Self>
fn with_signer(self, signer: Address) -> Recovered<Self>
Returns the Recovered
transaction with the given sender.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.