No description
Find a file
Claude df56e7569e
chore: migrate Snider deps from github.com to forge.lthn.ai
Update Borg, Poindexter, and Enchantrix dependency paths from
github.com/Snider/ to forge.lthn.ai/Snider/ across go.mod and imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:42:39 +00:00
.idea chore: migrate Snider deps from github.com to forge.lthn.ai 2026-02-22 21:42:39 +00:00
docs docs: graduate TODO/FINDINGS into production documentation 2026-02-20 15:01:55 +00:00
KB@4dcd7ea9fe test: add UEPS wire protocol tests (Phase 1) — 0% to 88.5% coverage 2026-02-19 23:44:09 +00:00
logging refactor: apply go fix modernizers for Go 1.26 2026-02-22 21:00:16 +00:00
node chore: migrate Snider deps from github.com to forge.lthn.ai 2026-02-22 21:42:39 +00:00
ueps test: Phase 5 — integration tests, benchmarks, bufpool tests 2026-02-20 06:09:21 +00:00
CLAUDE.md docs: graduate TODO/FINDINGS into production documentation 2026-02-20 15:01:55 +00:00
go.mod chore: migrate Snider deps from github.com to forge.lthn.ai 2026-02-22 21:42:39 +00:00
go.sum chore: migrate Snider deps from github.com to forge.lthn.ai 2026-02-22 21:42:39 +00:00
README.md docs: add README with quick start and docs links 2026-02-20 15:11:19 +00:00
SESSION-BRIEF.md docs: add session brief for expert agent work 2026-02-19 17:39:03 +00:00

go-p2p

P2P mesh networking layer for the Lethean network. Provides Ed25519 node identity, an encrypted WebSocket transport with HMAC-SHA256 challenge-response handshake, KD-tree peer selection across four dimensions (latency, hops, geography, reliability score), UEPS wire protocol (RFC-021) TLV packet builder and reader, UEPS intent routing with a threat circuit breaker, and TIM deployment bundle encryption with Zip Slip and decompression-bomb defences.

Module: forge.lthn.ai/core/go-p2p Licence: EUPL-1.2 Language: Go 1.25

Quick Start

import (
    "forge.lthn.ai/core/go-p2p/node"
    "forge.lthn.ai/core/go-p2p/ueps"
)

// Start a P2P node
identity, _ := node.LoadOrCreateIdentity()
transport := node.NewTransport(identity, node.TransportConfig{ListenAddr: ":9091"})
transport.Start(ctx)

// Build a UEPS packet
pkt, _ := ueps.NewBuilder(ueps.IntentCompute, payload).MarshalAndSign(sharedSecret)

Documentation

Build & Test

go test ./...
go test -race ./...
go test -short ./...   # skip integration tests
go build ./...

Licence

European Union Public Licence 1.2 — see LICENCE for details.