Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Jun 6, 2024
1 parent bd19c82 commit 0a6647d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions noir-projects/aztec-nr/aztec/src/context/private_context.nr
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// By updating the import here, you can "switch" between using an oracle for computing the encrypted
// logs, or constraining it in the circuit. The interfaces are the exact same, so just flip this.
// use crate::oracle::logs::compute_encrypted_log;
use crate::encrypted_logs::{payload::compute_encrypted_note_log};

use crate::{
Expand Down Expand Up @@ -325,7 +322,7 @@ impl PrivateContext {
) where [Field; N]: LensForEncryptedLog<N, M> {
let ovsk_app = self.request_ovsk_app(ovpk_m.hash());

// We are currently just encrypting it EXACTLY the same way as if it was a note.
// We are currently just encrypting it unconstrained, but otherwise the same way as if it was a note.
let counter = self.next_counter();
let encrypted_log: [u8; M] = compute_encrypted_log(
contract_address,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ export class ClientExecutionContext extends ViewDataOracle {

const ephSk = GrumpkinScalar.random();

// @todo Needs to be populated
// @todo This should be populated properly.
// Note that this encryption function SHOULD not be used, but is currently used
// as oracle for encrypted event logs.
const recipient = AztecAddress.random();

return taggedNote.encrypt(ephSk, recipient, ivpkM, ovKeys);
Expand Down

0 comments on commit 0a6647d

Please sign in to comment.