You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/crypto/scripts.py

12 lines
300 B

from trezor.crypto.hashlib import blake256, ripemd160, sha256
class sha256_ripemd160(sha256):
def digest(self) -> bytes:
return ripemd160(super().digest()).digest()
class blake256_ripemd160(blake256):
def digest(self) -> bytes:
return ripemd160(super().digest()).digest()