mirror of
https://github.com/prompt-security/clawsec.git
synced 2026-06-20 08:51:22 +03:00
cd7bdd95a0
Added comprehensive unit tests for feed-reader module covering: - Package specifier parsing (parseAffectedSpecifier) - Feed payload validation (isValidFeedPayload) - Ed25519 signature verification (verifySignedPayload) - Checksum URL generation (defaultChecksumsUrl) - Local feed loading with signature/checksum verification - Security validation and error handling Enhanced test harness with crypto utilities: - generateEd25519KeyPair() for test key generation - signPayload() for creating test signatures All 24 tests passing. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>