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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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`