Expand description
Mesh signaling and transport types compatible with hashtree-ts.
Structs§
- Data
Chunk - Quoted data chunk delivered after payment negotiation.
- Data
Payment - Payment message body for chunk-by-chunk settlement.
- Data
Payment Ack - Payment acknowledgement for quoted chunk settlement.
- Data
Quote Request - Quote request message body
- Data
Quote Response - Quote response message body
- Data
Request - Data request message body
- Data
Response - Data response message body
- HtlPolicy
- HTL policy parameters for a traffic class.
- IceCandidate
- Candidate metadata for transports that use ICE-style negotiation.
- Mesh
Nostr Frame - PeerHTL
Config - Per-peer HTL configuration (Freenet-style probabilistic decrement) Generated once per peer connection, stays fixed for connection lifetime
- PeerId
- Unique identifier for a peer in the network
- Peer
Status - Pool
Config - Settings for a peer pool
- Pool
Settings - Pool settings for both pools
- Request
Dispatch Config - Request dispatch strategy for peer queries.
- Timed
Seen Set - TTL/capacity dedupe structure for forwarded mesh frames/events.
- WebRTC
Config
Enums§
- Data
Message - Parsed data message
- HtlMode
- HTL decrement mode.
- Mesh
Nostr Payload - Peer
Direction - Direction of peer connection.
- Peer
Pool - Peer pool classification
- Peer
State Event - Selection
Strategy - Peer selection strategy
- Signaling
Message - Signaling message types exchanged over mesh signaling transports.
Constants§
- BLOB_
REQUEST_ POLICY - Default policy for blob/content requests.
- DECREMENT_
AT_ MAX_ PROB - Probability to decrement at max HTL (50%)
- DECREMENT_
AT_ MIN_ PROB - Probability to decrement at min HTL=1 (25%)
- HELLO_
TAG - MAX_HTL
- HTL (Hops To Live) constants - Freenet-style probabilistic decrement
- MESH_
DEFAULT_ HTL - MESH_
EVENT_ POLICY - Policy for mesh signaling/event forwarding.
- MESH_
MAX_ HTL - MESH_
PROTOCOL - Relayless mesh protocol constants for forwarding signaling events over data channels.
- MESH_
PROTOCOL_ VERSION - MSG_
TYPE_ CHUNK - MSG_
TYPE_ PAYMENT - MSG_
TYPE_ PAYMENT_ ACK - MSG_
TYPE_ QUOTE_ REQUEST - MSG_
TYPE_ QUOTE_ RESPONSE - MSG_
TYPE_ REQUEST - Message type bytes (prefix before MessagePack body)
- MSG_
TYPE_ RESPONSE - WEBRTC_
KIND - WEBRTC_
TAG
Functions§
- decrement_
htl - decrement_
htl_ with_ policy - Decrement HTL according to policy and per-peer randomness profile.
- encode_
chunk - encode_
message - encode_
payment - encode_
payment_ ack - encode_
quote_ request - encode_
quote_ response - encode_
request - encode_
response - hash_
to_ hex - parse_
message - should_
forward - should_
forward_ htl - Check if a request should be forwarded based on HTL.
- validate_
mesh_ frame