nostr_rust
An ergonomic, Nostr API Client for Rust.
Example
This example uses Tungstenite for event handling, so your Cargo.toml
could look like this:
[]
= "0.5"
= "0.17"
And then the code:
use ;
use Message;
use ;
NIPs Supported
NIP | Supported | Client Version | Description |
---|---|---|---|
01 | ✅ | 0.1.0 | Basic protocol flow description |
02 | ✅ | 0.3.0 | Contact List and Petnames |
03 | ❌ | Not supported | OpenTimestamps Attestations for Events |
04 | ❌ | Not supported | Encrypted Direct Message |
05 | ❌ | Not supported | Mapping Nostr keys to DNS-based internet identifiers |
06 | ❌ | Not supported | Basic key derivation from mnemonic seed phrase |
07 | Not concerned | Not supported | window.nostr capability for web browsers |
08 | ❌ | Not supported | Handling Mentions |
09 | ✅ | 0.5.0 | Event Deletion |
10 | ❌ | Not supported | Conventions for clients' use of e and p tags in text events. |
11 | ❌ | Not supported | Relay Information Document |
12 | ❌ | Not supported | Generic Tag Queries |
13 | ❌ | Not supported | Proof of Work |
14 | ❌ | Not supported | Subject tag in text events. |
15 | ❌ | Not supported | End of Stored Events Notice |
16 | ❌ | Not supported | Event Treatment |
22 | ❌ | Not supported | Event created_at Limits |
25 | ✅ | 0.4.0 | Reactions |
28 | ❌ | Not supported | Public Chat |
License
Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)