mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-14 18:48:10 +00:00
12 lines
300 B
Python
12 lines
300 B
Python
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()
|