Files
amethyst/quartz
Claude c2347c6cee test: add NIP-AC gift wrap round-trip tests with real crypto
Verify the full encrypt/decrypt pipeline for all 6 NIP-AC signaling event
types through Ephemeral Gift Wraps (kind 21059):

  sign inner event → NIP-44 encrypt → gift wrap → unwrap → verify

Tests cover:
- Each event kind round-trips (offer, answer, ICE, hangup, reject, renegotiate)
- Third parties cannot decrypt wraps addressed to others
- Group call per-peer wraps are only decryptable by intended recipient
- "Sign once, wrap per recipient" produces identical inner event IDs
- SDP and ICE candidate special characters survive JSON+NIP-44 round-trip
- Ephemeral wrap keys are unique per wrap and differ from sender
- Inner event signatures are verifiable after unwrapping
- Full P2P call flow (all 7 signaling steps) through gift wraps

Uses real secp256k1 keys and NIP-44 encryption — no mocks.

https://claude.ai/code/session_01AfRYTRCvtKqqDxeKQujUrx
2026-04-05 14:34:19 +00:00
..
2026-04-01 15:45:46 -04:00