iota/crypto/addresses.py
def address_from_digest(digest):
        # type: (Digest) -> Address
        """
        Generates an address from a private key digest.
        """
        address_trits = [0] * (Address.LEN * TRITS_PER_TRYTE)  # type: List[int]

        sponge = Kerl()
        sponge.absorb(digest.as_trits())
        sponge.squeeze(address_trits)

        return Address.from_trits(
            trits=address_trits,

            key_index=digest.key_index,
            security_level=digest.security_level,
        )
def address_from_digest(digest):
        # type: (Digest) -> Address
        address_trits = [0] * (Address.LEN * TRITS_PER_TRYTE)  # type: List[int]

        sponge = Kerl()
        sponge.absorb(digest.as_trits())
        sponge.squeeze(address_trits)

        return Address.from_trits(
            trits=address_trits,

            key_index=digest.key_index,
            security_level=digest.security_level,
        )
def address_from_digest ( digest ) : # type: (Digest) -> Address address_trits = [ 0 ] * ( Address . LEN * TRITS_PER_TRYTE ) # type: List[int] sponge = Kerl ( ) sponge . absorb ( digest . as_trits ( ) ) sponge . squeeze ( address_trits ) return Address . from_trits ( trits = address_trits , key_index = digest . key_index , security_level = digest . security_level , )
Generates an address from a private key digest.
Generates an address from a private key digest .