aztec-nr - noir_aztec::messages::logs::note

Function encode_private_note_message

pub fn encode_private_note_message<Note>(
    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 (i.e. one of type PRIVATE_NOTE_MSG_TYPE_ID).

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