fixup! feat(core): implement repeated backup

matejcik/repeated-backup-tmp
Ioan Bizău 2 weeks ago
parent 65fef0e3af
commit 0fc983dcc0

@ -1240,7 +1240,7 @@ pub enum TranslatedString {
reset__create_x_of_y_shamir_backup_template = 845, // "Do you want to create a {0} of {1} Shamir backup?"
reset__title_shamir_backup = 846, // "Shamir backup"
recovery__title_unlock_repeated_backup = 847, // "Unlock backup"
recovery__unlock_repeated_backup = 848, // "Do you want to unlock the backup?"
recovery__unlock_repeated_backup = 848, // "Do you want to unlock the seed for repeated backup?"
recovery__unlock_repeated_backup_verb = 849, // "Unlock backup"
}
@ -2477,7 +2477,7 @@ impl TranslatedString {
Self::reset__create_x_of_y_shamir_backup_template => "Do you want to create a {0} of {1} Shamir backup?",
Self::reset__title_shamir_backup => "Shamir backup",
Self::recovery__title_unlock_repeated_backup => "Unlock backup",
Self::recovery__unlock_repeated_backup => "Do you want to unlock the backup?",
Self::recovery__unlock_repeated_backup => "Do you want to unlock the seed for repeated backup?",
Self::recovery__unlock_repeated_backup_verb => "Unlock backup",
}
}

@ -536,7 +536,7 @@ class TR:
recovery__title_remaining_shares: str = "Remaining shares"
recovery__title_unlock_repeated_backup: str = "Unlock backup"
recovery__type_word_x_of_y_template: str = "Type word {0} of {1}"
recovery__unlock_repeated_backup: str = "Do you want to unlock the backup?"
recovery__unlock_repeated_backup: str = "Do you want to unlock the seed for repeated backup?"
recovery__unlock_repeated_backup_verb: str = "Unlock backup"
recovery__wallet_recovered: str = "Wallet recovered successfully"
recovery__wanna_cancel_dry_run: str = "Are you sure you want to cancel the backup check?"

@ -121,6 +121,8 @@ trezor.enums.PinMatrixRequestType
import trezor.enums.PinMatrixRequestType
trezor.enums.RecoveryDeviceType
import trezor.enums.RecoveryDeviceType
trezor.enums.RecoveryInputMethod
import trezor.enums.RecoveryInputMethod
trezor.enums.RecoveryKind
import trezor.enums.RecoveryKind
trezor.enums.RecoveryStatus

