feat: Keyring the secret key n34 config keyring --enable

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-07-27 00:47:18 +00:00
parent c3aef2e0ad
commit 03d5c8020e
8 changed files with 139 additions and 15 deletions

View File

@@ -300,3 +300,12 @@ impl Event {
.join(", ")
}
}
#[easy_ext::ext(NostrKeyringErrorUtils)]
impl nostr_keyring::Error {
/// Checks if the error indicates a missing keyring entry.
#[inline]
pub fn is_keyring_no_entry(&self) -> bool {
matches!(self, nostr_keyring::Error::Keyring(keyring::Error::NoEntry))
}
}