mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
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 <lovesh.bond@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1a65205278
commit
62cfccbdd6
@@ -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 = ();
|
||||
|
||||
Reference in New Issue
Block a user