zeekay
c649ce7600
fix: remove postgres/valkey/legacy mode — consensus+ZapDB only
...
- Removed --mode, --api-db, --api-kv, --db flags
- Removed legacy NATS/Consul transport (runNode, ~200 lines)
- Removed standalone API server (runAPIOnly, ~200 lines)
- Removed Consul helpers, NATS connection, interactive prompts
- Dashboard now uses ZapDB (SQLite) instead of postgres
- pkg/db: removed postgres backend, removed valkey client
- Consensus mode is the only mode. Zero external deps.
2026-04-13 04:14:40 -07:00
zeekay
a64857b126
fix: /healthz only — removed legacy health endpoints
2026-04-09 18:31:27 -07:00
zeekay
8db27083a8
chore: go.work.sum update
2026-04-07 22:19:06 -07:00
zeekay
2d1d5afbc7
fix: remove /api/ prefix from all routes — use /v1/ only
...
Subdomain routing (mpc.lux.network/v1/) not path prefix (/api/v1/).
Updated: server routes, KMS routes, main.go forwarding, compose,
K8s dashboard config, ingressroute, landing page HTML.
2026-04-07 00:01:47 -07:00
zeekay
c45ca1bf55
fix: remove duplicate bridge watchers, expose Handler for Base mount
...
- Remove pkg/bridge/ (btc_watcher + orchestrator) — bridge/opnet-watcher
is the single source of truth for chain watching per CTO directive
- Add Handler() to API server for mounting on Hanzo Base
- MPC is signing-only; bridge is the control plane
2026-04-06 23:07:25 -07:00
zeekay
1a368e0da8
chore: update all dependencies
...
Go: 98 deps updated including crypto v1.17.45, threshold v1.6.0,
otel v1.42.0, cbor v2.9.1, samber/lo v1.53.0, urfave/cli v3.8.0.
Excluded luxfi/log v1.3.0 (broken module path declaration).
Makefile: add -tags json1 + CGO_ENABLED=1 for SQLite JSON support.
Dashboard: next 15.3.3, react 19.2.4, zustand 5.0.12,
tanstack/react-query 5.96.1, typescript 6.0.2, playwright 1.59.0.
Pinned eslint to v9 (v10 has peer dep conflicts with next eslint plugins).
Pinned tailwindcss to v3 (v4 requires postcss migration).
19/19 packages pass, dashboard builds clean.
2026-04-01 09:11:20 -07:00
zeekay
87291931e7
fix: remove hsm from go.work (fixes CI, use 'go work use ../hsm' locally)
2026-03-22 12:41:38 -07:00
zeekay
c7f126adbf
feat: BLS threshold + security hardening + ZapDB KMS-backing
...
Security (from red team review):
- Replay protection: request_id + timestamp freshness on sign API
- Ed25519 message auth re-enabled on all protocol messages
- DKG timeout (5min) + signing timeout (30s) with watchdog
- Dedup map TTL cleanup (10min expiry, 2min sweep)
BLS threshold signing:
- KeyTypeBLS + keygen/signing sessions
- TrustedDealer pattern for BLS DKG
- CBOR serialization for BLS config
- 8 tests
ZapDB KMS-backing:
- HSM PasswordProvider wired to ZapDB init
- Supports: AWS KMS, GCP KMS, Azure KV, env, file
- Default env for backward compat
- 19 tests
Also: sr25519 sessions, fixed SignWireMessage build break
2026-03-19 01:15:33 -07:00
zeekay
3343f2b01d
deps: update golang.org/x/crypto, x/net, x/sys to latest
2026-03-18 14:15:21 -07:00
zeekay
8b66b6ffd9
feat: sr25519 threshold signing for Polkadot/Substrate
...
MPC daemon now supports sr25519 (Schnorrkel) key generation and
threshold signing using FROST over the ristretto255 group.
New files:
- pkg/mpc/sr25519_keygen_session.go — threshold keygen
- pkg/mpc/sr25519_signing_session.go — threshold signing
- pkg/mpc/sr25519_config_marshal.go — CBOR serialization
- pkg/mpc/ristretto255.go — local curve implementation
- pkg/eventconsumer/signing_handler_sr25519.go — event routing
Wiring:
- KeyTypeSR25519 constant + session type
- Event consumer routes sr25519 keygen/signing events
- API accepts "sr25519" as valid protocol
- DOT/KSM network codes mapped to sr25519 key type
- Signing context configurable (default "substrate")
14 tests passing.
2026-03-18 14:09:08 -07:00
zeekay
0797af0cfc
feat(api): add landing page to dashboard API
...
Add HTML landing page at / route for mpc.lux.network showing:
- CGGMP21 and FROST protocol info
- Supported chains (BTC, ETH, LUX, SOL, XRPL, TON, etc.)
- Links to health, bridge dashboard, and API docs
Also update go.work to Go 1.26.1.
2026-02-28 15:22:57 -08:00
zeekay
f9a699424a
chore: gitignore test artifacts, add go.work.sum
2026-02-21 08:47:56 -08:00