Skip to content

Commit afe3749

Browse files
AztecBotmichaeljkleinTomAFrenchcharlielyeludamad
authored and
AztecBot
committed
feat: Sync from noir (#11051)
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat: impl Default for U128 (noir-lang/noir#6984) fix: Do not emit range check for multiplication by bool (noir-lang/noir#6983) fix: do not panic on indices which are not valid `u32`s (noir-lang/noir#6976) feat!: require trait method calls (`foo.bar()`) to have the trait in scope (imported) (noir-lang/noir#6895) feat!: type-check trait default methods (noir-lang/noir#6645) feat: `--pedantic-solving` flag (noir-lang/noir#6716) feat!: update `aes128_encrypt` to return an array (noir-lang/noir#6973) fix: wrong module to lookup trait when using crate or super (noir-lang/noir#6974) fix: Start RC at 1 again (noir-lang/noir#6958) feat!: turn TypeIsMorePrivateThenItem into an error (noir-lang/noir#6953) fix: don't fail parsing macro if there are parser warnings (noir-lang/noir#6969) fix: error on missing function parameters (noir-lang/noir#6967) feat: don't report warnings for dependencies (noir-lang/noir#6926) chore: simplify boolean in a mul of a mul (noir-lang/noir#6951) feat(ssa): Immediately simplify away RefCount instructions in ACIR functions (noir-lang/noir#6893) chore: Move comment as part of #6945 (noir-lang/noir#6959) chore: Separate unconstrained functions during monomorphization (noir-lang/noir#6894) feat!: turn CannotReexportItemWithLessVisibility into an error (noir-lang/noir#6952) feat: lock on Nargo.toml on several nargo commands (noir-lang/noir#6941) feat: don't simplify SSA instructions when creating them from a string (noir-lang/noir#6948) chore: add reproduction case for bignum test failure (noir-lang/noir#6464) chore: bump `noir-gates-diff` (noir-lang/noir#6949) feat(test): Enable the test fuzzer for Wasm (noir-lang/noir#6835) chore: also print test output to stdout in CI (noir-lang/noir#6930) fix: Non-determinism from under constrained checks (noir-lang/noir#6945) chore: use logs for benchmarking (noir-lang/noir#6911) chore: bump `noir-gates-diff` (noir-lang/noir#6944) chore: bump `noir-gates-diff` (noir-lang/noir#6943) fix: Show output of `test_program_is_idempotent` on failure (noir-lang/noir#6942) chore: delete a bunch of dead code from `noirc_evaluator` (noir-lang/noir#6939) feat: require trait function calls (`Foo::bar()`) to have the trait in scope (imported) (noir-lang/noir#6882) chore: Bump arkworks to version `0.5.0` (noir-lang/noir#6871) END_COMMIT_OVERRIDE --------- Co-authored-by: Michael J Klein <michaeljklein@users.noreply.github.com> Co-authored-by: Michael Klein <lambdamichael@gmail.com> Co-authored-by: Tom French <tom@tomfren.ch> Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: Charlie Lye <karl.lye@gmail.com> Co-authored-by: ludamad <domuradical@gmail.com>
1 parent 84fa912 commit afe3749

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

aztec/src/encrypted_logs/header.nr

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl EncryptedLogHeader {
3232
}
3333

3434
let input: [u8; 32] = self.address.to_field().to_be_bytes();
35-
aes128_encrypt(input, iv, sym_key).as_array()
35+
aes128_encrypt(input, iv, sym_key)
3636
}
3737
}
3838

aztec/src/encrypted_logs/payload.nr

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub fn compute_incoming_body_ciphertext<let P: u32>(
207207
plaintext: [u8; P],
208208
eph_sk: Scalar,
209209
address_point: AddressPoint,
210-
) -> [u8] {
210+
) -> [u8; P + 16 - P % 16] {
211211
let full_key = derive_aes_secret(eph_sk, address_point.to_point());
212212
let mut sym_key = [0; 16];
213213
let mut iv = [0; 16];

aztec/src/macros/events/mod.nr

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ comptime fn generate_event_interface(s: StructDefinition) -> Quoted {
2020
buffer[i] = event_type_id_bytes[i];
2121
}
2222

23-
let serialized_event = self.serialize();
23+
let serialized_event = Serialize::<$content_len>::serialize(self);
2424

2525
for i in 0..serialized_event.len() {
2626
let bytes: [u8; 32] = serialized_event[i].to_be_bytes();

0 commit comments

Comments
 (0)