From f1e36c5bed4c55411ef4add0730e0f4be91847f5 Mon Sep 17 00:00:00 2001 From: Popog <761307+Popog@users.noreply.github.com> Date: Mon, 15 Nov 2021 10:55:32 -0800 Subject: [PATCH] Documentation provides incorrect calculation (#81) --- bn254/src/fields/fr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bn254/src/fields/fr.rs b/bn254/src/fields/fr.rs index c756b99..98aaf68 100644 --- a/bn254/src/fields/fr.rs +++ b/bn254/src/fields/fr.rs @@ -34,7 +34,7 @@ impl FpParameters for FrParameters { const REPR_SHAVE_BITS: u32 = 2; - /// R = pow(2, 320) % MODULUS + /// R = pow(2, 256) % MODULUS /// = 6350874878119819312338956282401532410528162663560392320966563075034087161851 #[rustfmt::skip] const R: BigInteger = BigInteger([