Files
Shade/test-vectors/ratchet-step.json
Sterister e6fdf31b49
Some checks failed
Test / test (push) Has been cancelled
Cross-platform vectors / TypeScript vectors (bun) (push) Has been cancelled
Cross-platform vectors / Kotlin vectors (gradle) (push) Has been cancelled
Docker build and publish / docker (push) Has been cancelled
Publish / publish (push) Has been cancelled
release(v4.0.0): Shade GA — V3.x consolidation + audit prep
V3.1 → V3.12 consolidated and tagged for the first GA release. Wire
format unchanged from 0.4.x — 4.0 peers interoperate with 0.4.x peers
byte-for-byte. The version bump is semantic: audit-cycle complete,
opt-in surface fully exposed, threat model refreshed for every new
surface.

Highlights:
- All 24 @shade/* packages bumped to 4.0.0 in lockstep.
- CHANGELOG 4.0.0 section is the canonical manifest of what landed.
- THREAT-MODEL extended (§10 fingerprint gates, §11 WebRTC P2P, §12
  Web-Worker boundary) + residual-risks table refreshed.
- OpenAPI now covers all 27 routes: prekey, transfer, KT, inbox,
  bridge, observer, /metrics, /healthz, /ready.
- MIGRATION 0.3.x → 4.0 documented + smoke-tested against
  shade migrate-storage on a real SQLite DB.
- docs/audit/REVIEW-BUNDLE.md + SCOPE.md ready for external reviewer.
- scripts/soak.ts harness for the GA-stable 2-week soak window.
- All V*.md plans archived under docs/archive/ with Status: Done.
- Voice/Video carved out into V5.0; 4.0 audit focuses on the frozen
  non-realtime stack.

Tests: TS 1000/1000 + Kotlin 11/11 cross-platform vectors green.
Docker: gt.zyon.no/stian/shade-prekey:4.0.0 builds and reports
  version 4.0.0 on /health.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 18:35:35 +02:00

28 lines
1.4 KiB
JSON

{
"version": 2,
"vectors": [
{
"description": "Ratchet step: deterministic encrypt (kdfRootKey + kdfChainKey + AES-GCM with fixed nonce)",
"inputs": {
"rootKey": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"dhSendPrivateKey": "b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2",
"dhSendPublicKey": "b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3",
"dhRemotePublicKey": "c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4",
"previousCounter": 2,
"counter": 0,
"plaintext": "5368616465207261746368657420726f756e647472697020766563746f72207631",
"nonce": "5e5e5e5e5e5e5e5e5e5e5e5e"
},
"derived": {
"dhOutput": "e68094b458c45f0f179bb4fb662f6e705b92d27be634632314080027faf53d17",
"newRootKey": "ebfa04f9adcb4821c7c3468186973ce69ace5669cd4017a85fd1b38b8662a6ec",
"chainKey": "b546ecd7e160947d022da8f0f4b3c898d2c5798e935ef731533d0ffabe67ee80",
"newChainKey": "5509f8a8bd2d67d9e94137c5eb07dde4ca380bccd795c29ee0e1e0189e8a3de8",
"messageKey": "f4be2749a29ff011798f2f97f503dd3e044557321f9466d32de1c6c7e60f889d",
"aad": "b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b3b30000000200000000"
},
"ciphertext": "28e2943c856c38933c59dc5421b4cc099b5dd2966e038aa35f44049e9a1ea57490617fea550e6bdbf7db342f3f5b82a377"
}
]
}