Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww authored Apr 7, 2021
1 parent 59ad3d5 commit a8c5595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py_ecc/bls/point_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def decompress_G2(p: G2Compressed) -> G2Uncompressed:
# Else, not point at infinity
# 3 MSBs should be 100 or 101
x1 = z1 % POW_2_381
# Ensure that x1 is less than the field modulus.
if x1 >= q:
raise ValueError("x1 value should be less than field modulus. Got %d", x1)

Expand Down

0 comments on commit a8c5595

Please sign in to comment.