Crate gnostr_bins Copy item path Source pub use reflog::ref_hash_list ;pub use reflog::ref_hash_list_padded ;pub use reflog::ref_hash_list_w_commit_message ;pub use relays::relays ;pub use relays::relays_by_nip ;pub use relays::relays_offline ;pub use relays::relays_online ;pub use relays::relays_paid ;pub use relays::relays_public ;pub use weeble::weeble ;pub use wobble::wobble ;pub use blockhash::blockhash ;pub use blockheight::blockheight ;pub use hash::hash ;pub use lightning ;pub use watch_list ::*;blockhash https://docs.rs/gnostr-bins/latest/gnostr_bins/blockhash/index.html blockheight https://docs.rs/gnostr-bins/latest/gnostr_bins/blockheight/index.html hash https://docs.rs/gnostr-bins/latest/gnostr_bins/hash/index.html reflog relays REF: https://api.nostr.watch
nostr.watch API Docs watch_list weeble https://docs.rs/gnostr-bins/latest/gnostr_bins/weeble/index.html wobble https://docs.rs/gnostr-bins/latest/gnostr_bins/wobble/index.html lazy_static Config pub struct Config EncryptedPrivateKey This is an encrypted private key (the string inside is the bech32 ncryptsec string) Filter Filter which specify what events a client is looking for Id An event identifier, constructed as a SHA256 hash of the event fields according to NIP-01 IdHex An event identifier, constructed as a SHA256 hash of the event fields according to NIP-01, as a hex string KeySigner Signer with a local private key (and public key) PREFIXES Prefixes Probe Receiver Receives values from the associated Sender. Sender Sends values to the associated Receiver. SubscriptionId A random client-chosen string used to refer to a subscription Unixtime An integer count of the number of seconds from 1st January 1970.
This does not count any of the leap seconds that have occurred, it
simply presumes UTC never had leap seconds; yet it is well known
and well understood. Uri The URI component of a request. Color Command EventKind A kind of Event Message An enum representing the various forms of a WebSocket message. Why The reason why a relay issued an OK or CLOSED message Colorful Support &str and String, you can use "text".red() and s.red() for s:String Engine An Engine provides low-level encoding and decoding operations that all other higher-level parts of the API use. Users of the library will generally not need to implement this. FusedStream A stream which tracks whether or not the underlying stream
should no longer be polled. Signer Signer operations SinkExt An extension trait for Sinks that provides a variety of convenient
combinator functions. StreamExt An extension trait for Streams that provides a variety of convenient
combinator functions. Zeroize Trait for securely erasing values from memory. fetch_by_filter pub fn fetch_by_filter(url: &str, filter: Filter) -> Vec<Event> fetch_by_id pub fn fetch_by_id(url: &str, id: IdHex) -> Option<Event> get_blockhash pub fn get_blockhash() -> Result<String, &’static str> get_blockheight pub fn get_blockheight() -> Result<String, &’static str> get_pwd get_relays get_relays https://api.nostr.watch
pub fn get_relays() -> Result<String, &’static str> get_relays_by_nip get_relays_by_nip
pub fn get_relays_by_nip(nip: &str) -> Result<String, &’static str> get_relays_offline get_relays_offline https://api.nostr.watch
pub fn get_relays_offline() -> Result<String, &’static str> get_relays_online get_relays_online https://api.nostr.watch
pub fn get_relays_online() -> Result<String, &’static str> get_relays_paid get_relays_paid https://api.nostr.watch
pub fn get_relays_paid() -> Result<String, &’static str> get_relays_public get_relays_public https://api.nostr.watch
pub fn get_relays_public() -> Result<String, &’static str> get_weeble pub fn get_weeble() -> Result<String, &’static str> get_wobble pub fn get_wobble() -> Result<String, &’static str> hash_list pub fn hash_list() hash_list_padded pub fn hash_list_padded() hash_list_w_commit_message pub fn hash_list_w_commit_message() load_signer post_event pub fn post_event(url: &str, event: Event) post_event_v3 pub fn post_event_v3(url: &str, event: EventV3) print_event pub fn print_event(event: &Event) req run pub fn run(config: Config) -> Result<(), Box<dyn Error>> search pub fn search<’a>(query: &str, contents: &’a str) -> Vec<&’a str> { url_to_host_and_uri ClientMessage A message from a client to a relay Event The main event type PreEvent Data used to construct an event RelayMessage A message from a relay to a client Tag A tag on an Event