Skip to content

Commit

Permalink
chore: fix some typos in comments (#789)
Browse files Browse the repository at this point in the history
Signed-off-by: hugehope <[email protected]>
  • Loading branch information
hugehope authored May 17, 2024
1 parent 60fb4ec commit 33f4df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fastcrypto-zkp/src/bn254/unit_tests/zk_login_e2e_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async fn get_test_inputs(parsed_token: &str) -> (u64, Vec<u8>, ZkLoginInputs) {
// A dummy salt
let user_salt = "129390038577185583942388216820280642146";

// Generate an ephermeral key pair.
// Generate an ephemeral key pair.
let kp = Ed25519KeyPair::generate(&mut StdRng::from_seed([0; 32]));
let mut eph_pubkey = vec![0x00];
eph_pubkey.extend(kp.public().as_ref());
Expand Down Expand Up @@ -240,7 +240,7 @@ async fn test_end_to_end_test_issuer(test_input: TestInputStruct) {
let sub = BigUint::from_bytes_be(&test_input.sub).to_string();
let max_epoch = test_input.max_epoch;

// Generate an ephermeral key pair.
// Generate an ephemeral key pair.
let kp = Ed25519KeyPair::generate(&mut StdRng::from_seed(test_input.seed_ephemeral_kp));
let mut eph_pk_bytes = vec![0x00];
eph_pk_bytes.extend(kp.public().as_ref());
Expand Down
2 changes: 1 addition & 1 deletion fastcrypto/src/tests/secp256k1_recoverable_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fn fail_to_verify_if_upper_s() {
.verify_recoverable_with_hash::<Keccak256>(&msg, &rec_sig)
.is_err());

// Nomralize S to be less than N/2.
// Normalize S to be less than N/2.
sig.normalize_s();
let mut sig_bytes1 = [0u8; 65];
sig_bytes1[..64].copy_from_slice(&sig.serialize_compact());
Expand Down

0 comments on commit 33f4df4

Please sign in to comment.