From 7c6a5ab4c5e7a81c7442061029b9230748a6639d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 18 Apr 2024 07:39:27 +0100 Subject: refactor: bump rust-nostr to v0.30 use ncryptsec bump nostr and nostr-sdk packages and also in test_utils remove custom ncryptsec implementation and use the newly added implementation nip49 version in rust-nostr note a patched v0.30 is used so that log_n is exposed so that user can be warned it might take a few seconds to decrypt. this has now been merged into the library. note that this will no longer decrypt existing ncryptsec values as it is uses a longer string. this should therefore be bundled with the upcoming change to storing nsec and ncryptsec in git config. --- tests/login.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/login.rs b/tests/login.rs index 351d099..371a7e7 100644 --- a/tests/login.rs +++ b/tests/login.rs @@ -956,7 +956,7 @@ mod with_offline_flag { p.expect(format!("login as {}\r\n", TEST_KEY_1_NPUB).as_str())? .expect_password(EXPECTED_PASSWORD_PROMPT)? .succeeds_with(TEST_INVALID_PASSWORD)?; - p.expect_end_with(format!("Error: failed to log in as {}\r\n\r\nCaused by:\r\n 0: failed to decrypt key with provided password\r\n 1: failed to decrypt\r\n", TEST_KEY_1_NPUB).as_str()) + p.expect_end_with(format!("Error: failed to log in as {}\r\n\r\nCaused by:\r\n 0: failed to decrypt key with provided password\r\n 1: ChaCha20Poly1305: aead::Error\r\n", TEST_KEY_1_NPUB).as_str()) }) } } -- cgit v1.2.3