Structured files/directories and nip01, nip02, nip17 implementation

This commit is contained in:
Malte Schröder
2025-12-07 17:50:25 +01:00
commit b651c13fed
14 changed files with 1965 additions and 0 deletions

8
src/functions/new.rs Normal file
View File

@@ -0,0 +1,8 @@
use anyhow::Result;
use nostr_sdk::prelude::*;
pub async fn new_client(private_key: &str) -> Result<Client> {
let keys = Keys::parse(private_key)?;
let client = Client::new(keys);
Ok(client)
}