Skip to content

Commit

Permalink
fix: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Jul 6, 2024
1 parent 9756703 commit d8d8c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pragma-sdk/pragma_sdk/common/randomness/randomness_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def ecvrf_proof_to_hash(pi_string):


# Section 5.3. ECVRF Verifying
def ecvrf_verify(y, pi_string, alpha_string) -> (str, list):
def ecvrf_verify(y, pi_string, alpha_string) -> (str, list): # type: ignore[syntax]
"""
Input:
y - public key, an EC point as bytes
Expand Down Expand Up @@ -181,7 +181,7 @@ def get_public_key(secret_key: str) -> str:
secret_int = _get_secret_scalar(secret_key)
public_point = _scalar_multiply(p=BASE, e=secret_int)
public_string = _encode_point(public_point)
return public_string
return public_string # type: ignore[no-any-return]


# Internal functions
Expand Down

0 comments on commit d8d8c7e

Please sign in to comment.