Skip to content

Commit

Permalink
nargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljklein committed Mar 4, 2024
1 parent 9d80527 commit c79061d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions noir_stdlib/src/eddsa.nr
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ pub fn eddsa_poseidon_verify(
}

// Returns the public key of the given secret key as (pub_key_x, pub_key_y)
pub fn eddsa_to_pub(
secret: Field,
) -> (Field, Field) {
pub fn eddsa_to_pub(secret: Field) -> (Field, Field) {
let bjj = baby_jubjub();
let pub_key = bjj.curve.mul(secret, bjj.curve.gen);
(pub_key.x, pub_key.y)
Expand Down

0 comments on commit c79061d

Please sign in to comment.