Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Sep 14, 2023
1 parent a2497ea commit ec36e8e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 53 deletions.
31 changes: 0 additions & 31 deletions yarn-project/aztec-nr/aztec/src/types/grumpkin_scalar.nr

This file was deleted.

2 changes: 0 additions & 2 deletions yarn-project/aztec-nr/value-note/src/value_note.nr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use dep::aztec::note::{
use dep::aztec::oracle::{
rand::rand,
get_secret_key::get_secret_key,
get_public_key::get_public_key,
};

global VALUE_NOTE_LEN: Field = 3; // 3 plus a header.
Expand Down Expand Up @@ -59,7 +58,6 @@ impl ValueNote {
fn compute_nullifier(self) -> Field {
let note_hash_for_nullify = compute_note_hash_for_read_or_nullify(ValueNoteMethods, self);
let secret = get_secret_key(self.owner);

// TODO(#1205) Should use a non-zero generator index.
dep::std::hash::pedersen([
note_hash_for_nullify,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use dep::aztec::note::note_interface::NoteInterface;
use dep::aztec::note::note_header::NoteHeader;
use dep::aztec::note::utils::compute_unique_siloed_note_hash;
use dep::aztec::oracle::{
get_secret_key::get_secret_key,
get_public_key::get_public_key,
};
use dep::aztec::oracle::get_secret_key::get_secret_key;

global ECDSA_PUBLIC_KEY_NOTE_LEN: Field = 5;

Expand Down Expand Up @@ -56,7 +53,6 @@ impl EcdsaPublicKeyNote {
fn compute_nullifier(self) -> Field {
let unique_siloed_note_hash = compute_unique_siloed_note_hash(EcdsaPublicKeyNoteInterface, self);
let secret = get_secret_key(self.owner);

// TODO(#1205) Should use a non-zero generator index.
dep::std::hash::pedersen([
unique_siloed_note_hash,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use dep::aztec::note::note_interface::NoteInterface;
use dep::aztec::note::note_header::NoteHeader;
use dep::aztec::note::utils::compute_siloed_note_hash;
use dep::aztec::oracle::{
get_secret_key::get_secret_key,
get_public_key::get_public_key,
};
use dep::aztec::oracle::get_secret_key::get_secret_key;

global ADDRESS_NOTE_LEN: Field = 2;

Expand All @@ -31,7 +28,6 @@ impl AddressNote {
fn compute_nullifier(self) -> Field {
let siloed_note_hash = compute_siloed_note_hash(AddressNoteMethods, self);
let secret = get_secret_key(self.owner);

// TODO(#1205) Should use a non-zero generator index.
dep::std::hash::pedersen([
siloed_note_hash,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use dep::aztec::note::note_interface::NoteInterface;
use dep::aztec::note::note_header::NoteHeader;
use dep::aztec::note::utils::compute_unique_siloed_note_hash;
use dep::aztec::oracle::{
get_secret_key::get_secret_key,
get_public_key::get_public_key,
};
use dep::aztec::oracle::get_secret_key::get_secret_key;

global ADDRESS_NOTE_LEN: Field = 1;

Expand All @@ -30,7 +27,6 @@ impl AddressNote {
fn compute_nullifier(self) -> Field {
let unique_siloed_note_hash = compute_unique_siloed_note_hash(AddressNoteMethods, self);
let secret = get_secret_key(self.address);

// TODO(#1205) Should use a non-zero generator index.
dep::std::hash::pedersen([
unique_siloed_note_hash,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use dep::aztec::note::note_interface::NoteInterface;
use dep::aztec::note::note_header::NoteHeader;
use dep::aztec::note::utils::compute_unique_siloed_note_hash;
use dep::aztec::oracle::{
get_secret_key::get_secret_key,
get_public_key::get_public_key,
};
use dep::aztec::oracle::get_secret_key::get_secret_key;

global PUBLIC_KEY_NOTE_LEN: Field = 3;

Expand Down Expand Up @@ -35,7 +32,6 @@ impl PublicKeyNote {
fn compute_nullifier(self) -> Field {
let unique_siloed_note_hash = compute_unique_siloed_note_hash(PublicKeyNoteMethods, self);
let secret = get_secret_key(self.owner);

// TODO(#1205) Should use a non-zero generator index.
dep::std::hash::pedersen([
unique_siloed_note_hash,
Expand Down

0 comments on commit ec36e8e

Please sign in to comment.