Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
har777 committed Jul 8, 2024
1 parent 3c3091d commit e9a3fec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/hintrunner/zero/zerohint_ec.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,15 @@ func createRecoverYHinter(resolver hintReferenceResolver) (hinter.Hinter, error)
return newRecoverYHint(x, p), nil
}

// RandomEcPoint hint Returns a random non-zero point on the elliptic curve
// y^2 = x^3 + alpha * x + beta (mod field_prime).
// The point is created deterministically from the seed.
//
// `newRandomEcPointHint` takes 4 operanders as arguments
// - `p` is an EC point used for seed generation
// - `m` the multiplication coefficient of Q used for seed generation
// - `q` an EC point used for seed generation
// - `s` is where the generated random EC point is written to
func newRandomEcPointHint(p, m, q, s hinter.ResOperander) hinter.Hinter {
return &GenericZeroHinter{
Name: "RandomEcPoint",
Expand Down

0 comments on commit e9a3fec

Please sign in to comment.