From 68749da4fd89433f49d2ebb35c3131990fa6a2f7 Mon Sep 17 00:00:00 2001 From: King Date: Sun, 2 Feb 2025 20:52:50 +0100 Subject: [PATCH 1/2] Fix typos in mimc7/mimc7.go --- mimc7/mimc7.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimc7/mimc7.go b/mimc7/mimc7.go index ddf3ec0..5c3327d 100644 --- a/mimc7/mimc7.go +++ b/mimc7/mimc7.go @@ -92,7 +92,7 @@ func HashGeneric(iv *big.Int, arr []*big.Int, nRounds int) (*big.Int, error) { } // MIMC7Hash performs the MIMC7 hash over a *big.Int, using the Finite Field -// over R and the number of rounds setted in the `constants` variable +// over R and the number of rounds set in the `constants` variable func MIMC7Hash(xInBI, kBI *big.Int) *big.Int { //nolint:golint xIn := ff.NewElement().SetBigInt(xInBI) k := ff.NewElement().SetBigInt(kBI) From ade7dd9308880c683114f391fb071f7c1a19ac28 Mon Sep 17 00:00:00 2001 From: King Date: Sun, 2 Feb 2025 20:52:52 +0100 Subject: [PATCH 2/2] Fix typos in ff/element.go --- ff/element.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ff/element.go b/ff/element.go index c2ff2bc..81ac550 100644 --- a/ff/element.go +++ b/ff/element.go @@ -166,7 +166,7 @@ func (z *Element) Div(x, y *Element) *Element { } // Bit returns the i'th bit, with lsb == bit 0. -// It is the responsability of the caller to convert from Montgomery to Regular form if needed +// It is the responsibility of the caller to convert from Montgomery to Regular form if needed func (z *Element) Bit(i uint64) uint64 { j := i / 64 if j >= 4 {