-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: including "real" code in keys docs (#1767)
Including "real" code in keys docs + addressed one Noir TODO so that it doesn't get shown inside the docs.
- Loading branch information
Showing
12 changed files
with
1,947 additions
and
1,973 deletions.
There are no files selected for viewing
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
514 changes: 257 additions & 257 deletions
514
yarn-project/aztec.js/src/abis/ecdsa_account_contract.json
Large diffs are not rendered by default.
Oops, something went wrong.
3,296 changes: 1,648 additions & 1,648 deletions
3,296
yarn-project/aztec.js/src/abis/schnorr_account_contract.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
yarn-project/aztec.js/src/abis/schnorr_single_key_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
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
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