1
0

swaps: code style clean-up, add type hints, force kwargs

no intended functional changes
This commit is contained in:
SomberNight
2023-11-22 17:50:29 +00:00
parent 9d5d582752
commit 9f1b8613d0
8 changed files with 120 additions and 66 deletions

View File

@@ -330,7 +330,7 @@ def sha256d(x: Union[bytes, str]) -> bytes:
def hash_160(x: bytes) -> bytes:
return ripemd(sha256(x))
def ripemd(x):
def ripemd(x: bytes) -> bytes:
try:
md = hashlib.new('ripemd160')
md.update(x)