@ -54,7 +54,7 @@ async def recovery_device(msg: RecoveryDevice) -> Success:
if key not in DRY_RUN_ALLOWED_FIELDS and value is not None:
raise wire.ProcessError(f"Forbidden field set in dry-run: {key}")
else:
raise RuntimeError # Unknown RecoveryKind
raise RuntimeError # Unknown RecoveryKind
if msg.enforce_wordlist is False:
raise wire.ProcessError(

@ -7985,7 +7985,7 @@
"T2T1_en_test_recovery.py::test_recovery_bip39": "65a138f634806c6483c55c6ce5365b8a7a4073a3c0c340b1826042262faa8545",
"T2T1_en_test_recovery.py::test_recovery_bip39_previous_word": "a009899ccd3305cb6737c8fa645cc9eedf4e46d6669a621a07d8cd9447d80f2f",
"T2T1_en_test_recovery.py::test_recovery_slip39_basic": "9b0f5a7b8d2ab0fed1e5389076bc035e24dce377d275824220f1aa61e9bb4810",
"T2T1_en_test_repeated_backup.py::test_repeated_backup": "690bff435eb5ff9dc53a2ce0268d5e2790a18181c6e9d8d50c57b01f63aa8d68",
"T2T1_en_test_repeated_backup.py::test_repeated_backup": "495456518699523b147c58b0208f67dafa343f7c8f60b4089e9d60b05f8506d5",
"T2T1_en_test_reset_bip39.py::test_reset_bip39": "1feb3fcae2c593ea9193bcab23d8e64accd6fdbd2b05e2d2403ff89f8f94e4d8",
"T2T1_en_test_reset_slip39_advanced.py::test_reset_slip39_advanced[16of16]": "6dc6b1ed736a1073c05067f37b817bf139e832a41db7d7804622d4a452db7b2a",
"T2T1_en_test_reset_slip39_advanced.py::test_reset_slip39_advanced[2of2]": "50b553055335d639728e075c6757ae8cecea4887a0508876ce36501f81fcf7dc",
@ -12408,7 +12408,7 @@
"T2T1_en_test_protection_levels.py::test_unlocked": "4488e2b6f06fdff05749ac271d080182f1c95645de37898457ff12f0fb190381",
"T2T1_en_test_protection_levels.py::test_verify_message_t2": "cc09f0acf9e48b1355dae0be65a2a97abbe2811808feee08d46ae7146ce6bb6f",
"T2T1_en_test_protection_levels.py::test_wipe_device": "7ff017de646b7cf70832605e1750c635d0eb661d51534b56007b49e82b927011",
"T2T1_en_test_repeated_backup.py::test_repeated_backup": "729f3e12bf5f942ed2df44b4cef88dbfbe5c5eb8bf944ae88b3da458d4ce527e",
"T2T1_en_test_repeated_backup.py::test_repeated_backup": "73908c3179518eb56d12c089db64bc72ed82f41be56898c7654c8382d7fe869f",
"T2T1_en_test_sdcard.py::test_sd_format": "83d0d9b4eab3bf0eafc22d7d95e8b70bce477ba9c8b4ba13eeca9380ad5fdafa",
"T2T1_en_test_sdcard.py::test_sd_no_format": "14511e3d3ee535d97287d8ade25101e8c16db17c1dc5d3151b91e5e8eba61ba5",
"T2T1_en_test_sdcard.py::test_sd_protect_unlock": "1302f9a0835cac621142a17031d2150553e676261a3eeeefd32fcf1e69c7bd1a",
@ -15546,7 +15546,7 @@
"T3T1_en_test_recovery.py::test_recovery_bip39": "62947c5512e7ba33f77af5d67d2063918dcccea5d5530db89f04bffa0c309ae6",
"T3T1_en_test_recovery.py::test_recovery_bip39_previous_word": "35c67f93da34ba0f3c72a09076391bbc1ef24661d7ff8102f0394ee50250b29b",
"T3T1_en_test_recovery.py::test_recovery_slip39_basic": "a9f1ab4971b614ec67fdaa9602f72ba5eebe54204b3735f8aa2b91ddeee41a19",
"T3T1_en_test_repeated_backup.py::test_repeated_backup": "6cefadb1d5a1694763f5700ea4ed5956274ea2e3ce1f12a411ce22ce4a479892",
"T3T1_en_test_repeated_backup.py::test_repeated_backup": "5324827add97b6e7d7fe75b6b9be450564c238f93033e88d2e6a687b4221680d",
"T3T1_en_test_reset_bip39.py::test_reset_bip39": "beab50474b19fedaf4487c64071529e4217288942e4695ed795632559835b20b",
"T3T1_en_test_reset_slip39_advanced.py::test_reset_slip39_advanced[16of16]": "ef7f63ddb82bcd7ca92d739865cf466741b531b86946b1524b8440382823a56a",
"T3T1_en_test_reset_slip39_advanced.py::test_reset_slip39_advanced[2of2]": "5ac9a51693538d546a37d7c6c8c3be260849bdccd84d4f92a2c48ac036914100",
@ -19843,7 +19843,7 @@
"T3T1_en_test_protection_levels.py::test_unlocked": "835c5327c35866df9acdf1433e75775eb652956b34ab6123595a06764389f61e",
"T3T1_en_test_protection_levels.py::test_verify_message_t2": "456368c2e05ef1a743baa467897ddcad4af06b9cc863b809740d145a66dd88cd",
"T3T1_en_test_protection_levels.py::test_wipe_device": "79922a132a2567d0a1b9b296b95fe7d1756e8af75681d9a0386fd104c0addf8c",
"T3T1_en_test_repeated_backup.py::test_repeated_backup": "d19e048726ad8c4bc0963dddcb0560c2c3ecb085cc05670f9053a5bb6f9c6b51",
"T3T1_en_test_repeated_backup.py::test_repeated_backup": "f87bc253f2576c82b996f5e64e105c64ae76d8387290674bb03e8a9b58d7299c",
"T3T1_en_test_sdcard.py::test_sd_format": "eb00c8c6d53fb2cbb1020f053219babe32ef3accb8ccefa8dbe315c03fb19149",
"T3T1_en_test_sdcard.py::test_sd_no_format": "14511e3d3ee535d97287d8ade25101e8c16db17c1dc5d3151b91e5e8eba61ba5",
"T3T1_en_test_sdcard.py::test_sd_protect_unlock": "097106b59798ff84733f7c6c4855cd52fbc3c0923e91aa84c0f81ac3ebc651b2",

Loading…
Cancel
Save