> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function encode_partial_note_private_message

Module: `noir_aztec::messages::logs::partial_note`

```rust
pub fn encode_partial_note_private_message<PartialNotePrivateContent>(
    partial_note_private_content: PartialNotePrivateContent,
    owner: AztecAddress,
    randomness: Field,
    note_completion_log_tag: Field,
) -> [Field; <PartialNotePrivateContent as protocol_types::traits::Packable>::N + 4]
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`](/aztec-nr-api/v6.0.0/noir_aztec/messages/msg_type/global.PARTIAL_NOTE_PRIVATE_MSG_TYPE_ID.md)).

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