Parse a NIP-51 list or set event into a structured Nip51List.
Works for any kind: known list/set kinds get a type and correct family;
unknown kinds still parse (family: 'unknown') so forward-compatible callers
can handle new list kinds before this table is updated.
Parse a NIP-51 list or set event into a structured Nip51List.
Works for any kind: known list/set kinds get a
typeand correctfamily; unknown kinds still parse (family: 'unknown') so forward-compatible callers can handle new list kinds before this table is updated.Item-bearing tags (see ITEM_TAGS) become Nip51List.publicItems; metadata tags (
d,title,image,description, …) are lifted into named fields. The encryptedcontentis preserved verbatim in Nip51List.encryptedContent — call decryptPrivateItems with a NIP-44 decryptor to populate Nip51List.privateItems.