Initial commit: waste-go skeleton

Ed25519/X25519/ChaCha20-Poly1305 crypto, peer handshake, mesh state,
IPC server, relay server, and NAT stub. Builds clean on Go 1.22+.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Fredrik Johansson
2026-06-21 16:14:07 +02:00
commit b3a4af15ca
16 changed files with 1566 additions and 0 deletions

55
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,55 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "daemon (peer A)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/daemon",
"args": [
"-alias", "peer-a",
"-data-dir", "/tmp/waste-a",
"-peer-port", "17338",
"-ipc-port", "17337"
],
"env": { "WASTE_LOG": "debug" }
},
{
"name": "daemon (peer B)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/daemon",
"args": [
"-alias", "peer-b",
"-data-dir", "/tmp/waste-b",
"-peer-port", "17340",
"-ipc-port", "17341"
],
"env": { "WASTE_LOG": "debug" }
},
{
"name": "relay (local)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/relay",
"args": ["-bind", "127.0.0.1:17339"]
},
{
"name": "daemon (with relay)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/daemon",
"args": [
"-alias", "peer-a",
"-data-dir", "/tmp/waste-a",
"-peer-port", "17338",
"-ipc-port", "17337",
"-relay", "127.0.0.1:17339"
]
}
]
}