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

new crypto method "getAddressFromPrivateKey" #952

Closed
roccomuso opened this issue Dec 18, 2018 · 1 comment
Closed

new crypto method "getAddressFromPrivateKey" #952

roccomuso opened this issue Dec 18, 2018 · 1 comment

Comments

@roccomuso
Copy link

roccomuso commented Dec 18, 2018

I saw cryptography module always assume the use of a passphrase to get the keys.

Is there a way through the cryptography module to craft a getAddressFromPrivateKey method?
and so the get a public or address from a privateKey instead of a passphrase?

I used this at the moment nacl.sign.keyPair.fromSecretKey(Buffer.from(privKey, 'hex'))

@MaciejBaj MaciejBaj reopened this Dec 19, 2018
@mitsuaki-u
Copy link
Contributor

We currently don't have functionality in cryptography module to support this feature, however we will include it in 2.1 release. For the time being I would recommend the nacl function you are already utilizing.

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

No branches or pull requests

4 participants