swaps: code style clean-up, add type hints, force kwargs
no intended functional changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user