mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
minor fix
This commit is contained in:
parent
0f82f41b64
commit
7f18b21ace
@ -39,7 +39,7 @@ fn biguint_from_array(arr: [u64; 4]) -> BigUint {
|
||||
impl Secp256K1Base {
|
||||
fn to_canonical_biguint(&self) -> BigUint {
|
||||
let mut result = biguint_from_array(self.0);
|
||||
if result > Self::order() {
|
||||
if result >= Self::order() {
|
||||
result -= Self::order();
|
||||
}
|
||||
result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user