Crypto Guardrail
Use this skill to prevent cryptographic behavior drift.
Quick Start
bash
npm run build node agents/skills/upgrade-crypto-guardrail/scripts/crypto-smoke.mjs
What the Smoke Check Verifies
- •Fixed-vector key derivation remains deterministic.
- •Fixed-vector
poseidon_rawoutput remains stable. - •Fixed-vector
poseidon(empty)output remains stable. - •EDDSA sign/verify works for fixed message and fixed key.
- •
poseidon_rawstill rejects invalid arity.
Workflow
- •Run smoke script before and after changes under
src/crypto/. - •Treat any vector mismatch or verification failure as blocking.
- •Run
npm run buildand block merge on failure.
Reporting
Capture:
- •changed files under
src/crypto/ - •smoke script pass/fail
- •intentional crypto behavior changes and migration implications
Use expected vectors in references/test-vectors.md.