1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-29 01:28:10 +00:00

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

This commit is contained in:
Andrew Kozlik 2024-12-27 21:14:03 +01:00
parent 5fa55825db
commit 6c0ab54da8

View File

@ -168,10 +168,7 @@ async def _entropy_check(secret: bytes) -> bool:
assert GetPublicKey.is_type_of(req)
req.show_display = False
curve_name = (
req.ecdsa_curve_name
or coininfo.by_name(req.coin_name).curve_name
)
curve_name = req.ecdsa_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)