<s> import click <EOL> from pyethapp . accounts import mk_privkey <EOL> from devp2p . crypto import privtopub as privtopub_raw <EOL> from devp2p . utils import host_port_pubkey_to_uri <EOL> @ click . command ( ) <EOL> @ click . option ( '<STR_LIT>' , '<STR_LIT>' , default = "<STR_LIT:localhost>" ) <EOL> @ click . option ( '<STR_LIT>' , '<STR_LIT>' , default = <NUM_LIT> ) <EOL> @ click . argument ( '<STR_LIT>' , type = int ) <EOL> @ click . argument ( '<STR_LIT>' , type = int ) <EOL> def mk_enode ( seed , node_num , host , port ) : <EOL> print ( <EOL> host_port_pubkey_to_uri ( <EOL> host , <EOL> port , <EOL> privtopub_raw ( <EOL> mk_privkey ( <EOL> '<STR_LIT>' % ( seed , node_num ) ) ) ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> mk_enode ( ) </s>
