Skip to content
Snippets Groups Projects
Commit 62cfccbd authored by Lovesh Harchandani's avatar Lovesh Harchandani Committed by GitHub
Browse files

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: default avatarlovesh <lovesh.bond@gmail.com>
parent 1a652052
No related merge requests found
......@@ -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<Ordering> {
......@@ -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 = ();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment