mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 13:14:57 -05:00
PR suggestion from @Inphi
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user