mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 08:05:33 +03:00
hide secret wallet key by default with 'chia keys show' (#3565)
Co-authored-by: Adam Kelly <aqk@aqk.im>
This commit is contained in:
parent
912dc84663
commit
faa5c832d1
@ -82,10 +82,6 @@ def show_all_keys(show_mnemonic: bool):
|
||||
master_sk_to_farmer_sk(sk).get_g1(),
|
||||
)
|
||||
print("Pool public key (m/12381/8444/1/0):", master_sk_to_pool_sk(sk).get_g1())
|
||||
print(
|
||||
"First wallet key (m/12381/8444/2/0):",
|
||||
master_sk_to_wallet_sk(sk, uint32(0)).get_g1(),
|
||||
)
|
||||
print(
|
||||
"First wallet address:",
|
||||
encode_puzzle_hash(create_puzzlehash_for_pk(master_sk_to_wallet_sk(sk, uint32(0)).get_g1()), prefix),
|
||||
@ -93,6 +89,10 @@ def show_all_keys(show_mnemonic: bool):
|
||||
assert seed is not None
|
||||
if show_mnemonic:
|
||||
print("Master private key (m):", bytes(sk).hex())
|
||||
print(
|
||||
"First wallet secret key (m/12381/8444/2/0):",
|
||||
master_sk_to_wallet_sk(sk, uint32(0)).get_g1(),
|
||||
)
|
||||
mnemonic = bytes_to_mnemonic(seed)
|
||||
print(" Mnemonic seed (24 secret words):")
|
||||
print(mnemonic)
|
||||
|
Loading…
Reference in New Issue
Block a user