Skip to content

Commit

Permalink
Fixes post rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Jan 26, 2024
1 parent 3bb588c commit e2e6501
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion yarn-project/aztec-nr/aztec/src/oracle/get_public_key.nr
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use dep::protocol_types::{
address::{
AztecAddress,
PartialAddress,
PublicKeysHash,
},
grumpkin_point::GrumpkinPoint,
};
Expand All @@ -18,7 +19,7 @@ pub fn get_public_key(address: AztecAddress) -> GrumpkinPoint {
let pub_key = GrumpkinPoint::new(result[0], result[1]);
let partial_address = PartialAddress::from_field(result[2]);

let calculated_address = AztecAddress::compute(pub_key, partial_address);
let calculated_address = AztecAddress::compute(PublicKeysHash::compute(pub_key), partial_address);
assert(calculated_address.eq(address));

pub_key
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use dep::aztec::protocol_types::address::AztecAddress;
use dep::aztec::protocol_types::address::{AztecAddress, PublicKeysHash};
use dep::std::{schnorr::verify_signature};
use crate::auth_oracle::{AuthWitness};

Expand All @@ -12,5 +12,5 @@ pub fn recover_address(message_hash: Field, witness: AuthWitness) -> AztecAddres
);
assert(verification == true);

AztecAddress::compute(witness.owner, witness.partial_address)
AztecAddress::compute(PublicKeysHash::compute(witness.owner), witness.partial_address)
}
2 changes: 1 addition & 1 deletion yarn-project/noir-protocol-circuits/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TxContext,
TxRequest,
computeContractAddressFromInstance,
computePublicKeysHash
computePublicKeysHash,
} from '@aztec/circuits.js';
import { computeFunctionLeaf, computeTxHash } from '@aztec/circuits.js/abis';
import { Fr } from '@aztec/foundation/fields';
Expand Down

0 comments on commit e2e6501

Please sign in to comment.