Skip to content

Commit

Permalink
fix: put deprecation notice on the struct defs
Browse files Browse the repository at this point in the history
  • Loading branch information
moricho committed Dec 5, 2024
1 parent f382c18 commit f21f64a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/primitives/src/signature/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ mod error;
pub use error::SignatureError;

mod parity;
#[deprecated(since = "0.8.15", note = "see https://github.com/alloy-rs/core/pull/776")]
pub use parity::Parity;

mod sig;
#[deprecated(since = "0.8.15", note = "use PrimitiveSignature instead")]
pub use sig::Signature;

mod utils;
Expand Down
1 change: 1 addition & 0 deletions crates/primitives/src/signature/parity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{

/// The parity of the signature, stored as either a V value (which may include
/// a chain id), or the y-parity.
#[deprecated(since = "0.8.15", note = "see https://github.com/alloy-rs/core/pull/776")]
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "arbitrary", derive(derive_arbitrary::Arbitrary, proptest_derive::Arbitrary))]
pub enum Parity {
Expand Down
1 change: 1 addition & 0 deletions crates/primitives/src/signature/sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const SECP256K1N_ORDER: U256 =
uint!(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141_U256);

/// An Ethereum ECDSA signature.
#[deprecated(since = "0.8.15", note = "use PrimitiveSignature instead")]
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
pub struct Signature {
v: Parity,
Expand Down

0 comments on commit f21f64a

Please sign in to comment.