change a few comments

This commit is contained in:
Alex Auvolat
2021-04-08 15:13:02 +02:00
parent 2812a027ea
commit 119217f9f6
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ pub struct Key {
}
impl Key {
/// Create a new key
/// Initialize a new Key, generating a random identifier and associated secret key
pub fn new(name: String) -> Self {
let key_id = format!("GK{}", hex::encode(&rand::random::<[u8; 12]>()[..]));
let secret_key = hex::encode(&rand::random::<[u8; 32]>()[..]);