@staticmethod
def _get_digest(key_iterator):
    """
        Extracts parameters for :py:meth:`address_from_digest`.

        Split into a separate method so that it can be mocked during
        unit tests.
        """
    private_key = next(key_iterator)
    return private_key.get_digest()
