Skip to content

Commit 0db054d

Browse files
committed
do not use single-letter variable names
1 parent 9eb6238 commit 0db054d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eth/precompiles/bls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def _parse_fp2_element(data: bytes) -> bls12_381.FQ2:
206206
)
207207

208208

209-
def _map_fp2_to_g2(x: bls12_381.FQ2) -> G2Point:
210-
point = bls.hash_to_curve.map_to_curve_G2(x)
209+
def _map_fp2_to_g2(field_element: bls12_381.FQ2) -> G2Point:
210+
point = bls.hash_to_curve.map_to_curve_G2(field_element)
211211
return bls12_381.normalize(point)
212212

213213

@@ -217,8 +217,8 @@ def map_fp2_to_g2(computation: BaseComputation,
217217

218218
try:
219219
input_data = computation.msg.data_as_bytes
220-
x = _parse_fp2_element(input_data[:FP2_SIZE_IN_BYTES])
221-
result = _map_fp2_to_g2(x)
220+
field_element = _parse_fp2_element(input_data[:FP2_SIZE_IN_BYTES])
221+
result = _map_fp2_to_g2(field_element)
222222
except ValidationError:
223223
raise VMError("Invalid BLS_MAP_FP2_TO_G2 parameters")
224224

0 commit comments

Comments
 (0)