60ddf3daf8
horizon-friends: codes (Crockford base32, nameplate + secret), the relay's JSON-line protocol, SPAKE2 then ChaCha20-Poly1305 frames keyed off the code's secret, direct connections (candidates, TCP simultaneous open from a reuse-port socket) with the relay as fallback, and the host and guest ends that carry the game's TCP stream between loopback ports. horizon-relay: the service (codes, rendezvous, byte relay, rate limits, bandwidth caps, idle timeouts, counts only), its Dockerfile and Railway config. Nothing is deployed and nothing in the game uses it yet. Design: docs/play-with-friends.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
471 B
TOML
20 lines
471 B
TOML
[package]
|
|
name = "horizon-relay"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Play with friends' relay: hands out invite codes, introduces hosts and guests, relays the encrypted stream when a direct connection fails"
|
|
|
|
[dependencies]
|
|
horizon-friends = { path = "../horizon-friends" }
|
|
getrandom = "0.3"
|
|
serde_json = "1.0.151"
|
|
|
|
[[bin]]
|
|
name = "horizon-relay"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|