Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Only compute pubkey on demand. #97

Merged
merged 1 commit into from Jul 4, 2016
Merged

Conversation

jhoenicke
Copy link
Collaborator

This is the second half of pull request trezor/trezor-crypto#61. This changes the firmware to compute the public key where necessary and compute the fingerprint of the parent public key as required to produces BIP32 compatible xpub keys.

I'm not so happy with the way ed25519 public keys are handled. I think they should be returned as 32 byte keys, but I didn't want to change the API without discussion and it would also break unit tests in python-trezor. For backward compatibility I now replace the new 01 prefix in these public keys back to 00 again.

Changed all hdnode callers to call hdnode_fill_public_key if
they need the public key.
@prusnak prusnak merged commit ae4dff6 into trezor:master Jul 4, 2016
@prusnak
Copy link
Member

prusnak commented Jul 4, 2016

Merged in. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants