def get_config():
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
p = configargparse.getArgumentParser(default_config_files=[os.path.join(base_dir, 'conf.ini')])
p.add('-c', '--my-config', required=False, is_config_file=True, help='config file path')
p.add_argument('-k', '--extended_public_key', type=str, required=True,
help='the HD extended public key used to generate the revocation addresses')
p.add_argument('-p', '--key_path', type=str,
help='the key path used to derive the child key under which the addresses will be generated')
p.add_argument('-n', '--number_of_addresses', type=int, default=10,
help='the number of revocation addresses to generate')
p.add_argument('-o', '--output_file', type=str, help='the output file to save the revocation addresses')
p.add_argument('-u', '--use_uncompressed', action='store_true', default=False,
help='whether to use uncompressed bitcoin addresses')
args, _ = p.parse_known_args()
return args
create_revocation_addresses.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录