Nostr
Description
Rust implementation of Nostr protocol.
Getting started
[]
= "0.15"
= { = "0.18", = ["rustls-tls-webpki-roots"]}
use ;
use ClientMessage;
use ;
More examples can be found in the examples directory.
Crate Feature Flags
The following crate feature flags are available:
| Feature | Default | Description |
|---|---|---|
full |
Yes | Enable all main features: all-nips and event |
blocking |
No | Needed to use NIP-05 and NIP-11features in not async/await context |
event |
Yes | Enable event, message and types modules |
all-nips |
Yes | Enable all NIPs |
nip04 |
Yes | Enable NIP-04: Encrypted Direct Message |
nip05 |
Yes | Enable NIP-05: Mapping Nostr keys to DNS-based internet identifiers |
nip06 |
Yes | Enable NIP-06: Basic key derivation from mnemonic seed phrase |
nip11 |
Yes | Enable NIP-11: Relay Information Document |
nip13 |
Yes | Enable NIP-13: Proof of Work |
nip19 |
Yes | Enable NIP-19: bech32-encoded entities |
nip26 |
Yes | Enable NIP-26: Delegated Event Signing |
Supported NIPs
State
This library is in an ALPHA state, things that are implemented generally work but the API will change in breaking ways.
License
This project is distributed under the MIT software license - see the LICENSE file for details
Donations
⚡ Tips: https://getalby.com/p/yuki
⚡ Lightning Address: yuki@getalby.com