mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
docs: add section about recovery naming (#14012)
This commit is contained in:
@ -43,6 +43,14 @@
|
||||
//! upgraded to a [`RecoveredBlock`] by recovering the sender addresses:
|
||||
//! [`SealedBlock::try_recover`]. A [`RecoveredBlock`] can be downgraded to a [`SealedBlock`] by
|
||||
//! removing the sender addresses: [`RecoveredBlock::into_sealed_block`].
|
||||
//!
|
||||
//! #### Naming
|
||||
//!
|
||||
//! The types in this crate support multiple recovery functions, e.g.
|
||||
//! [`SealedBlock::try_recover_unchecked`] and [`SealedBlock::try_recover_unchecked`]. The `_unchecked` suffix indicates that this function recovers the signer _without ensuring that the signature has a low `s` value_, in other words this rule introduced in [EIP-2](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md) is ignored.
|
||||
//! Hence this function is necessary when dealing with pre EIP-2 transactions on the ethereum
|
||||
//! mainnet. Newer transactions must always be recovered with the regular `recover` functions, see
|
||||
//! also [`recover_signer`](crypto::secp256k1::recover_signer).
|
||||
|
||||
#![doc(
|
||||
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
|
||||
|
||||
Reference in New Issue
Block a user