Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to get public key After generating a wallet? #233

Closed
amirhossein7 opened this issue Dec 11, 2019 · 2 comments
Closed

How to get public key After generating a wallet? #233

amirhossein7 opened this issue Dec 11, 2019 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@amirhossein7
Copy link

No description provided.

@TonioMacaronio
Copy link
Collaborator

Hi, @amirhossein7. If you saved your data in KeystoreManager, try this

let privateKey = try! keystoreManager.UNSAFE_getPrivateKeyData(password: password, account: ethereumAddress)
let publicKey = Web3.Utils.privateToPublic(privateKey, compressed: false)!

@amirhossein7
Copy link
Author

thanks @BaldyAsh

@skywinder skywinder added the question Further information is requested label Dec 12, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants