Skip to main content

Crate nostr_pubsub_fips

Crate nostr_pubsub_fips 

Source
Expand description

Pubsub over authenticated peers on the fips_core::FipsEndpoint service API.

Modules§

feed
Public peer feeds with bounded Negentropy catch-up, wire-compatible with the TypeScript client.

Structs§

FipsAnonymousPublisher
A one-event, send-only operation. Create a new random endpoint for every event, recipient copy and retry; never use an account/live endpoint here.
FipsFreshEventSubscriber
Live peer observations over an existing FIPS client, without local replay.
FipsInvWantStream
Bounded, policy-aware Inv/WANT state above a reliable byte stream.
FipsInvWantStreamOptions
Bounds for the reliable Inv/WANT record layer carried by a TCP/FIPS stream.
FipsInvWantTcpDriveReport
FipsInvWantTcpDriver
Manually driven reliable Inv/WANT service over authenticated FIPS peers.
FipsInvWantTcpDriverOptions
FipsInvWantTcpQueueSnapshot
FipsPeerReputation
Default peer reputation for pubsub carried by a FipsEndpoint.
FipsPeerReputationOptions
FipsPeerfinder
Routes FIPS peer adverts through an application-selected nostr-pubsub event bus.
FipsPeerfindingRefresh
Result of one bounded peer-advert query through the selected pubsub bus.
FipsPubsubClient
FipsPubsubClientOptions
Resource limits and replay window for a FIPS pubsub client.
FipsPubsubClientPolicies
Optional application policies. Peer preference and event admission are separate from permission to access application data. Empty policies retain the default client behavior; no external trust identity is selected here.
FipsPubsubDeliverySnapshot
FipsPubsubPolicy
Pubsub-facing policy facade. It hides rating parsing and cadence from the application runtime; callers only observe ordinary events and periodically request due maintenance events for transport.
FipsPubsubSubscription
FipsRemotePublication
Evidence that this exact authenticated provider admitted this event.

Enums§

FipsDiscoveryScope
One public lookup subject. Reverse device authorization is restricted to AppKeys.
FipsInvWantStreamAction
Work emitted by FipsInvWantStream. Transport drivers write Send records to the named peer and pass Deliver events to the application.

Constants§

FIPS_NOSTR_PUBSUB_CAPABILITY
FIPS_NOSTR_PUBSUB_DEFAULT_MAX_HOPS
FIPS_NOSTR_PUBSUB_INV_WANT_PROTOCOL
FIPS_NOSTR_PUBSUB_INV_WANT_VERSION
FIPS_NOSTR_PUBSUB_MAX_FRAME_BYTES
Maximum encoded Nostr frame carried in one reliable TCP record.
FIPS_NOSTR_PUBSUB_MAX_OBSERVED_IDS
Aggregate bound across all authenticated peer/subscription observations.
FIPS_NOSTR_PUBSUB_MAX_OBSERVED_IDS_PER_SCOPE
Unaccepted IDs retained for one authenticated peer/subscription epoch.
FIPS_NOSTR_PUBSUB_MAX_REPLAY_EVENTS
FIPS_NOSTR_PUBSUB_MAX_SEEN_EVENT_IDS
Event IDs retained without full signed payloads for accepted-event dedup.
FIPS_NOSTR_PUBSUB_SERVICE_PORT

Functions§

fips_discovery_retention_policy
Convert FIPS’s transport-neutral discovery configuration into the bounded retention policy used by a pubsub cache.
ingest_fips_discovery_event
Feed a verified pubsub event into FIPS’s normal Nostr discovery validator.

Type Aliases§

FipsPubsubPolicyOptions