Skip to content

Commit c84e21d

Browse files
authored
feat: merge-train/fairies-v5 (#24702)
See [merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md). This is a merge-train.
2 parents e5cce54 + 6489102 commit c84e21d

5 files changed

Lines changed: 322 additions & 43 deletions

File tree

noir-projects/aztec-nr/aztec/src/messages/processing/log_retrieval_response.nr

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
use crate::messages::logs::note::MAX_NOTE_PACKED_LEN;
2-
use crate::protocol::{constants::{MAX_NOTE_HASHES_PER_TX, PRIVATE_LOG_CIPHERTEXT_LEN}, traits::Deserialize};
2+
use crate::protocol::{
3+
constants::{MAX_NOTE_HASHES_PER_TX, PRIVATE_LOG_CIPHERTEXT_LEN},
4+
traits::{Deserialize, Serialize},
5+
};
36

47
pub global MAX_PUBLIC_LOG_LEN_FOR_NOTE_COMPLETION: u32 = MAX_NOTE_PACKED_LEN;
58

@@ -11,7 +14,7 @@ pub(crate) global MAX_LOG_CONTENT_LEN: u32 = std::cmp::max(
1114
/// A response to a `LogRetrievalRequest`, containing the payload of a log (i.e. the content minus the tag, called
1215
/// plaintext for public logs and ciphertext for private), plus contextual information about the transaction in which
1316
/// the log was emitted. This is the data required in order to discover notes that are being delivered in a log.
14-
#[derive(Deserialize, Eq)]
17+
#[derive(Deserialize, Eq, Serialize)]
1518
pub struct LogRetrievalResponse {
1619
pub log_payload: BoundedVec<Field, MAX_LOG_CONTENT_LEN>,
1720
pub tx_hash: Field,

noir-projects/aztec-nr/aztec/src/messages/processing/mod.nr

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ pub unconstrained fn enqueue_note_for_validation(
9595
))
9696
}
9797

98+
/// The note validation requests enqueued so far in the current context via [`enqueue_note_for_validation`], before
99+
/// [`validate_and_store_enqueued_notes_and_events`] drains them. Exists so tests can inspect the pending queue;
100+
/// production code should not read requests back once enqueued.
101+
pub(crate) unconstrained fn get_enqueued_note_validation_requests() -> EphemeralArray<NoteValidationRequest> {
102+
EphemeralArray::at(NOTE_VALIDATION_REQUESTS_ARRAY_BASE_SLOT)
103+
}
104+
98105
/// Enqueues an event for validation and storage by PXE.
99106
///
100107
/// This is the primary way for custom message handlers (registered via

0 commit comments

Comments
 (0)