ByteSync
ByteSync copied to clipboard
2.6 Add crypto tests for trusted-session invitations
Parent epic: #308
Summary
Cover signing, encryption, expiration, nonce, and trust failure scenarios.
Requirements
- Test successful signature generation.
- Test encryption for the intended recipient.
- Test decryption failure with another private key.
- Test signature invalidation after payload modification.
- Test expiration inclusion.
- Test nonce uniqueness.
- Test rejection when the recipient is not trusted.
Acceptance criteria
- Tests use FluentAssertions.
- Tests cover both success and failure crypto paths.
- No sensitive test material leaks into logs.