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

+2
View File
@@ -56,6 +56,7 @@ pub fn Destination::encode(Self, @encoding.Writer) -> Unit
pub fn Destination::from_base64(String) -> Self raise CommonError
pub fn Destination::hash(Self) -> Hash
pub fn Destination::new(KeysAndCert) -> Self
pub fn Destination::new_ed25519(Bytes, padding? : Bytes) -> Self raise CommonError
pub fn Destination::new_x25519_ed25519(Bytes, Bytes, padding? : Bytes) -> Self raise CommonError
pub fn Destination::to_base64(Self) -> String
pub fn Destination::to_bytes(Self) -> Bytes
@@ -93,6 +94,7 @@ pub fn KeysAndCert::crypto_type(Self) -> CryptoPublicKeyType
pub fn KeysAndCert::decode(@encoding.Reader) -> Self raise CommonError
pub fn KeysAndCert::encode(Self, @encoding.Writer) -> Unit
pub fn KeysAndCert::hash(Self) -> Hash
pub fn KeysAndCert::new_destination_ed25519(Bytes, padding? : Bytes) -> Self raise CommonError
pub fn KeysAndCert::new_x25519_ed25519(Bytes, Bytes, padding? : Bytes) -> Self raise CommonError
pub fn KeysAndCert::signing_public_key(Self) -> Bytes
pub fn KeysAndCert::signing_type(Self) -> SigningPublicKeyType