diff options
Diffstat (limited to 'src/lib/login/key_encryption.rs')
| -rw-r--r-- | src/lib/login/key_encryption.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/login/key_encryption.rs b/src/lib/login/key_encryption.rs index efb38d1..d57b3b5 100644 --- a/src/lib/login/key_encryption.rs +++ b/src/lib/login/key_encryption.rs | |||
| @@ -7,7 +7,7 @@ pub fn decrypt_key(encrypted_key: &str, password: &str) -> Result<nostr::Keys> { | |||
| 7 | if encrypted_key.log_n() > 14 { | 7 | if encrypted_key.log_n() > 14 { |
| 8 | println!("this may take a few seconds..."); | 8 | println!("this may take a few seconds..."); |
| 9 | } | 9 | } |
| 10 | Ok(nostr::Keys::new(encrypted_key.to_secret_key(password)?)) | 10 | Ok(nostr::Keys::new(encrypted_key.decrypt(password)?)) |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | #[cfg(test)] | 13 | #[cfg(test)] |