Skip to content

Feature/remote validators - #3

Merged
SYMBAxx merged 2 commits into
mainfrom
feature/remote-validators
Nov 6, 2026
Merged

SYMBAxx merged 2 commits into
mainfrom
feature/remote-validators

Conversation

@SYMBAxx

@SYMBAxx SYMBAxx commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Each validator can run as its own process, holding one key share and an identity key behind an authenticated HTTP API (npm run validators:dev starts 5).
  • The coordinator is treated as hostile: all DKG messages are signed and session-bound, so transport-key swaps, forged complaints, dropped-message share harvesting, tampering, replays and re-keying are all blocked.
  • The backend runs the DKG over HTTP on first start, reuses shares on restart, and tolerates up to n−t validators being down.

Verified

  • 5 real validator processes: the DKG ran over HTTP, and a signed-in client's order was decrypted and settled.
  • With 2 validators killed and the backend restarted: same key, order still settled.
  • 55 backend tests, including 7 malicious-coordinator and 6 remote-validator tests.

Still trusted (documented)

Validators don't yet check on-chain that a batch is sealed before releasing shares. That's next: committing ciphertext hashes on-chain.

- Standalone validator process (src/validator/main.ts): one key share plus
  an ed25519 identity key, behind a bearer-token HTTP API. RemoteValidator
  implements the same ValidatorNode interface as the in-process
  LocalValidator.
- The DKG coordinator is treated as hostile: every DKG message is signed
  by its sender and session-bound. Dealers refuse to deal on a missing or
  forged transport key, forged complaints are ignored, and a missing share
  aborts instead of triggering a public reveal. Validators sign the result
  with a transcript hash, and the coordinator aborts on any mismatch.
- Validators refuse to re-key while holding a share.
- The backend connects via VALIDATOR_CLUSTER_FILE: it runs the DKG over
  HTTP on first start, reuses shares afterwards, and tolerates up to n-t
  unreachable validators.
- npm run validators:dev starts a local 5-process cluster.
- data/ is now fully gitignored (shares, identities, API tokens).

New tests: 7 malicious-coordinator DKG tests, and 6 remote-validator tests
over real HTTP (DKG, settlement, auth, n-t down, below-t failure). 55
backend tests pass.
…ng trust

Document how to run validators as separate processes, list each
coordinator attack with its defence, and state precisely what is still
trusted: validators don't yet verify on-chain batch sealing before
releasing shares, and validators are run by one party. Contributor issues
updated: Docker Compose + TLS deployment, and on-chain ciphertext
commitments checked by validators.
@SYMBAxx
SYMBAxx merged commit 270daee into main Nov 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant