extra: rectify pow2k function comment (#35)

This commit is contained in:
Daniel Bourdrez 2023-12-10 20:26:02 +01:00 committed by GitHub
parent 325f520de7
commit a7dfd8e4e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ func (v *Point) MultByCofactor(p *Point) *Point {
return v.fromP1xP1(&result)
}
// Given k > 0, set s = s**(2*i).
// Given k > 0, set s = s**(2*k).
func (s *Scalar) pow2k(k int) {
for i := 0; i < k; i++ {
s.Multiply(s, s)