Skip to content

Commit

Permalink
Replaces EC parameters for SECP256K1 to BN254
Browse files Browse the repository at this point in the history
  • Loading branch information
raugfer authored and feltroidprime committed Apr 19, 2024
1 parent 06174fb commit 6cf9a3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/precompiled_circuits/zk_ecip.sage
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

## STEP 1
# Initialize an elliptic curve
p = 115792089237316195423570985008687907853269984665640564039457584007908834671663
r = 115792089237316195423570985008687907852837564279074904382605163141518161494337
p = 21888242871839275222246405745257275088696311157297823662689037894645226208583
r = 21888242871839275222246405745257275088548364400416034343698204186575808495617
Fp = GF(p) # Base Field
Fr = GF(r) # Scalar Field
A = 0
B = 7
B = 3
E = EllipticCurve(GF(p), [A,B])
assert(E.cardinality() == r)

Expand Down

0 comments on commit 6cf9a3b

Please sign in to comment.