hydrachain/consensus/simulation.py
def mk_privkeys(num):
    "make privkeys that support coloring, see utils.cstr"
    privkeys = []
    assert num <= num_colors
    for i in range(num):
        j = 0
        while True:
            k = sha3(str(j))
            a = privtoaddr(k)
            an = big_endian_to_int(a)
            if an % num_colors == i:
                break
            j += 1
        privkeys.append(k)
    return privkeys
def mk_privkeys(num):
    "make privkeys that support coloring, see utils.cstr"
    privkeys = []
    assert num <= num_colors
    for i in range(num):
        j = 0
        while True:
            k = sha3(str(j))
            a = privtoaddr(k)
            an = big_endian_to_int(a)
            if an % num_colors == i:
                break
            j += 1
        privkeys.append(k)
    return privkeys
def mk_privkeys ( num ) : privkeys = [ ] assert num <= num_colors for i in range ( num ) : j = 0 while True : k = sha3 ( str ( j ) ) a = privtoaddr ( k ) an = big_endian_to_int ( a ) if an % num_colors == i : break j += 1 privkeys . append ( k ) return privkeys
make privkeys that support coloring, see utils.cstr
make privkeys that support coloring see utils . cstr