Skip to content

Commit

Permalink
chore: remove last impls of compute_note_hash_and_nullifier (#4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro authored Mar 5, 2024
1 parent 167c0d3 commit ff66bb8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,4 @@ contract DelegatedOn {
unconstrained fn view_public_value() -> pub Field {
storage.current_value.read()
}

// TODO: remove this placeholder once https://github.com/AztecProtocol/aztec-packages/issues/2918 is implemented
unconstrained fn compute_note_hash_and_nullifier(
contract_address: AztecAddress,
nonce: Field,
storage_slot: Field,
note_type_id: Field,
serialized_note: [Field; 0]
) -> pub [Field; 4] {
[0, 0, 0, 0]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,4 @@ contract Delegator {
unconstrained fn view_public_value() -> pub Field {
storage.current_value.read()
}

// TODO: remove this placeholder once https://github.com/AztecProtocol/aztec-packages/issues/2918 is implemented
unconstrained fn compute_note_hash_and_nullifier(
contract_address: AztecAddress,
nonce: Field,
storage_slot: Field,
note_type_id: Field,
serialized_note: [Field; VALUE_NOTE_LEN]
) -> pub [Field; 4] {
let note_header = NoteHeader::new(contract_address, nonce, storage_slot);
dep::aztec::note::utils::compute_note_hash_and_nullifier(ValueNote::deserialize_content, note_header, serialized_note)
}
}

0 comments on commit ff66bb8

Please sign in to comment.