Skip to content

Commit

Permalink
Merge pull request #106 from privacy-scaling-explorations/fix/eddsa-m…
Browse files Browse the repository at this point in the history
…ul-point-scalar

Remove `F.e` method inside `mulPointEscalar`
  • Loading branch information
cedoor authored Dec 19, 2023
2 parents 384402b + c8b6f4d commit 82bee01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eddsa-poseidon/src/babyjub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function addPoint(p1: Point<bigint>, p2: Point<bigint>): Point<bigint> {
*/
export function mulPointEscalar(base: Point<bigint>, e: bigint): Point<bigint> {
let res: Point<bigint> = [Fr.e(BigInt(0)), Fr.e(BigInt(1))]
let rem: bigint = Fr.e(e)
let rem: bigint = e
let exp: Point<bigint> = base

while (!scalar.isZero(rem)) {
Expand Down

0 comments on commit 82bee01

Please sign in to comment.