Files
zeekay d070cd618e fix(security): unexport SignUnsafe + add VerifyConstantTime
Security improvements from audit:

1. SignUnsafe → signUnsafe (unexported)
   - No longer accessible outside primitives package
   - Prevents accidental double-signing in external code
   - Tests within package can still use it

2. VerifyConstantTime added
   - No early return on mismatch
   - Accumulates XOR differences across all 256 hashes
   - Prevents timing side-channel attacks
   - Use when verification timing is observable

Both Verify (fast) and VerifyConstantTime (secure) available.
2025-12-25 23:18:36 -08:00
..