Skip to content

Commit

Permalink
ModQHash remark
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Apr 24, 2024
1 parent 86db760 commit dc74081
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import scala.annotation.tailrec
* in range from 0 to a maximum number divisible by q without remainder.
* If yes, it returns the result mod q, otherwise make one more iteration using hash as an input.
* This is done to ensure uniform distribution of the resulting numbers.
*
* Used in Autolykos v1 only!
*/
class ModQHash(val q: BigInt) extends ScorexLogging with ScorexEncoding {
assert(q.bigInteger.bitLength() <= 256, "We use 256 bit hash here")
Expand Down

0 comments on commit dc74081

Please sign in to comment.