PR suggestion from @Inphi

This commit is contained in:
Hsiao-Wei Wang
2022-06-25 00:13:20 +08:00
committed by GitHub
parent 94da861d9c
commit a3339c7b7f

View File

@@ -77,7 +77,7 @@ def bls_modular_inverse(x: BLSFieldElement) -> BLSFieldElement:
```python
def div(x: BLSFieldElement, y: BLSFieldElement) -> BLSFieldElement:
"""Divide two field elements: `x` by `y`"""
return x * inv(y) % BLS_MODULUS
return x * bls_modular_inverse(y) % BLS_MODULUS
```
#### `lincomb`