Open Jonyzfu14 opened 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_ .
@koraykoska hey I just wonder, so the lib does not support importing an account by mnemonic yet, right?
@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.
@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.
@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
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?