def challenge(elements):
    elem = [len(elements)] + elements
    elem_str = list(map(str, elem))
    elem_len = list(map(lambda x: "%s||%s" % (len(x) , x), elem_str))
    state = "|".join(elem_len)
    H = sha256()
    H.update(state.encode("utf8"))
    return Bn.from_binary(H.digest())
test inspect network.
dataset/ETHPy150Open gdanezis/petlib/examples/GK15ringsig.py/challenge--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/dockerng_test.py/DockerngTestCase.test_inspect_network