capture hardware platform into backups

This commit is contained in:
Peter D. Gray 2023-12-18 09:35:06 -05:00
parent 77f63ecd28
commit 3197ad19e5
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
2 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ def render_backup_contents(bypass_tmp=False):
ADD('fw_date', date)
ADD('fw_version', vers)
ADD('fw_timestamp', timestamp)
COMMENT('Coldcard Hardware')
ADD('serial', version.serial_number())
ADD('hardware', version.hw_label)
COMMENT('User preferences')

View File

@ -19,7 +19,7 @@ if 1:
comments = 0
blanks = 0
checklist = set('mnemonic chain xprv xpub raw_secret fw_date fw_version fw_timestamp serial '
'setting.terms_ok setting.idle_to setting.chain'.split(' '))
'hardware setting.terms_ok setting.idle_to setting.chain'.split(' '))
optional = set('setting.nfc setting.pms setting.axi setting.nick setting.lgto setting.usr hsm_policy setting.words long_secret multisig setting.multisig setting.fee_limit setting.tp setting.check duress_xprv duress_xpub duress_1001_words duress_1002_words duress_1003_words'.split(' '))
for ln in render_backup_contents().split('\n'):