content: NoteEmissionContent<Note>Struct NoteEmission
pub struct NoteEmission<Note> {
pub content: NoteEmissionContent<Note>,
/* private fields */
}
Fields
Implementations
impl<Note> NoteEmission<Note>
pub fn new(
note: Note,
storage_slot: Field,
randomness: Field,
note_hash_counter: u32,
context: &mut PrivateContext,
) -> Self
pub fn emit(self, recipient: AztecAddress, delivery_mode: u8)
Emits a note that can be delivered either via private logs or offchain messages, with configurable encryption and tagging constraints.
Arguments
self- The note emission to emitrecipient- The address that should receive this notedelivery_mode- Controls encryption, tagging, and delivery constraints. Must be a compile-time constant. SeeMessageDeliveryEnumfor details on the available modes.
pub fn discard(_self: Self)
A note emission struct containing the information required for emitting a note. The exact
emitlogic is passed in by the application code