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