Files
buzz/crates
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7andWill Pfleger 632e736acd fix(relay): validate kind:30175 persona d-tag slug grammar on ingest
A persona event with an empty or malformed d-tag would win NIP-33 replacement against the (pubkey, 30175, "") slot, collapsing every persona into one address and silently destroying data. The relay now rejects persona events at ingest unless they carry exactly one d tag matching the NIP-AP slug grammar ^[a-z0-9][a-z0-9_-]{0,63}$ (1-64 bytes). Mirrors the existing validate_engram_envelope gate so malformed events never reach storage.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-06-10 14:24:14 -04:00
..