arnaucube
arnaucube/ark-curves-cherry-pickedPublic Self-hosted repository
Documentation provides incorrect calculation (#81)

Popog 761307+Popog@users.noreply.github.com
Mon, 15 Nov 2021 10:55:32 -0800
commit

f1e36c5bed4c55411ef4add0730e0f4be91847f5

parent

3a0f858adbb53d7b345df85df3a0c62374b12aef

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M bn254/src/fields/fr.rs → bn254/src/fields/fr.rs

@@ -34,7 +34,7 @@ const CAPACITY: u32 = Self::MODULUS_BITS - 1;

const REPR_SHAVE_BITS: u32 = 2; - /// R = pow(2, 320) % MODULUS + /// R = pow(2, 256) % MODULUS /// = 6350874878119819312338956282401532410528162663560392320966563075034087161851 #[rustfmt::skip] const R: BigInteger = BigInteger([