Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Oct 25, 2024
1 parent e3905d9 commit 59b63a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/primitives/src/signature/primitive_sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ impl PrimitiveSignature {
Self { y_parity: v, r, s }
}

/// Creates a [`PrimitiveSignature`] from the serialized `r` and `s` scalar values, which comprise the
/// ECDSA signature, alongside a `v` value, used to determine the recovery ID.
/// Creates a [`PrimitiveSignature`] from the serialized `r` and `s` scalar values, which
/// comprise the ECDSA signature, alongside a `v` value, used to determine the recovery ID.
#[inline]
pub fn from_scalars_and_parity(r: crate::B256, s: crate::B256, parity: bool) -> Self {
Self::new(U256::from_be_slice(r.as_ref()), U256::from_be_slice(s.as_ref()), parity)
Expand Down

0 comments on commit 59b63a6

Please sign in to comment.