For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::messages::logs::note

Function encode_private_note_message_with_msg_type_id

pub fn encode_private_note_message_with_msg_type_id<Note>(
    msg_type_id: u64,
    note: Note,
    owner: AztecAddress,
    storage_slot: Field,
    randomness: Field,
) -> [Field; <Note as Packable>::N + 4]
where Note: NoteType, Note: Packable

Creates the plaintext for a private note message with the given msg_type_id.

Shared encoder used by encode_private_note_message and by custom message handlers that use the same format as standard private note message but perform additional validation logic.