Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 21, 2024
1 parent b2235ec commit 75a5ef9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ fn compute_raw_event_log<Event, let N: u32>(
ovpk: OvpkM,
ivpk: IvpkM,
recipient: AztecAddress
) -> ([u8; 416 + N * 32], Field) where Event: EventInterface<N> {
) -> ([u8; 417 + N * 32], Field) where Event: EventInterface<N> {
let contract_address: AztecAddress = context.this_address();
let plaintext = event.private_to_be_bytes(randomness);
let encrypted_log: [u8; 416 + N * 32] = compute_encrypted_log(
let encrypted_log: [u8; 417 + N * 32] = compute_encrypted_log(
contract_address,
ovsk_app,
ovpk,
Expand All @@ -35,7 +35,7 @@ unconstrained fn compute_raw_event_log_unconstrained<Event, let N: u32>(
ovpk: OvpkM,
ivpk: IvpkM,
recipient: AztecAddress
) -> ([u8; 416 + N * 32], Field) where Event: EventInterface<N> {
) -> ([u8; 417 + N * 32], Field) where Event: EventInterface<N> {
let ovsk_app = get_ovsk_app(ovpk.hash());
compute_raw_event_log(context, event, randomness, ovsk_app, ovpk, ivpk, recipient)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn compute_raw_note_log<Note, let N: u32>(
ivpk: IvpkM,
recipient: AztecAddress,
public_values_appended: bool // Indicates whether there are values to be appended to the log in public (used in partial note flow).
) -> (u32, [u8; 416 + N * 32], Field) where Note: NoteInterface<N> {
) -> (u32, [u8; 417 + N * 32], Field) where Note: NoteInterface<N> {
let note_header = note.get_header();
let note_hash_counter = note_header.note_hash_counter;
let storage_slot = note_header.storage_slot;
Expand All @@ -27,7 +27,7 @@ fn compute_raw_note_log<Note, let N: u32>(
let contract_address: AztecAddress = context.this_address();

let plaintext = note.to_be_bytes(storage_slot);
let encrypted_log: [u8; 416 + N * 32] = compute_encrypted_log(
let encrypted_log: [u8; 417 + N * 32] = compute_encrypted_log(
contract_address,
ovsk_app,
ovpk,
Expand All @@ -48,7 +48,7 @@ unconstrained fn compute_raw_note_log_unconstrained<Note, let N: u32>(
ivpk: IvpkM,
recipient: AztecAddress,
public_values_appended: bool // Indicates whether there are values to be appended to the log in public (used in partial note flow).
) -> (u32, [u8; 416 + N * 32], Field) where Note: NoteInterface<N> {
) -> (u32, [u8; 417 + N * 32], Field) where Note: NoteInterface<N> {
let ovsk_app = get_ovsk_app(ovpk.hash());
compute_raw_note_log(
context,
Expand Down Expand Up @@ -123,7 +123,7 @@ pub fn encrypt_and_emit_partial_log<let M: u32>(
) {
let ovsk_app: Field = context.request_ovsk_app(recipient_keys.ovpk_m.hash());

let encrypted_log: [u8; 352 + M] = compute_encrypted_log(
let encrypted_log: [u8; 353 + M] = compute_encrypted_log(
context.this_address(),
ovsk_app,
recipient_keys.ovpk_m,
Expand Down

0 comments on commit 75a5ef9

Please sign in to comment.