mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-01 10:35:05 -05:00
dev(primitives): signature conversion (#10371)
This commit is contained in:
@@ -204,6 +204,12 @@ impl Signature {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<alloy_primitives::Signature> for Signature {
|
||||
fn from(value: alloy_primitives::Signature) -> Self {
|
||||
Self { r: value.r(), s: value.s(), odd_y_parity: value.v().y_parity() }
|
||||
}
|
||||
}
|
||||
|
||||
/// Outputs (`odd_y_parity`, `chain_id`) from the `v` value.
|
||||
/// This doesn't check validity of the `v` value for optimism.
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user