Skip to main content

Module webrtc

Module webrtc 

Source
Expand description

Native mesh connectivity for hashtree data exchange.

The default negotiated path is Nostr signaling plus WebRTC data channels, but this module also layers in nearby/offline transports such as Bluetooth, multicast, and Wi-Fi Aware around the same mesh state and routing logic.

Re-exports§

pub use types::encode_request;

Modules§

types
Mesh signaling and transport types compatible with hashtree-ts.

Structs§

BluetoothConfig
Configuration for the optional Bluetooth peer transport.
BluetoothMesh
Native Bluetooth backend. Nearby BLE links become transport-native mesh peers.
BluetoothPeer
CashuMintMetadataStore
CashuRoutingConfig
DataRequest
Data request message body
MulticastConfig
MulticastNostrBus
Peer
WebRTC peer connection with data channel protocol
PeerId
Unique identifier for a peer in the network
PeerRootEvent
PendingBluetoothLink
PendingRequest
Pending request tracking (keyed by hash hex)
PoolConfig
Settings for a peer pool
PoolSettings
Pool settings for both pools
RequestDispatchConfig
Request dispatch strategy for peer queries.
WebRTCConfig
WebRTCManager
Native mesh manager handles peer discovery and transport fan-out.
WebRTCState
Shared state for the native mesh router.
WifiAwareConfig
WifiAwareNostrBus

Enums§

BluetoothBackendState
BluetoothFrame
ConnectionState
Connection state for a peer.
DataMessage
Parsed data message
MeshPeer
PeerDirection
Direction of peer connection.
PeerPool
Peer pool classification
PeerSignalPath
Signaling/discovery path through which a peer was seen.
PeerTransport
Active data transport used for a peer session.
SelectionStrategy
Peer selection strategy
SignalingMessage
Signaling message types exchanged over mesh signaling transports.
WifiAwareEvent

Constants§

MAX_HTL
HTL (Hops To Live) constants - Freenet-style probabilistic decrement

Traits§

BluetoothLink
ContentStore
Trait for content storage that can be used by WebRTC peers
LocalNostrBus
MobileBluetoothBridge
MobileWifiAwareBridge

Functions§

cashu_mint_metadata_path
install_mobile_bluetooth_bridge
install_mobile_wifi_aware_bridge

Type Aliases§

PeerClassifier
Callback type for classifying peers into pools
PeerEntry
SharedLocalNostrBus