Skip to content

Commit

Permalink
feat: remove breakpoint and prints
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed May 1, 2024
1 parent 8db420f commit 713fd6c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ape_aws/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
def _convert_der_to_rsv(
signature: bytes, v_adjustment_factor: int = 0
) -> dict:
breakpoint()
r, s = ecdsa.util.sigdecode_der(signature, ecdsa.SECP256k1.order)
v = signature[0] + v_adjustment_factor
if s > SECP256_K1_N / 2:
s = SECP256_K1_N - s
print('s > SEC')
if r > SECP256_K1_N / 2:
print('r > SEC')
r = r.to_bytes(32, byteorder='big')
s = s.to_bytes(32, byteorder='big')
return dict(v=v, r=r, s=s)
Expand Down

0 comments on commit 713fd6c

Please sign in to comment.