feat: add public I2P network mode to router daemon
check / check (ubuntu-latest) (push) Failing after 26s
check / check (macos-latest) (push) Failing after 28s
check / check (windows-latest) (push) Failing after 29s

- Add `--public`, `--hops`, `--hosts`, and `--debug` router flags; `--public` auto-reseeds from the live network and keeps a status loop running.
- Route NetDB lookups through tunnels with Noise_N garlic wrapping, fan out to two floodfills, and fetch unknown RouterInfos in the background.
- Back off failed NTCP2 peers and fall back to IPv6 addresses when no IPv4 NTCP2 address is available.
- Size session LeaseSet2 expiry from lease end dates and use the destination's X25519 key when present.
- Add canonical Ed25519 Destination KeyCertificate constructors with round-trip tests.
- Fix DatabaseStore gzip handling to honor the length prefix, and send `Wget/1.11.4` as the reseed User-Agent.
This commit is contained in:
nandi committed 2026-11-28 00:11:28 -08:00
1 parent ae72b00323
commit 54cfb2faa9
25 files changed
+2033 -191

No files matched your search

+6
View File
@@ -21,6 +21,8 @@ pub fn decrypt_new_session(@noise.KeyPair, Bytes) -> (Array[RatchetBlock], Pendi
pub fn decrypt_new_session_reply(@noise.KeyPair, PendingNewSession, Bytes) -> (Array[RatchetBlock], RatchetPeerSession) raise RatchetError
pub fn decrypt_router_garlic(@noise.KeyPair, Bytes) -> Array[RatchetBlock] raise RatchetError
pub fn dh_initialize(Bytes, Bytes) -> (Bytes, TagSet) raise RatchetError
pub let ecies_protocol_name : Bytes
@@ -33,10 +35,14 @@ pub fn encrypt_new_session(@noise.KeyPair?, Bytes, ElligatorKeyPair, Array[Ratch
pub fn encrypt_new_session_reply(PendingNewSession, ElligatorKeyPair, Array[RatchetBlock]) -> (Bytes, RatchetPeerSession) raise RatchetError
pub fn encrypt_router_garlic(Bytes, @noise.KeyPair, Array[RatchetBlock]) -> Bytes raise RatchetError
pub fn garlic_clove_block(GarlicDelivery, UInt32, UInt32, @i2np.I2npPayload) -> RatchetBlock raise RatchetError
pub fn generate_elligator_keypair(() -> Bytes) -> ElligatorKeyPair raise RatchetError
pub let router_garlic_protocol_name : Bytes
// Errors
#derive(Eq, @debug.Debug)
pub suberror RatchetError {