1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-31 18:40:56 +00:00

fixup! feat(core): Implement entropy check workflow in ResetDevice.

Co-authored-by: matejcik <ja@matejcik.cz>
This commit is contained in:
Andrew Kozlik 2024-12-27 19:05:15 +01:00 committed by GitHub
parent 294661e22e
commit dfb6210e7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ async def _entropy_check(secret: bytes) -> bool:
req.show_display = False
curve_name = (
req.ecdsa_curve_name
or coininfo.by_name(req.coin_name or "Bitcoin").curve_name
or coininfo.by_name(req.coin_name).curve_name
)
keychain = Keychain(seed, curve_name, [paths.AlwaysMatchingSchema])
msg = await get_public_key(req, keychain=keychain)