serbero 0.1.1

Nostr-native dispute coordination daemon for the Mostro ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use nostr_sdk::{Client, PublicKey};

use crate::error::{Error, Result};

pub async fn send_gift_wrap_notification(
    client: &Client,
    receiver: &PublicKey,
    message: &str,
) -> Result<()> {
    client
        .send_private_msg(*receiver, message, [])
        .await
        .map_err(|e| Error::Notification(format!("gift-wrap send failed: {e}")))?;
    Ok(())
}