Skip to content

Commit

Permalink
core: remove unused localized signature type (paritytech#13552)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva authored and nathanwhit committed Jul 19, 2023
1 parent 12c358d commit e8f586c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions primitives/core/src/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,6 @@ impl Signature {
}
}

/// A localized signature also contains sender information.
#[cfg(feature = "std")]
#[derive(PartialEq, Eq, Clone, Debug, Encode, Decode)]
pub struct LocalizedSignature {
/// The signer of the signature.
pub signer: Public,
/// The signature itself.
pub signature: Signature,
}

impl Public {
/// A new instance from the given 32-byte `data`.
///
Expand Down
11 changes: 0 additions & 11 deletions primitives/core/src/sr25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,6 @@ impl sp_std::fmt::Debug for Signature {
}
}

/// A localized signature also contains sender information.
/// NOTE: Encode and Decode traits are supported in ed25519 but not possible for now here.
#[cfg(feature = "std")]
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct LocalizedSignature {
/// The signer of the signature.
pub signer: Public,
/// The signature itself.
pub signature: Signature,
}

impl UncheckedFrom<[u8; 64]> for Signature {
fn unchecked_from(data: [u8; 64]) -> Signature {
Signature(data)
Expand Down

0 comments on commit e8f586c

Please sign in to comment.