feat: Support signing using NIP-46 bunker

Suggested-by: DanConwayDev <DanConwayDev@protonmail.com>
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-07-18 21:18:26 +00:00
parent f0c20c3677
commit 4e0ecdceaf
11 changed files with 211 additions and 23 deletions

View File

@@ -64,7 +64,7 @@ pub struct ContentDetails {
/// A client for interacting with the Nostr relays
pub struct NostrClient {
/// The underlying Nostr client implementation
client: Client,
pub client: Client,
}
impl ContentDetails {
@@ -112,7 +112,7 @@ impl NostrClient {
pub async fn init(options: &CliOptions, relays: &[RelayUrl]) -> Self {
let mut client_builder = Client::builder();
if let Some(signer) = options.signer() {
if let Ok(Some(signer)) = options.signer() {
client_builder = client_builder.signer(signer);
}