Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
642 stars 189 forks source link

How to export keystore from the wallets which created by Mnemonic Phrase #56

Open Jonyzfu14 opened 6 years ago

Jonyzfu14 commented 6 years ago

We can import a wallet using Mnemonic Phrase, but how to export keystore file after this wallet generated. Shall I use keystore.swift you wrote?

koraykoska commented 6 years ago

Yes, use keystore.swift to export private keys encrypted as keystore files.

Btw, how do you import mnemonics? I actually need this right now...

On Thu, Jul 26, 2018, 11:56 Jonyzfu14 notifications@github.com wrote:

We can import a wallet using Mnemonic Phrase, but how to export keystore file after this wallet generated. Shall I use keystore.swift you wrote?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Boilertalk/Web3.swift/issues/56, or mute the thread https://github.com/notifications/unsubscribe-auth/AK1Jzf_EWpLjz0-q75xafzRs0pMHdWaUks5uKZJJgaJpZM4Vhhc_ .

sche commented 4 years ago

@koraykoska hey I just wonder, so the lib does not support importing an account by mnemonic yet, right?

koraykoska commented 4 years ago

@sche No. I started an implementation a while back. But I did not finish it and it's been too long to get into it fast. If you create an IssueHunt issue I can look into it. Or you can always do it yourself and make a PR.

koraykoska commented 4 years ago

@sche Actually, maybe it's even better to make a custom library like keystore.swift. I like keeping this repository clean and working only with raw bytes.

koraykoska commented 4 years ago

@sche Some relevant information regarding this:

https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

https://github.com/bitcoinjs/bip39

https://github.com/miguelmota/ethereum-hdwallet

Join our Telegram channel for more discussions: https://t.me/joinchat/BPk3DE6CTFaiOolSIZNLyg