NIP-51 stores private items as a NIP-44-encrypted JSON array of tags in the
event content, encrypted to the author's own key. This helper runs the
injected Nip44Decryptor, parses the plaintext as string[][], and
returns a newNip51List with privateItems set (the input is not
mutated). Lists with no encrypted content return a copy with
privateItems: [].
Throws if the decryptor throws or the plaintext is not a JSON tag array — so
callers can distinguish "no private items" from "couldn't read private items".
Decrypt the private portion of a list/set and populate Nip51List.privateItems.
NIP-51 stores private items as a NIP-44-encrypted JSON array of tags in the event
content, encrypted to the author's own key. This helper runs the injected Nip44Decryptor, parses the plaintext asstring[][], and returns a new Nip51List withprivateItemsset (the input is not mutated). Lists with no encrypted content return a copy withprivateItems: [].Throws if the decryptor throws or the plaintext is not a JSON tag array — so callers can distinguish "no private items" from "couldn't read private items".