Original filename (e.g. "photo.jpg").
Used in key derivation and AEAD associated data — must match exactly.
Hex-encoded 12-byte encryption nonce (24 hex characters).
Stored in the n field of the imeta tag.
Generated randomly by encryptMediaFile and required for decryption.
MIP-04 encryption version. Always "mip04-v2" for new attachments.
Stored in the v field of the imeta tag.
MIP-04 media attachment — a FileMetadata extended with the extra fields required by the MIP-04 v2 encryption scheme.
Use
createImetaTagForAttachmentfrom applesauce to serialize this into animetatag for a group message, andgetFileMetadataFromImetaTagto parse it back. Thenandvfields are passed through via the imeta name-value pair format defined in NIP-92.