-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,889 additions
and
1,899 deletions.
There are no files selected for viewing
490 changes: 245 additions & 245 deletions
490
yarn-project/aztec.js/src/abis/ecdsa_account_contract.json
Large diffs are not rendered by default.
Oops, something went wrong.
3,270 changes: 1,635 additions & 1,635 deletions
3,270
yarn-project/aztec.js/src/abis/schnorr_account_contract.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
yarn-project/noir-libs/noir-aztec/src/oracle/get_secret_key.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
use crate::types::point::Point; | ||
use crate::oracle::get_public_key::get_public_key; | ||
|
||
#[oracle(getSecretKey)] | ||
fn get_secret_key_oracle(_owner: Point) -> Field {} | ||
|
||
unconstrained fn get_secret_key(owner: Point) -> Field { | ||
get_secret_key_oracle(owner) | ||
unconstrained fn get_secret_key(owner: Field) -> Field { | ||
let owner_nullifying_public_key = get_public_key(owner); | ||
get_secret_key_oracle(owner_nullifying_public_key) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters