aztec-nr - noir_aztec::messages::logs::partial_note

Function encode_partial_note_private_message

pub fn encode_partial_note_private_message<PartialNotePrivateContent>(
    partial_note_private_content: PartialNotePrivateContent,
    owner: AztecAddress,
    storage_slot: Field,
    randomness: Field,
    note_completion_log_tag: Field,
) -> [Field; <PartialNotePrivateContent as Packable>::N + 5]
where PartialNotePrivateContent: NoteType, PartialNotePrivateContent: Packable

Creates the plaintext for a partial note private message (i.e. one of type PARTIAL_NOTE_PRIVATE_MSG_TYPE_ID).

This plaintext is meant to be decoded via [decode_partial_note_private_message].