Skip to main content

hashtree_resolver/
lib.rs

1//! Mutable names for immutable Hashtree content identifiers.
2//!
3//! The [`RootResolver`] trait supports one-shot lookups, open subscriptions, and
4//! publishing. Enable the `nostr` feature for the Nostr implementation and its
5//! installation, resolution, and publishing guide in the `nostr` module.
6//!
7//! A lookup that returns `None` is not proof of absence on a network. Live apps
8//! should keep subscriptions open and call [`RootResolver::stop`] on shutdown.
9
10mod traits;
11
12#[cfg(feature = "nostr")]
13pub mod nostr;
14
15pub use traits::*;
16
17// Re-export nostr-sdk types for use in NostrResolverConfig
18#[cfg(feature = "nostr")]
19pub use nostr_sdk::prelude::{Event, Keys, ToBech32};