-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add visibility modifiers (#2728)
- Loading branch information
1 parent
4881414
commit d9ae189
Showing
84 changed files
with
409 additions
and
409 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#[oracle(getAuthWitness)] | ||
fn get_auth_witness_oracle<N>(_message_hash: Field) -> [Field; N] {} | ||
|
||
unconstrained fn get_auth_witness<N>(message_hash: Field) -> [Field; N] { | ||
unconstrained pub fn get_auth_witness<N>(message_hash: Field) -> [Field; N] { | ||
get_auth_witness_oracle(message_hash) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
use dep::std::hash; | ||
use crate::constants_gen::GENERATOR_INDEX__CONTRACT_ADDRESS; | ||
|
||
fn compute_address(pub_key_x: Field, pub_key_y: Field, partial_address: Field) -> Field { | ||
pub fn compute_address(pub_key_x: Field, pub_key_y: Field, partial_address: Field) -> Field { | ||
hash::pedersen_with_separator([pub_key_x, pub_key_y, partial_address], GENERATOR_INDEX__CONTRACT_ADDRESS)[0] | ||
} |
Oops, something went wrong.