Files
moon-i2p/netdb/pkg.generated.mbti
T
nandi ae72b00323
check / check (windows-latest) (push) Failing after 27s
check / check (ubuntu-latest) (push) Failing after 29s
check / check (macos-latest) (push) Failing after 27s
feat: add ratchet, streaming, SU3 reseed, and router floodfill
- 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)
2026-11-27 22:23:46 -08:00

52 lines
1.8 KiB
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "experiments/moon_i2p/netdb"
import {
"experiments/moon_i2p/common",
"experiments/moon_i2p/i2np",
"moonbitlang/core/debug",
}
// Values
pub fn compare_distance(Bytes, Bytes) -> Int32
pub fn encode_router_info_store_data(@common.RouterInfo) -> Bytes raise NetDbError
pub fn format_utc_date(UInt64) -> String
pub fn is_floodfill(@common.RouterInfo) -> Bool
pub fn routing_key(@common.Hash, String) -> @common.Hash
pub fn xor_distance(@common.Hash, @common.Hash) -> Bytes
// Errors
#derive(Eq, @debug.Debug)
pub suberror NetDbError {
Common(@common.CommonError)
InvalidSignature(String)
InvalidRecord(String)
}
// Types and methods
pub struct NetDb {
routers : Array[(@common.Hash, @common.RouterInfo)]
leasesets : Array[(@common.Hash, @common.LeaseSet2)]
}
pub fn NetDb::closest_peers(Self, @common.Hash, String, Int32, floodfills_only? : Bool, excluded? : Array[@common.Hash]) -> Array[@common.RouterInfo]
pub fn NetDb::get_lease_set2(Self, @common.Hash, UInt32) -> @common.LeaseSet2?
pub fn NetDb::get_lease_set2_by_b32(Self, String, UInt32) -> @common.LeaseSet2?
pub fn NetDb::get_router_info(Self, @common.Hash) -> @common.RouterInfo?
pub fn NetDb::handle_database_lookup(Self, @common.Hash, @common.Hash, Byte, Array[@common.Hash], UInt32, max_peers? : Int32) -> @i2np.I2npPayload raise NetDbError
pub fn NetDb::handle_database_store(Self, Byte, @common.Hash, Bytes, UInt32) -> Bool raise NetDbError
pub fn NetDb::leaseset_count(Self) -> Int32
pub fn NetDb::new() -> Self
pub fn NetDb::prune_expired(Self, UInt32) -> Int32
pub fn NetDb::router_count(Self) -> Int32
pub fn NetDb::store_lease_set2(Self, @common.LeaseSet2, UInt32) -> Bool raise NetDbError
pub fn NetDb::store_router_info(Self, @common.RouterInfo) -> Bool raise NetDbError
// Type aliases
// Traits