iota/crypto/addresses.py
def _generate_address(self, key_iterator):
        # type: (KeyIterator) -> Address
        """
        Generates a new address.

        Used in the event of a cache miss.
        """
        if self.checksum:
            return (
                self.address_from_digest(
                    digest=self._get_digest(key_iterator),
                ).with_valid_checksum()
            )
        else:
            return self.address_from_digest(self._get_digest(key_iterator))
def _generate_address(self, key_iterator):
        # type: (KeyIterator) -> Address
        if self.checksum:
            return (
                self.address_from_digest(
                    digest=self._get_digest(key_iterator),
                ).with_valid_checksum()
            )
        else:
            return self.address_from_digest(self._get_digest(key_iterator))
def _generate_address ( self , key_iterator ) : # type: (KeyIterator) -> Address if self . checksum : return ( self . address_from_digest ( digest = self . _get_digest ( key_iterator ) , ) . with_valid_checksum ( ) ) else : return self . address_from_digest ( self . _get_digest ( key_iterator ) )
Generates a new address.

        Used in the event of a cache miss.
Generates a new address .