diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-04-01 14:31:34 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-04-01 14:35:50 +0100 |
| commit | 948fe972eb2bddf187b79f2673a091b6331cfd90 (patch) | |
| tree | ec1c538d28108b104b5a00afd673631538f9aa00 /src/lib/login/key_encryption.rs | |
| parent | 70966d571fce16f707725c6b0af0fd585bfce607 (diff) | |
chore: bump rust-nostr v0.37 ~> v0.40
and fix all of the breaking changes
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)] |