MetaMask / key-tree

MIT License
49 stars 19 forks source link

Invalid hex string when using getBIP44AddressKeyDeriver #62

Closed alanorwick closed 2 years ago

alanorwick commented 2 years ago

Hello,

I'm attempting to follow the below example in the snaps tutorial and am receiving Invalid hex string "undefined" on the getBIP44AddressKeyDeriver function. I'm assuming this is coming from the chainCode or publicKey coming in as null from the snap_getBig44Entropy_3 request.

Was wondering if anyone has seen this before or has a solution to it.

Thank you!

Screen Shot 2022-05-17 at 8 23 35 PM

Screen Shot 2022-05-17 at 8 23 59 PM
Mrtenz commented 2 years ago

key-tree 4 is not used in the extension yet, and the output of key-tree 3 (returned by snap_getBip44Entropy_3) isn't compatible with version 4. For now you can use key-tree@3.0.1 instead until MetaMask/metamask-extension#14700 is merged and released.