1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

paths: temporarily disable GetPublicKey paths checks

Until trezor/trezor.js#73 is fixed
This commit is contained in:
Tomas Susanka 2018-11-08 14:28:58 +01:00
parent 31f987e988
commit 8cf1ee5e62

View File

@ -3,8 +3,7 @@ from trezor.messages import InputScriptType
from trezor.messages.HDNodeType import HDNodeType from trezor.messages.HDNodeType import HDNodeType
from trezor.messages.PublicKey import PublicKey from trezor.messages.PublicKey import PublicKey
from apps.common import coins, layout, paths, seed from apps.common import coins, layout, seed
from apps.wallet.sign_tx.addresses import validate_path_for_bitcoin_public_key
async def get_public_key(ctx, msg): async def get_public_key(ctx, msg):
@ -12,10 +11,6 @@ async def get_public_key(ctx, msg):
coin = coins.by_name(coin_name) coin = coins.by_name(coin_name)
script_type = msg.script_type or InputScriptType.SPENDADDRESS script_type = msg.script_type or InputScriptType.SPENDADDRESS
await paths.validate_path(
ctx, validate_path_for_bitcoin_public_key, path=msg.address_n, coin=coin
)
curve_name = msg.ecdsa_curve_name curve_name = msg.ecdsa_curve_name
if not curve_name: if not curve_name:
curve_name = coin.curve_name curve_name = coin.curve_name