Skip to content

Commit

Permalink
chore: add note to pack arguments (#5304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 authored Mar 19, 2024
1 parent edb8c67 commit 832de86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion noir-projects/aztec-nr/aztec/src/oracle/arguments.nr
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#[oracle(packArguments)]
fn pack_arguments_oracle<N>(_args: [Field; N]) -> Field {}

// TODO: explain what this does.
/// - Pack arguments will notify the simulator that these arguments will be used later at
/// some point in the call.
/// - When the external call is made later, the simulator will know what the values unpack to.
/// - This oracle will not be required in public vm functions, as the vm will keep track of arguments
/// itself.
unconstrained pub fn pack_arguments<N>(args: [Field; N]) -> Field {
pack_arguments_oracle(args)
}

0 comments on commit 832de86

Please sign in to comment.