Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/jubjub' into jubjub-stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
alv-around committed Jan 2, 2024
2 parents 21ffcfe + 9366c09 commit 1831b18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/1259-dark64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add jubjub to stdlib (collab with @alvaro-alonso)
4 changes: 4 additions & 0 deletions zokrates_stdlib/stdlib/ecc/proofOfOwnership.zok
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ from "ecc/edwards" import scalarMul;
/// G: Generator point
/// EDWARDS_A: Coefficient `a` of the twisted Edwards curve
/// EDWARDS_D: Coefficient `d` of the twisted Edwards curve
<<<<<<< HEAD
=======
/// bit_size: Bit size of the twisted Edwards curve
>>>>>>> upstream/jubjub
///
/// Returns true for pk/sk being a valid keypair, false otherwise.
def main(field[2] pk, field sk, field[2] G, field EDWARDS_A, field EDWARDS_D) -> bool {
Expand Down
4 changes: 4 additions & 0 deletions zokrates_stdlib/stdlib/ecc/verifyEddsa.zok
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ from "ecc/edwards" import add, scalarMul, onCurve, orderCheck;
/// M1: 256bit array. Trailing 256bits of the message used to create S.
/// EDWARDS_A: Coefficient `a` of the twisted Edwards curve
/// EDWARDS_D: Coefficient `d` of the twisted Edwards curve
<<<<<<< HEAD
=======
/// bit_size: Bit size of the twisted Edwards curve
>>>>>>> upstream/jubjub
///
/// Returns:
/// Return true for S being a valid EdDSA Signature, false otherwise.
Expand Down

0 comments on commit 1831b18

Please sign in to comment.