Skip to content

Commit

Permalink
make sr25519::PublicKey::inner public
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Oct 10, 2024
1 parent 95f4691 commit 2d5af69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion identity/src/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ impl PublicKey {
#[cfg(feature = "sr25519")]
pub fn is_eq_sr25519(&self, other: &RistrettoPublicKey) -> bool {
match &self.publickey {
PublicKeyInner::Sr25519(key) => key.inner() == other,
PublicKeyInner::Sr25519(key) => key.inner_key() == other,
_ => false,
}
}
Expand Down
2 changes: 1 addition & 1 deletion identity/src/sr25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl PublicKey {
Ok(PublicKey(pk))
}

pub(crate) fn inner(&self) -> &RistrettoPublicKey {
pub fn inner_key(&self) -> &RistrettoPublicKey {
&self.0
}
}
Expand Down

0 comments on commit 2d5af69

Please sign in to comment.