Skip to content

Commit

Permalink
change SignatureKeyPair get apis
Browse files Browse the repository at this point in the history
  • Loading branch information
rainliu committed Sep 4, 2023
1 parent e7275be commit 34e707b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmls/src/crypto/provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ pub struct SignatureKeyPair {

impl SignatureKeyPair {
/// Returns private key
pub fn private_key(&self) -> &[u8] {
self.private_key.as_ref()
pub fn private_key(&self) -> &Bytes {
&self.private_key
}

/// Returns public key
pub fn public_key(&self) -> &[u8] {
self.public_key.as_ref()
pub fn public_key(&self) -> &Bytes {
&self.public_key
}

/// Returns signature scheme
Expand Down

0 comments on commit 34e707b

Please sign in to comment.