Add XFP to public.txt output

This commit is contained in:
Peter D. Gray 2019-04-05 09:16:36 -04:00
parent f3f80a1f15
commit ca5f921dcc
No known key found for this signature in database
GPG Key ID: F0E6CC6AFC16CF7B
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 2.0x - ??
- Public summary file now includes extended master key fingerprint near top of file.
## 2.0.1 - Apr 2019
- BIP39 Passphrase support: enter up to 100 characters to create

View File

@ -415,8 +415,9 @@ def generate_public_contents():
yield ('''\
# Coldcard Wallet Summary File
## For wallet with master key fingerprint: 0x{xfp:08x}
## Wallet operates on blockchain: {nb}
### Wallet operates on blockchain: {nb}
For BIP44, this is coin_type '{ct}', and internally we use symbol {sym} for this blockchain.
@ -424,11 +425,12 @@ For BIP44, this is coin_type '{ct}', and internally we use symbol {sym} for this
{xpub}
Derived public keys, as may be needed for different systems:
'''.format(nb=chain.name, xpub=chain.serialize_public(sv.node),
sym=chain.ctype, ct=chain.b44_cointype))
sym=chain.ctype, ct=chain.b44_cointype, xfp=sv.node.my_fingerprint()))
for name, path, addr_fmt in chains.CommonDerivations: