Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Sync from noir #6941

Merged
merged 24 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6464ee6
[1 changes] chore: schnorr signature verification in noir (https://gi…
AztecBot Jun 6, 2024
08b0baa
chore: apply sync fixes
AztecBot Jun 6, 2024
002eecc
[1 changes] fix(elaborator): Lazily elaborate globals (https://github…
AztecBot Jun 6, 2024
d81d041
chore: apply sync fixes
AztecBot Jun 6, 2024
bea3f5c
fix(elaborator): Lazily elaborate globals (https://github.com/noir-la…
AztecBot Jun 6, 2024
8f99538
Merge branch 'master' into sync-noir
Maddiaa0 Jun 6, 2024
2f6a01f
fix: noir merge issues
Maddiaa0 Jun 6, 2024
f19dff3
chore: apply noir-projects changes for u32
Maddiaa0 Jun 5, 2024
14d3f67
fix: more noir-projects fixes
Maddiaa0 Jun 6, 2024
fb9020a
Merge branch 'master' into sync-noir
Maddiaa0 Jun 6, 2024
71724e7
fix: dangling formatting fix
Maddiaa0 Jun 6, 2024
1eaf0c2
fix: update yarn project lock file
Maddiaa0 Jun 6, 2024
64ef943
workaround wasm OOM with bb backend: run noir tests in series
vezenovm Jun 6, 2024
5ad185a
rename test
vezenovm Jun 6, 2024
c2b5df3
fix: revert web-test-browser with path
Maddiaa0 Jun 6, 2024
c8f2cc1
fix: disable hardcoded gas used checks
Maddiaa0 Jun 6, 2024
24f6860
Merge branch 'master' into sync-noir
Maddiaa0 Jun 6, 2024
a36e64c
fix: fmt
Maddiaa0 Jun 6, 2024
c6a5d22
fix: nargo fmt
Maddiaa0 Jun 6, 2024
19bb0bc
fix: e2e build
Maddiaa0 Jun 6, 2024
5bedca4
fix: e2e fmt
Maddiaa0 Jun 6, 2024
f96af2b
fix: another hardcoded expected gas
Maddiaa0 Jun 6, 2024
8307d99
Merge branch 'master' into sync-noir
Maddiaa0 Jun 6, 2024
48311ce
fix: noir-fmt (again) (kill me)
Maddiaa0 Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .noir-sync-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
1252b5fcc7ed56bb55e95745b83be6e556805397

9c99a97ca8f42bee23cf97ebd724fdc51e647c60
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ impl PrivateContext {
|n: NoteHash| n.counter == note_hash_counter
);
assert(
note_exists_index != MAX_NEW_NOTE_HASHES_PER_CALL, "Can only emit a note log for an existing note."
note_exists_index as u32 != MAX_NEW_NOTE_HASHES_PER_CALL, "Can only emit a note log for an existing note."
);

let counter = self.next_counter();
Expand Down
6 changes: 3 additions & 3 deletions noir-projects/aztec-nr/aztec/src/context/public_context.nr
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ impl PublicContext {
* @param event_selector The event selector for the log.
* @param message The message to emit in the log.
*/
pub fn emit_unencrypted_log_with_selector<T,N>(
pub fn emit_unencrypted_log_with_selector<T, N>(
&mut self,
event_selector: Field,
log: T
) where T: Serialize<N> {
emit_unencrypted_log(event_selector, Serialize::serialize(log).as_slice());
}
// For compatibility with the selector-less API. We'll probably rename the above one.
pub fn emit_unencrypted_log<T,N>(&mut self, log: T) where T: Serialize<N> {
pub fn emit_unencrypted_log<T, N>(&mut self, log: T) where T: Serialize<N> {
self.emit_unencrypted_log_with_selector(/*event_selector=*/ 5, log);
}
pub fn note_hash_exists(self, note_hash: Field, leaf_index: Field) -> bool {
Expand Down Expand Up @@ -368,4 +368,4 @@ impl<N> FunctionReturns<N> {
pub fn deserialize_into<T>(self) -> T where T: Deserialize<N> {
Deserialize::deserialize(self.raw())
}
}
}
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/encrypted_logs.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod header;
mod incoming_body;
mod outgoing_body;
mod payload;
mod payload;
1 change: 0 additions & 1 deletion noir-projects/aztec-nr/aztec/src/encrypted_logs/payload.nr
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ fn compute_ivpk_app(ivpk: GrumpkinPoint, contract_address: AztecAddress) -> Grum
// It is useless to compute this, it brings no value to derive fully.
// Issue(#6955)
ivpk

/*
// @todo Just setting infinite to false, but it should be checked.
// for example user could define ivpk = infinity using the registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use dep::protocol_types::{
utils::arr_copy_slice
};

global LEAF_PREIMAGE_LENGTH: u64 = 4;
global LEAF_PREIMAGE_LENGTH: u32 = 4;
global PUBLIC_DATA_WITNESS: Field = 45;

struct PublicDataWitness {
Expand All @@ -23,7 +23,7 @@ unconstrained pub fn get_public_data_witness(block_number: u32, leaf_slot: Field
let fields = get_public_data_witness_oracle(block_number, leaf_slot);
PublicDataWitness {
index: fields[0],
leaf_preimage: PublicDataTreeLeafPreimage { slot: fields[1], value: fields[2], next_index: fields[3] as u64, next_slot: fields[4] },
leaf_preimage: PublicDataTreeLeafPreimage { slot: fields[1], value: fields[2], next_index: fields[3] as u32, next_slot: fields[4] },
path: arr_copy_slice(fields, [0; PUBLIC_DATA_TREE_HEIGHT], 1 + LEAF_PREIMAGE_LENGTH)
}
}
8 changes: 4 additions & 4 deletions noir-projects/aztec-nr/aztec/src/oracle/notes.nr
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ unconstrained pub fn get_notes<Note, N, NB, M, S, NS>(
status,
placeholder_fields
);
let num_notes = fields[0] as u64;
let num_notes = fields[0] as u32;
let contract_address = AztecAddress::from_field(fields[1]);
for i in 0..placeholder_opt_notes.len() {
if i < num_notes {
// lengths named as per typescript.
let return_header_length: u64 = 2; // num_notes & contract_address.
let extra_preimage_length: u64 = 2; // nonce & note_hash_counter.
let read_offset: u64 = return_header_length + i * (N + extra_preimage_length);
let return_header_length: u32 = 2; // num_notes & contract_address.
let extra_preimage_length: u32 = 2; // nonce & note_hash_counter.
let read_offset: u32 = return_header_length + i * (N + extra_preimage_length);
let nonce = fields[read_offset];
let note_hash_counter = fields[read_offset + 1] as u32;
let header = NoteHeader { contract_address, nonce, storage_slot, note_hash_counter };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn test_serde() {

#[test]
fn test_serde_large_values() {
let max_u32 = (1 << 32) - 1;
let max_u32: u64 = (1 << 32) - 1;

let pre = max_u32 as u32;
let post = (max_u32 - 1) as u32;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ contract PendingNoteHashes {
}

#[contract_library_method]
fn max_notes_per_call() -> u64 {
fn max_notes_per_call() -> u32 {
if MAX_NEW_NOTE_HASHES_PER_CALL > MAX_NOTE_HASH_READ_REQUESTS_PER_CALL {
MAX_NOTE_HASH_READ_REQUESTS_PER_CALL
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@ struct KernelCircuitPublicInputsComposer {
previous_kernel: PrivateKernelData,
// Hints
sorted_note_hashes: [ScopedNoteHash; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_note_hashes_indexes: [u64; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_note_hashes_indexes: [u32; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_nullifiers: [ScopedNullifier; MAX_NEW_NULLIFIERS_PER_TX],
sorted_nullifiers_indexes: [u64; MAX_NEW_NULLIFIERS_PER_TX],
sorted_nullifiers_indexes: [u32; MAX_NEW_NULLIFIERS_PER_TX],
sorted_note_encrypted_log_hashes: [NoteLogHash; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u64; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u32; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes: [ScopedEncryptedLogHash; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u64; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u32; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes: [ScopedLogHash; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u64; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u32; MAX_UNENCRYPTED_LOGS_PER_TX],
}

impl KernelCircuitPublicInputsComposer {
pub fn new(
previous_kernel: PrivateKernelData,
sorted_note_hashes: [ScopedNoteHash; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_note_hashes_indexes: [u64; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_note_hashes_indexes: [u32; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_nullifiers: [ScopedNullifier; MAX_NEW_NULLIFIERS_PER_TX],
sorted_nullifiers_indexes: [u64; MAX_NEW_NULLIFIERS_PER_TX],
sorted_nullifiers_indexes: [u32; MAX_NEW_NULLIFIERS_PER_TX],
sorted_note_encrypted_log_hashes: [NoteLogHash; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u64; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u32; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes: [ScopedEncryptedLogHash; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u64; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u32; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes: [ScopedLogHash; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u64; MAX_UNENCRYPTED_LOGS_PER_TX]
sorted_unencrypted_log_hashes_indexes: [u32; MAX_UNENCRYPTED_LOGS_PER_TX]
) -> Self {
let public_inputs = PrivateKernelCircuitPublicInputsBuilder::empty();

Expand Down Expand Up @@ -92,7 +92,7 @@ impl KernelCircuitPublicInputsComposer {
pub fn compose_public(
&mut self,
sorted_call_requests: [CallRequest; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX],
sorted_call_requests_indexes: [u64; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX]
sorted_call_requests_indexes: [u32; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX]
) -> Self {
let _ = self.compose();

Expand Down Expand Up @@ -233,7 +233,7 @@ impl KernelCircuitPublicInputsComposer {
fn propagate_sorted_public_call_requests(
&mut self,
sorted_call_requests: [CallRequest; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX],
sorted_call_requests_indexes: [u64; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX]
sorted_call_requests_indexes: [u32; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX]
) {
let accumulated_data = self.previous_kernel.public_inputs.end;
assert_sorted_array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use dep::types::{
traits::is_empty, transaction::tx_request::TxRequest, utils::arrays::find_index
};

unconstrained fn match_log_to_note<N>(note_log: NoteLogHash, accumulated_note_hashes: [ScopedNoteHash; N]) -> u64 {
unconstrained fn match_log_to_note<N>(note_log: NoteLogHash, accumulated_note_hashes: [ScopedNoteHash; N]) -> u32 {
find_index(
accumulated_note_hashes,
|n: ScopedNoteHash| n.counter() == note_log.note_hash_counter
Expand Down Expand Up @@ -42,7 +42,7 @@ fn validate_incrementing_counters_within_range<T, N>(
counter_start: u32,
counter_end: u32,
items: [T; N],
num_items: u64
num_items: u32
) where T: Ordered {
let mut prev_counter = counter_start;
let mut should_check = true;
Expand All @@ -63,7 +63,7 @@ fn validate_incrementing_counter_ranges_within_range<T, N>(
counter_start: u32,
counter_end: u32,
items: [T; N],
num_items: u64
num_items: u32
) where T: RangeOrdered {
let mut prev_counter = counter_start;
let mut should_check = true;
Expand All @@ -85,9 +85,9 @@ fn validate_incrementing_counter_ranges_within_range<T, N>(

fn validate_clean_split_ranges<T, N>(
min_revertible_side_effect_counter: u32,
first_revertible_item_index: u64,
first_revertible_item_index: u32,
items: [T; N],
num_items: u64
num_items: u32
) where T: RangeOrdered {
if first_revertible_item_index != 0 {
let last_non_revertible_item_index = first_revertible_item_index - 1;
Expand Down Expand Up @@ -125,7 +125,7 @@ impl PrivateCallDataValidator {
self.validate_note_logs(accumulated_note_hashes);
}

pub fn validate_as_first_call(self, first_revertible_private_call_request_index: u64) {
pub fn validate_as_first_call(self, first_revertible_private_call_request_index: u32) {
let public_inputs = self.data.call_stack_item.public_inputs;
let call_context = public_inputs.call_context;
assert(call_context.is_delegate_call == false, "Users cannot make a delegatecall");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use dep::types::{
address::AztecAddress, traits::{Empty, is_empty}, transaction::tx_request::TxRequest
};

fn validate_array_prepended<T, N>(dest: [T; N], source: [T; N], num_source_items: u64) where T: Eq {
fn validate_array_prepended<T, N>(dest: [T; N], source: [T; N], num_source_items: u32) where T: Eq {
let mut proceed = true;
for i in 0..source.len() {
proceed &= i != num_source_items;
Expand All @@ -23,8 +23,8 @@ fn validate_array_prepended<T, N>(dest: [T; N], source: [T; N], num_source_items
fn validate_array_appended<T, N, M>(
dest: [T; N],
source: [T; M],
num_source_items: u64,
num_prepended_items: u64
num_source_items: u32,
num_prepended_items: u32
) where T: Empty + Eq {
let items_propagated = num_prepended_items + num_source_items;
assert(items_propagated <= N, "number of total items exceeds limit");
Expand All @@ -47,8 +47,8 @@ fn validate_array_appended<T, N, M>(
fn validate_array_appended_scoped<ST, T, N, M>(
dest: [ST; N],
source: [T; M],
num_source_items: u64,
num_prepended_items: u64,
num_source_items: u32,
num_prepended_items: u32,
contract_address: AztecAddress
) where ST: Scoped<T> + Empty + Eq, T: Eq {
let items_propagated = num_prepended_items + num_source_items;
Expand Down Expand Up @@ -77,8 +77,8 @@ fn validate_array_appended_scoped<ST, T, N, M>(
fn validate_array_appended_reversed_scoped<ST, T, N, M>(
dest: [ST; N],
source: [T; M],
num_source_items: u64,
num_prepended_items: u64,
num_source_items: u32,
num_prepended_items: u32,
contract_address: AztecAddress
) where ST: Scoped<T> + Empty + Eq, T: Eq {
let items_propagated = num_prepended_items + num_source_items;
Expand Down Expand Up @@ -106,8 +106,8 @@ fn validate_array_appended_reversed_scoped<ST, T, N, M>(
fn validate_note_hash_nullifier_counters<N, M>(
dest: [ScopedNoteHash; N],
note_hash_nullifier_counters: [u32; M],
num_source_items: u64,
num_prepended_items: u64
num_source_items: u32,
num_prepended_items: u32
) {
let mut is_non_empty_item = true;
for i in 0..M {
Expand Down Expand Up @@ -341,7 +341,7 @@ impl PrivateKernelCircuitOutputValidator {
private_call: PrivateCircuitPublicInputs,
array_lengths: PrivateCircuitPublicInputsArrayLengths,
offsets: PrivateKernelCircuitPublicInputsArrayLengths,
num_popped_call: u64,
num_popped_call: u32,
contract_address: AztecAddress,
note_hash_nullifier_counters: [u32; NOTE_HASH_NULLIFIER_COUNTERS_LEN],
public_call_requests: [CallRequest; PUBLIC_CALL_REQUESTS_LEN]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use dep::types::{
struct PrivateKernelInitHints {
note_hash_nullifier_counters: [u32; MAX_NEW_NOTE_HASHES_PER_CALL],
// TODO: Build the following hint in noir.
first_revertible_private_call_request_index: u64,
first_revertible_private_call_request_index: u32,
}

// Initialization struct for private inputs to the private kernel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ struct PrivateKernelResetOutputs {
}

struct PrivateKernelResetHints<NH_RR_PENDING, NH_RR_SETTLED, NLL_RR_PENDING, NLL_RR_SETTLED, KEY_VALIDATION_REQUESTS> {
transient_nullifier_indexes_for_note_hashes: [u64; MAX_NEW_NOTE_HASHES_PER_TX],
transient_note_hash_indexes_for_nullifiers: [u64; MAX_NEW_NULLIFIERS_PER_TX],
transient_note_hash_indexes_for_logs: [u64; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
transient_nullifier_indexes_for_note_hashes: [u32; MAX_NEW_NOTE_HASHES_PER_TX],
transient_note_hash_indexes_for_nullifiers: [u32; MAX_NEW_NULLIFIERS_PER_TX],
transient_note_hash_indexes_for_logs: [u32; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
note_hash_read_request_hints: NoteHashReadRequestHints<NH_RR_PENDING, NH_RR_SETTLED>,
nullifier_read_request_hints: NullifierReadRequestHints<NLL_RR_PENDING, NLL_RR_SETTLED>,
key_validation_hints: [KeyValidationHint; KEY_VALIDATION_REQUESTS],
Expand Down Expand Up @@ -106,9 +106,9 @@ mod tests {

struct PrivateKernelResetInputsBuilder {
previous_kernel: FixtureBuilder,
transient_nullifier_indexes_for_note_hashes: [u64; MAX_NEW_NOTE_HASHES_PER_TX],
transient_note_hash_indexes_for_nullifiers: [u64; MAX_NEW_NULLIFIERS_PER_TX],
transient_note_hash_indexes_for_logs: [u64; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
transient_nullifier_indexes_for_note_hashes: [u32; MAX_NEW_NOTE_HASHES_PER_TX],
transient_note_hash_indexes_for_nullifiers: [u32; MAX_NEW_NULLIFIERS_PER_TX],
transient_note_hash_indexes_for_logs: [u32; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
note_hash_read_request_hints_builder: NoteHashReadRequestHintsBuilder,
nullifier_read_request_hints_builder: NullifierReadRequestHintsBuilder,
}
Expand All @@ -128,15 +128,15 @@ mod tests {
}
}

pub fn add_pending_note_hash_read_request(&mut self, note_hash_index: u64) {
pub fn add_pending_note_hash_read_request(&mut self, note_hash_index: u32) {
let read_request_index = self.previous_kernel.add_read_request_for_pending_note_hash(note_hash_index);
let hint_index = self.note_hash_read_request_hints_builder.pending_read_hints.len();
let hint = PendingReadHint { read_request_index, pending_value_index: note_hash_index };
self.note_hash_read_request_hints_builder.pending_read_hints.push(hint);
self.note_hash_read_request_hints_builder.read_request_statuses[read_request_index] = ReadRequestStatus { state: ReadRequestState.PENDING, hint_index };
}

pub fn add_pending_nullifier_read_request(&mut self, nullifier_index_offset_one: u64) {
pub fn add_pending_nullifier_read_request(&mut self, nullifier_index_offset_one: u32) {
let nullifier_index = nullifier_index_offset_one + 1; // + 1 is for the first nullifier
let read_request_index = self.previous_kernel.add_read_request_for_pending_nullifier(nullifier_index);
let hint_index = self.nullifier_read_request_hints_builder.pending_read_hints.len();
Expand All @@ -145,7 +145,7 @@ mod tests {
self.nullifier_read_request_hints_builder.read_request_statuses[read_request_index] = ReadRequestStatus { state: ReadRequestState.PENDING, hint_index };
}

pub fn nullify_pending_note_hash(&mut self, nullifier_index: u64, note_hash_index: u64) {
pub fn nullify_pending_note_hash(&mut self, nullifier_index: u32, note_hash_index: u32) {
let note_hash = self.previous_kernel.new_note_hashes.get(note_hash_index).note_hash;
self.previous_kernel.new_note_hashes.storage[note_hash_index].nullifier_counter = self.previous_kernel.new_nullifiers.get(nullifier_index).counter();
self.previous_kernel.new_nullifiers.storage[nullifier_index].nullifier.note_hash = note_hash.value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ use dep::types::{
// TODO: Build hints in noir.
struct PrivateKernelTailHints {
sorted_new_note_hashes: [ScopedNoteHash; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_new_note_hashes_indexes: [u64; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_new_note_hashes_indexes: [u32; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_new_nullifiers: [ScopedNullifier; MAX_NEW_NULLIFIERS_PER_TX],
sorted_new_nullifiers_indexes: [u64; MAX_NEW_NULLIFIERS_PER_TX],
sorted_new_nullifiers_indexes: [u32; MAX_NEW_NULLIFIERS_PER_TX],
sorted_note_encrypted_log_hashes: [NoteLogHash; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u64; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u32; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes: [ScopedEncryptedLogHash; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u64; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u32; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes: [ScopedLogHash; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u64; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u32; MAX_UNENCRYPTED_LOGS_PER_TX],
}

struct PrivateKernelTailCircuitPrivateInputs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ use dep::types::{

struct PrivateKernelTailToPublicHints {
sorted_new_note_hashes: [ScopedNoteHash; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_new_note_hashes_indexes: [u64; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_new_note_hashes_indexes: [u32; MAX_NEW_NOTE_HASHES_PER_TX],
sorted_new_nullifiers: [ScopedNullifier; MAX_NEW_NULLIFIERS_PER_TX],
sorted_new_nullifiers_indexes: [u64; MAX_NEW_NULLIFIERS_PER_TX],
sorted_new_nullifiers_indexes: [u32; MAX_NEW_NULLIFIERS_PER_TX],
sorted_note_encrypted_log_hashes: [NoteLogHash; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u64; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_note_encrypted_log_hashes_indexes: [u32; MAX_NOTE_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes: [ScopedEncryptedLogHash; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u64; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_encrypted_log_hashes_indexes: [u32; MAX_ENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes: [ScopedLogHash; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u64; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_unencrypted_log_hashes_indexes: [u32; MAX_UNENCRYPTED_LOGS_PER_TX],
sorted_call_requests: [CallRequest; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX],
sorted_call_requests_indexes: [u64; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX],
sorted_call_requests_indexes: [u32; MAX_PUBLIC_CALL_STACK_LENGTH_PER_TX],
}

struct PrivateKernelTailToPublicCircuitPrivateInputs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use dep::types::{

struct PrivateCallDataValidatorBuilder {
private_call: FixtureBuilder,
first_revertible_private_call_request_index: u64,
first_revertible_private_call_request_index: u32,
previous_note_hashes: BoundedVec<ScopedNoteHash, 4>,
}

Expand Down
Loading
Loading