Skip to content

Commit be303ce

Browse files
andresilvaukint-vs
authored andcommitted
core: remove unused localized signature type (paritytech#13552)
1 parent 04045b2 commit be303ce

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

primitives/core/src/ed25519.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,6 @@ impl Signature {
332332
}
333333
}
334334

335-
/// A localized signature also contains sender information.
336-
#[cfg(feature = "std")]
337-
#[derive(PartialEq, Eq, Clone, Debug, Encode, Decode)]
338-
pub struct LocalizedSignature {
339-
/// The signer of the signature.
340-
pub signer: Public,
341-
/// The signature itself.
342-
pub signature: Signature,
343-
}
344-
345335
impl Public {
346336
/// A new instance from the given 32-byte `data`.
347337
///

primitives/core/src/sr25519.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,6 @@ impl sp_std::fmt::Debug for Signature {
307307
}
308308
}
309309

310-
/// A localized signature also contains sender information.
311-
/// NOTE: Encode and Decode traits are supported in ed25519 but not possible for now here.
312-
#[cfg(feature = "std")]
313-
#[derive(PartialEq, Eq, Clone, Debug)]
314-
pub struct LocalizedSignature {
315-
/// The signer of the signature.
316-
pub signer: Public,
317-
/// The signature itself.
318-
pub signature: Signature,
319-
}
320-
321310
impl UncheckedFrom<[u8; 64]> for Signature {
322311
fn unchecked_from(data: [u8; 64]) -> Signature {
323312
Signature(data)

0 commit comments

Comments
 (0)