feat: add ratchet, streaming, SU3 reseed, and router floodfill
check / check (windows-latest) (push) Failing after 27s
check / check (ubuntu-latest) (push) Failing after 29s
check / check (macos-latest) (push) Failing after 27s

- Add ratchet/ with ECIES-X25519-AEAD-Ratchet (Proposal 144), Garlic cloves, and ECIES DatabaseLookup replies
- Add streaming/ with Ed25519-signed I2P Streaming (SYN/ACK/NACK/CLOSE/RESET, retransmit, window) and Repliable/Raw Datagrams
- Add common/su3.mbt to parse and verify reseed .su3 bundles
- Add Elligator2 encoding in crypto/ and OfflineSignature support in LeaseSet2 (flags bit 0)
- Router: NTCP2 peer pool, floodfill NetDB crawl, transit tunnel relay, and Garlic/Streaming bridge
- cmd/router: add --peer-dir, --su3, --reseed, --floodfill, --no-clock-skew
- cmd/client: add --dest for persistent destination keys
- Mark Phase 6 complete in README and document the transport scope (NTCP2 only, no SSU2)
This commit is contained in:
nandi committed 2026-11-27 22:23:46 -08:00
1 parent 8eafa11b22
commit ae72b00323
54 files changed
+9607 -704

No files matched your search

+30
View File
@@ -8,6 +8,7 @@ import {
}
// Values
pub fn parse_reseed_su3(Bytes) -> Array[RouterInfo] raise CommonError
// Errors
#derive(Eq, @debug.Debug)
@@ -121,6 +122,7 @@ pub(all) struct LeaseSet2 {
published_sec : UInt32
expires_offset : UInt32
flags : UInt32
offline_sig : OfflineSignature?
options : Mapping
encryption_keys : Array[LeaseSet2EncryptionKey]
leases : Array[Lease2]
@@ -129,6 +131,7 @@ pub(all) struct LeaseSet2 {
pub fn LeaseSet2::decode(@encoding.Reader) -> Self raise CommonError
pub fn LeaseSet2::encode(Self, @encoding.Writer) -> Unit raise CommonError
pub fn LeaseSet2::sign_ed25519(Self, Bytes) -> Self raise CommonError
pub fn LeaseSet2::sign_with_transient_ed25519(Self, Bytes) -> Self raise CommonError
pub fn LeaseSet2::signing_bytes(Self) -> Bytes raise CommonError
pub fn LeaseSet2::to_bytes(Self) -> Bytes raise CommonError
pub fn LeaseSet2::unsigned_bytes(Self) -> Bytes raise CommonError
@@ -152,6 +155,19 @@ pub fn Mapping::length(Self) -> Int32
pub fn Mapping::new() -> Self
pub fn Mapping::set(Self, String, String) -> Unit
#derive(Eq, @debug.Debug)
pub(all) struct OfflineSignature {
expires_sec : UInt32
transient_sig_type : SigningPublicKeyType
transient_pub_key : Bytes
signature : Bytes
}
pub fn OfflineSignature::decode(@encoding.Reader, SigningPublicKeyType) -> Self raise CommonError
pub fn OfflineSignature::encode(Self, @encoding.Writer) -> Unit
pub fn OfflineSignature::sign_ed25519(Self, Bytes) -> Self raise CommonError
pub fn OfflineSignature::unsigned_bytes(Self) -> Bytes
pub fn OfflineSignature::verify_ed25519(Self, Bytes) -> Bool
#derive(Eq, @debug.Debug)
pub(all) struct RouterAddress {
cost : Byte
@@ -224,6 +240,20 @@ pub fn SigningPublicKeyType::public_key_length(Self) -> Int32
pub fn SigningPublicKeyType::signature_length(Self) -> Int32
pub fn SigningPublicKeyType::to_u16(Self) -> UInt32
#derive(Eq, @debug.Debug)
pub(all) struct Su3File {
format_version : Byte
sig_type : UInt32
version : String
signer_id : String
file_type : Byte
content_type : Byte
content : Bytes
signature : Bytes
signed_bytes_len : Int32
}
pub fn Su3File::decode(Bytes) -> Self raise CommonError
// Type aliases
// Traits