6 from zeth.cli.utils import get_zeth_address_file, pub_address_file, \
7 write_zeth_address_secret, write_zeth_address_public
8 from click
import command, pass_context, ClickException, Context
9 from os.path
import exists
16 Generate a new Zeth secret key and public address
21 raise ClickException(f
"ZethAddress file {addr_file} exists")
24 if exists(pub_addr_file):
25 raise ClickException(f
"ZethAddress pub file {pub_addr_file} exists")
29 print(f
"ZethAddress Secret key written to {addr_file}")
31 print(f
"Public ZethAddress written to {pub_addr_file}")