From 62cfccbdd64ce88642607a25de360e5c9bbf2df8 Mon Sep 17 00:00:00 2001 From: Lovesh Harchandani Date: Sat, 26 Sep 2020 01:58:07 +0530 Subject: [PATCH] Make private member of ecdsa `Public` and `Signature` tuple structs as (#7216) public. `Public` and `Signature` tuple structs of ed25519 and sr25519 have the internal member public already. This change makes the interface similar. Signed-off-by: lovesh --- substrate/primitives/core/src/ecdsa.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/primitives/core/src/ecdsa.rs b/substrate/primitives/core/src/ecdsa.rs index da6b7614c7..a836eb0e4c 100644 --- a/substrate/primitives/core/src/ecdsa.rs +++ b/substrate/primitives/core/src/ecdsa.rs @@ -53,7 +53,7 @@ type Seed = [u8; 32]; /// The ECDSA compressed public key. #[derive(Clone, Encode, Decode, PassByInner)] -pub struct Public([u8; 33]); +pub struct Public(pub [u8; 33]); impl PartialOrd for Public { fn partial_cmp(&self, other: &Self) -> Option { @@ -228,7 +228,7 @@ impl sp_std::hash::Hash for Public { /// A signature (a 512-bit value, plus 8 bits for recovery ID). #[derive(Encode, Decode, PassByInner)] -pub struct Signature([u8; 65]); +pub struct Signature(pub [u8; 65]); impl sp_std::convert::TryFrom<&[u8]> for Signature { type Error = ();