No description
Find a file
Snider 29907720aa
Some checks failed
Security Scan / security (push) Has been cancelled
Test / test (push) Has been cancelled
chore: add EUPL-1.2 LICENCE file (UK English canonical)
Reference: core/api/LICENCE.

Co-Authored-By: Cladius Maximus <cladius@lethean.io>
2026-05-01 08:34:37 +01:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:37 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:08 +00:00
.idea chore: migrate Snider deps from github.com to forge.lthn.ai 2026-02-22 21:42:39 +00:00
docs refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
external refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
go refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
KB@4dcd7ea9fe test: add UEPS wire protocol tests (Phase 1) — 0% to 88.5% coverage 2026-02-19 23:44:09 +00:00
tests/cli/p2p refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
.editorconfig chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:43 +00:00
.gitignore refactor(node): migrate module path to dappco.re/go/core/p2p 2026-03-22 02:06:51 +00:00
.gitmodules refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
.golangci.yml chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:43 +00:00
.woodpecker.yml refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
AGENTS.md refactor(core): align go-p2p with hardened core/go reference shape 2026-04-29 04:59:12 +01:00
CLAUDE.md refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
CONTRIBUTING.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:43 +00:00
go.work refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
LICENCE chore: add EUPL-1.2 LICENCE file (UK English canonical) 2026-05-01 08:34:37 +01:00
README.md refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1242) 2026-05-01 04:38:54 +01:00
SESSION-BRIEF.md docs: add session brief for expert agent work 2026-02-19 17:39:03 +00:00
sonar-project.properties ci: woodpecker pipeline (Go) — golangci-lint/eslint/phpstan + sonar.lthn.sh 2026-04-28 23:33:29 +01:00

Go Reference License: EUPL-1.2 Go Version

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: dappco.re/go/p2p Licence: EUPL-1.2 Language: Go 1.26.2

Quick Start

import (
    "dappco.re/go/p2p/node"
    "dappco.re/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

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

Licence

European Union Public Licence 1.2 — see LICENCE for details.