MetaMask / key-tree

MIT License
49 stars 19 forks source link

Add convenience methods for public keys and addresses #50

Closed Mrtenz closed 2 years ago

Mrtenz commented 2 years ago

Needs to be rebased after #43 is merged. Done.

This PR adds convenience methods to get the (Ethereum) address and public key from an HD node.

Why use a function instead of a getter? The method for deriving a public key from a private key can be async (in the case of ed25519 for example), so it had to be an async function.

Closes #45.