Skip to content

Commit

Permalink
fix: uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
yelhousni committed Feb 18, 2025
1 parent 76c21fe commit d3e140c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions field/koalabear/extensions/e2_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (

// q + r'.r = 1, i.e., qInvNeg = - q⁻¹ mod r
// used for Montgomery reduction
const qInvNeg uint64 = 2130706431
const qInvNeg uint32 = 2130706431

// Field modulus q (Fr)
const (
q0 uint64 = 2130706433
q uint64 = q0
q0 uint32 = 2130706433
q uint32 = q0
)

var qElement = fr.Element{
Expand Down

0 comments on commit d3e140c

Please sign in to comment.