Expand description
Native peer-to-peer connectivity for hashtree data exchange
Uses Nostr relays for signaling with the same protocol as iris-client:
- Event kind: 30078 (KIND_APP_DATA)
- Tag: [“l”, “webrtc”]
- Message types: hello, offer, answer, candidate
Re-exports§
pub use types::encode_request;pub use types::DataMessage;pub use types::DataRequest;pub use types::PeerDirection;pub use types::PeerId;pub use types::PeerRouterConfig;pub use types::WebRTCConfig;
Modules§
- types
- WebRTC signaling types compatible with iris-client and hashtree-ts
Structs§
- Bluetooth
Config - Configuration for the optional Bluetooth peer transport.
- Bluetooth
Mesh - Native Bluetooth backend. Nearby BLE links become transport-native mesh peers.
- Bluetooth
Peer - Cashu
Mint Metadata Store - Cashu
Routing Config - Multicast
Config - Multicast
Nostr Bus - Peer
- WebRTC peer connection with data channel protocol
- Peer
Entry - Peer entry in the manager
- Peer
Root Event - Pending
Bluetooth Link - Pending
Request - Pending request tracking (keyed by hash hex)
- Pool
Config - Settings for a peer pool
- Pool
Settings - Pool settings for both pools
- Request
Dispatch Config - Request dispatch strategy for peer queries.
- WebRTC
Manager - Native peer router handles peer discovery and transport fan-out.
- WebRTC
State - Shared state for the native mesh router.
- Wifi
Aware Config - Wifi
Aware Nostr Bus
Enums§
- Bluetooth
Backend State - Bluetooth
Frame - Connection
State - Connection state for a peer
- Mesh
Peer - Peer
Pool - Peer pool classification
- Peer
Signal Path - Signaling/discovery path through which a peer was seen.
- Peer
Transport - Active data transport used for a peer session.
- Selection
Strategy - Peer selection strategy
- Signaling
Message - Signaling message types exchanged over mesh signaling transports.
- Wifi
Aware Event
Constants§
- MAX_HTL
- HTL (Hops To Live) constants - Freenet-style probabilistic decrement
Traits§
- Bluetooth
Link - Content
Store - Trait for content storage that can be used by WebRTC peers
- Local
Nostr Bus - Mobile
Bluetooth Bridge - Mobile
Wifi Aware Bridge
Functions§
Type Aliases§
- Peer
Classifier - Callback type for classifying peers into pools
- Peer
Router - Peer
Router State - Shared
Local Nostr Bus