PR suggestion from @Inphi
This commit is contained in:
parent
94da861d9c
commit
a3339c7b7f
|
@ -77,7 +77,7 @@ def bls_modular_inverse(x: BLSFieldElement) -> BLSFieldElement:
|
||||||
```python
|
```python
|
||||||
def div(x: BLSFieldElement, y: BLSFieldElement) -> BLSFieldElement:
|
def div(x: BLSFieldElement, y: BLSFieldElement) -> BLSFieldElement:
|
||||||
"""Divide two field elements: `x` by `y`"""
|
"""Divide two field elements: `x` by `y`"""
|
||||||
return x * inv(y) % BLS_MODULUS
|
return x * bls_modular_inverse(y) % BLS_MODULUS
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `lincomb`
|
#### `lincomb`
|
||||||
|
|
Loading…
Reference in New Issue