mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
eth: don't check for ed25519 in get public key
This commit is contained in:
parent
0d4efce5a7
commit
cf0b5d669b
@ -51,10 +51,6 @@ void fsm_msgEthereumGetPublicKey(const EthereumGetPublicKey *msg)
|
|||||||
resp->node.has_public_key = true;
|
resp->node.has_public_key = true;
|
||||||
resp->node.public_key.size = 33;
|
resp->node.public_key.size = 33;
|
||||||
memcpy(resp->node.public_key.bytes, node->public_key, 33);
|
memcpy(resp->node.public_key.bytes, node->public_key, 33);
|
||||||
if (node->public_key[0] == 1) {
|
|
||||||
/* ed25519 public key */
|
|
||||||
resp->node.public_key.bytes[0] = 0;
|
|
||||||
}
|
|
||||||
resp->has_xpub = true;
|
resp->has_xpub = true;
|
||||||
|
|
||||||
hdnode_serialize_public(node, fingerprint, coin->xpub_magic, resp->xpub, sizeof(resp->xpub));
|
hdnode_serialize_public(node, fingerprint, coin->xpub_magic, resp->xpub, sizeof(resp->xpub));
|
||||||
|
Loading…
Reference in New Issue
Block a user