From dc74081c9a75309b232c56b470d1e9f290721797 Mon Sep 17 00:00:00 2001 From: Alexander Chepurnoy Date: Wed, 24 Apr 2024 13:51:43 +0300 Subject: [PATCH] ModQHash remark --- ergo-core/src/main/scala/org/ergoplatform/mining/ModQHash.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ergo-core/src/main/scala/org/ergoplatform/mining/ModQHash.scala b/ergo-core/src/main/scala/org/ergoplatform/mining/ModQHash.scala index eae08089ff..1d4f360332 100644 --- a/ergo-core/src/main/scala/org/ergoplatform/mining/ModQHash.scala +++ b/ergo-core/src/main/scala/org/ergoplatform/mining/ModQHash.scala @@ -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")