Skip to content

Commit

Permalink
chore: make fn inline where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mcatta committed Oct 6, 2023
1 parent 1251dbe commit dd3c5fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ pub mod keystore {
/**
* Sign a message and return the signature
*/
#[inline]
pub fn sign(&self, message: &String) -> Signature {
self.key_pair.sign_simple(&[], &message.as_bytes())
}

/**
* Get the public key
*/
#[inline]
pub fn public_key(&self) -> PublicKey {
PublicKey::new(self.key_pair.public.to_bytes()).unwrap()
}
Expand Down

0 comments on commit dd3c5fa

Please sign in to comment.