Skip to main content

fips_endpoint/
lib.rs

1//! App-facing FIPS endpoint API.
2
3mod recent_peers_file;
4
5pub use recent_peers_file::{RecentPeersFileError, RecentPeersFileStore};
6
7pub use fips_core::config::{
8    Config, ConnectPolicy, EthernetConfig, NostrDiscoveryConfig, NostrDiscoveryPolicy,
9    NostrPeerfindingSource, PeerAddress, PeerAddressProvenance, PeerConfig, RoutingMode,
10    TransportInstances, TransportsConfig, UdpConfig, WebSocketConfig,
11};
12pub use fips_core::endpoint::{
13    FIPS_ENDPOINT_DIRECT_PACKET_QUEUE_MAX_PACKETS, FIPS_ENDPOINT_DIRECT_PACKET_RUN_MAX_PACKETS,
14    FipsEndpoint, FipsEndpointBuilder, FipsEndpointData, FipsEndpointDirectDeliveryError,
15    FipsEndpointDirectPacketBatch, FipsEndpointDirectPacketRun, FipsEndpointDirectReceiver,
16    FipsEndpointDirectSink, FipsEndpointError, FipsEndpointMessage, FipsEndpointPeer,
17    FipsEndpointRelayStatus, FipsEndpointServiceDatagram, FipsEndpointServiceReceiver,
18    RECENT_PEERS_MAX_ENDPOINTS_PER_PEER, RECENT_PEERS_MAX_PEERS, RECENT_PEERS_VERSION, RecentPeer,
19    RecentPeerEndpoint, RecentPeerTransport, RecentPeers, RecentPeersError, UpdatePeersOutcome,
20};
21pub use fips_core::identity::{
22    FipsAddress, Identity, IdentityError, NodeAddr, PeerIdentity, decode_npub, decode_nsec,
23    decode_secret, encode_npub, encode_nsec,
24};