Repository navigation
IVNP v0.10.5
IVNP v0.10.5
IVNP v0.10.5 delivers a full-stack Data-Oriented Design (DOD), memory, GC noscan, and hot-path optimization pass across layers L0 through L9 without custom assembly or new "unsafe" imports, pairs it with adversarial review hardening across all subsystems, and introduces a zero-cron 3-Gate CI architecture (PR CI, Main CI, and Pre-Release CI) backed by offline I2P Golden Wire Vectors, structural invariant guards, a slab lease leak detector, and hermetic local i2pd container interoperability testing.
What changed
Core Primitives, Cryptography, Observability & State (L0 through L3)
- Memory pools, wire framing & cache-line isolation (
internal/{parallelism,pool,packet,wire,relay}): Added architecture-awareCacheLineSizeandCacheLinePad(64 Bon amd64/386/riscv64,128 Bon arm64/ppc64/s390x); alignedinternal/poolto 10 I2P-tuned co-locatedslabNclasses with unpooled backing cleanup on release; compactedpacket.Bufferto56 B; inlinedwire.Cursorbounds; and routedinternal/relaystrictly through pooled16 KiBwiped buffers withoutio.WriterTo/io.ReaderFromstdlib bypasses. - Pure-Go cryptography (
cryptography): Replacedfield25519with unsaturated 5x51-bit radix-2^51 limbs (X255192.5x to 3.5x faster); switchedElligator2encode/decode to single-exponentiationfieldInvSqrt(~5x faster) with stack-onlyGenerateElligator2X25519Raw; madeDecryptElGamalzero-allocation and constant-time across prefix and SHA-256 verification; cached validated ML-KEM-768/1024 handles; added stack-confinedXORChaCha20Stream; and rejected zero-valueX25519PrivateKeyand nil-handleMLKEMPrivateKeyoperations. - Foundation, observability & encrypted state (
foundation,observability,state,interfaces): Hoisted Base32/I2P-Base64 codecs with overlap-safeDecodeI2PBase64ToandDecodedI2PBase64Len, addedcanonicaltracking toMapping.LookupCanonical, switchedCompressRouterInfoto gzip level 6 (~10.7x faster), replaced stop-the-worldReadMemStatsinobservability.RegistrywithTryLock-serializedruntime/metrics.Read(including tiny-object allocations) and zero-allocation Prometheus formatting, and hardenedstatekey validation, truncated policy bounds, exactencodeBundlepreallocation, and 32-bitReadBoundedFilechecks.
Data Plane & Transports (L4)
- Zero-pointer (
noscan) tables and reduced memory footprint (dataplane): Convertedveil.ReplayRing,ntcp2ReplayRing,ssu2RetryLimiter,ssu2SetupPacket,ssu2SentSlot,ecies.inboundTagTable, andtunnel.CircuitToken(16 B) to pointer-free layouts; removed dead1,504 BSSU2 frame scratch and125 KiBgarlic receive scratch; movedtunnel.Runtimeto chunkednoscanslot arenas with 2-slot CASLayerCipherand pooledChaCha8non-DST padding. - Transport and garlic hot paths (
dataplane/internal/{router,transport,garlic,streaming}): Reduced SSU2 header masking from 6 to 2 ChaCha20 calls, added fail-closed per-slot windowing and global Retry token limiting inssu2RetryLimiter, switched VQUICinFlighttracking to a sorted circular deque gated atvquicInFlightMaxCapwith 1-RTT CID refresh and close unregistration, moved ECIES AEAD andNewSessioncrypto off the shard mutex withinFlightdraining andRatchetResult.TagMatched, addedSharedPortMuxdirect-delivery startup drain and async VQUIC workers, convertedstreaming/tunnelpending/reordered/readRingqueues to SoA rings withReleaseSensitivecleanup onClose/Reset/TunnelNetwork.Close, prevented post-migration grace retransmits from misattributing loss to newly activated paths, addedDomainRouteTable.EvictionGen(), detached VTLSReadFramespayloads into wiped pool leases with a4 MiBwrite cap, wiped 64-byte-aligned SHA-256 state innoise, and switched internal transport timers to monotonic epochs.
Control Plane, Client Services, Node & CLI (L5 through L9)
- NetDB, tunnel pools & builders (
controlplane): Rebuiltnetdb.Tableon dense SoA storage with 48 B inlineleaseSlots, bucket-local Kademlia selection,PeerAtEndpoint3-way collision recovery, andHasUsableTransportPeersfallback scanning; movedPeerProfilesto a 32 B inline hot map; switchedtunnel.Poollookups to lock-freepoolViewsnapshots without renewal-window thrashing; added generation-guardedBuildManagershared deadline timer recovery; eliminatedreflectinreplyRouterInfoSeeds; and streamed NetDB persistence undernetdbSaveMu. - Address book, SAM, proxies, node & daemons (
client,node,cmd,gosuda.org/ivnp): Replacedaddressbookstorage with a deduplicatednoscanarena, streamingReadSliceparser, HTTP 304 short-circuit, and v4 disk format with unsigned index bounds; movedMigrationCoordinatorto a flatnoscanslab synchronized withDomainRouteTable.EvictionGen(); madepacketSocket(ReadFromAddr/WriteToAddr/ParseAddr) zero-allocation; added session-sharded SAM UDP workers, pooled detachedbufio.Readers, and pipelined byte preservation inSTREAM ACCEPT; optimizedivnpdWebUI SSE and/api/netdb; and fixedivnp-reseedeviction accounting, O(K log K) coverage gap scoring, single-buffer SU3 packaging, and canceled rate-limiter slot rollbacks.
Zero-Cron 3-Gate CI, Structural Guards & I2P Compatibility Shield
- Event-driven 3-Gate CI (
.github/workflows/ci.yml,.github/workflows/release.yml,docs/testing-and-simulation.md): Promoted full-raceexecution, non-race deterministicAllocsPerRun == 0/noscan/ Golden Wire Vector checks, and-tags leakcheckverification to PR CI; added Main CI gates for 20-seed DST, 3-seed-tags dst -race, and hermetic localpurplei2p/i2pd:release-3.0.0.1Docker container interoperability (scripts/i2pd-local-interop.sh,tests/integration/i2pd_local_interop_test.go); and wired Pre-Release gates (50-seed DST, parallel 10x30s fuzzing, OS-socket-race -count=5stress, nativedarwin/arm64, and 1-retry live I2P smoke) ahead of SLSA v1.0 Build Level 2 release builds with zero cron workflows. - Structural bug & compatibility shields: Added the zero-overhead
-tags leakcheckslab lease leak detector (internal/pool.ActiveLeases), 5 differential oracle suites (includingstreaming/tunneluint320xFFFFFFF0 -> 0x00000010wraparound), 5 stateful property suites, 17 deterministicZeroAllocGuardandNoScanLayoutGuardsuites, and 9-package offline Golden Wire Vector fixtures (testdata/vectors/*.json) covering NTCP2, SSU2, ECIES + ML-KEM-768/1024, NetDB/ELS2, Reseed SU3, STBM/VTBM, Tunnel 1024B/1028B framing, Streaming, and Datagrams.
Downloads
Each binary archive contains the self-contained static ivnpd binary (including the embedded WebUI), LICENSE, and README.md.
| Artifact | Target platform | Microarchitecture baseline |
|---|---|---|
ivnpd-v0.10.5-linux-amd64.tar.gz |
Linux (x86_64) |
GOAMD64=v2 |
ivnpd-v0.10.5-linux-arm64.tar.gz |
Linux (arm64) |
GOARM64=v8.0 |
ivnpd-v0.10.5-darwin-amd64.tar.gz |
macOS Intel (x86_64) |
GOAMD64=v1 |
ivnpd-v0.10.5-darwin-arm64.tar.gz |
macOS Apple Silicon (arm64) |
GOARM64=v8.4 |
ivnpd-v0.10.5-windows-amd64.zip |
Windows (x86_64) |
GOAMD64=v2 |
ivnpd-v0.10.5-windows-arm64.zip |
Windows (arm64) |
GOARM64=v8.1 |
SHA256SUMS |
Checksum manifest | SHA-256 digests for all release archives |
ivnpd-v0.10.5.sigstore.json |
Offline Sigstore bundle | SLSA v1.0 Build Level 2 provenance for all archives and SHA256SUMS |
Reproducible build and checksum verification
Verify downloaded archives against SHA256SUMS:
sha256sum -c SHA256SUMS --ignore-missing
# On macOS:
grep ' ivnpd-v0.10.5-darwin-arm64.tar.gz$' SHA256SUMS | shasum -a 256 -c -Reproduce any target binary locally from tag v0.10.5 using the pinned Go toolchain in go.mod:
git checkout v0.10.5
GOOS=linux GOARCH=amd64 ./scripts/repro-build.sh ./dist/ivnpd ./cmd/ivnpdFull Changelog: v0.10.4...v0.10.5
Container images (GHCR, multi-arch linux/amd64 + linux/arm64)
| Image | Pinned digest | SLSA v1.0 L2 attestation |
|---|---|---|
ghcr.io/gosuda/ivnpd:v0.10.5 |
sha256:16c1d186051621ca0908722f31be24b594c477255f9fdaf68096e58c6d3feb2c |
https://github.com/gosuda/IVNP/attestations/74952586 |
ghcr.io/gosuda/ivnp-reseed:v0.10.5 |
sha256:724ad04d37f7e93d20c2e2811439fa4ed63d4781da156867ec58ac78688b8304 |
https://github.com/gosuda/IVNP/attestations/74952615 |
Verify GHCR OCI image provenance before deploying:
gh attestation verify oci://ghcr.io/gosuda/ivnpd@sha256:16c1d186051621ca0908722f31be24b594c477255f9fdaf68096e58c6d3feb2c \
--repo gosuda/IVNP \
--signer-workflow gosuda/IVNP/.github/workflows/release.yml \
--source-ref refs/tags/v0.10.5 \
--deny-self-hosted-runnersBuild provenance attestation
GitHub Actions generated SLSA v1.0 Build Level 2 provenance for every release archive, SHA256SUMS, and GHCR OCI container image on GitHub-hosted runners.
- Release archive attestation record: https://github.com/gosuda/IVNP/attestations/74952759
- All repository attestations: https://github.com/gosuda/IVNP/attestations
- Offline Sigstore bundle:
ivnpd-v0.10.5.sigstore.json
Verify release archives online against GitHub attestations or offline with the attached Sigstore bundle:
gh attestation verify ivnpd-v0.10.5-linux-amd64.tar.gz \
--bundle ivnpd-v0.10.5.sigstore.json \
--repo gosuda/IVNP \
--signer-workflow gosuda/IVNP/.github/workflows/release.yml \
--source-ref refs/tags/v0.10.5 \
--deny-self-hosted-runners