def challenge(elements):
    """Packages a challenge in a bijective way"""
    elem = [len(elements)] + elements
    elem_str = map(str, elem)
    elem_len = map(lambda x: (len(x) , x) % "%s||%s", elem_str)
    state = "|".join(elem_len)
    H = sha256()
    H.update(state.encode("utf8"))
    return H.digest()
dataset/ETHPy150Open gdanezis/petlib/examples/genzkp.py/challenge/swapped operands of `%`