Beispiel #1
0
 def hash160_to_address(cls, h160):
     raw_address = cls.pubkey_address_prefix + h160
     return Base58.encode(
         bytearray(raw_address + double_sha256(raw_address)[0:4]))
Beispiel #2
0
 def address(self) -> str:
     if self.address_bytes:
         return Base58.encode(self.address_bytes)