Skip to content

Commit

Permalink
refactor: use simple boolean for parity in signature
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Oct 20, 2024
1 parent 8e2edcb commit 1190cee
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 627 deletions.
2 changes: 1 addition & 1 deletion crates/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod signed;
pub use signed::{BigIntConversionError, ParseSignedError, Sign, Signed};

mod signature;
pub use signature::{to_eip155_v, Parity, Signature, SignatureError};
pub use signature::{normalize_v, to_eip155_v, Signature, SignatureError};

pub mod utils;
pub use utils::{eip191_hash_message, keccak256, Keccak256};
Expand Down
5 changes: 1 addition & 4 deletions crates/primitives/src/signature/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
mod error;
pub use error::SignatureError;

mod parity;
pub use parity::Parity;

mod sig;
pub use sig::Signature;

mod utils;
pub use utils::to_eip155_v;
pub use utils::{normalize_v, to_eip155_v};
267 changes: 0 additions & 267 deletions crates/primitives/src/signature/parity.rs

This file was deleted.

Loading

0 comments on commit 1190cee

Please sign in to comment.