Skip to content

feat(sync): Add signed packet attestations (T-438) - #379

Merged
harshsinghmp merged 1 commit into
devfrom
feat/T-438-attestation
Nov 9, 2026
Merged

harshsinghmp merged 1 commit into
devfrom
feat/T-438-attestation

Conversation

@harshsinghmp

Copy link
Copy Markdown
Owner

Ed25519 attestations over canonical packet hashes with tamper-evident chains; CLI keygen/sign/verify. Gate 1510/0.

Why: Client handoffs need tamper-evident proof without shipping the
memory body.

What:
- src/sync/attestation.ts: canonical JSON hashing, Ed25519 signing of the
  hash, chain hashes, verification and chain-order validation.
- src/cli/attest.ts + CLI: keygen (0600 private key), sign, verify.
- test/attestation.test.ts: sign/verify, tamper rejection, chain reorder,
  canonical key order.

Verification: bun test 1510 pass / 0 fail; tsc clean; build 434 modules.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@harshsinghmp
harshsinghmp merged commit 4558018 into dev Nov 9, 2026
@harshsinghmp
harshsinghmp deleted the feat/T-438-attestation branch November 9, 2026 12:13
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