Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
636 stars 187 forks source link

Is there a way to get the address from mnemonics? #120

Closed Nahatakyan closed 2 years ago

Nahatakyan commented 2 years ago

Hi. I am new to Web3 and maybe my question will be wrong) Currently, I am using Web3Swift and with that library, I can create an address, take mnemonics, then add what wallet to another app with that mnemonics. Now I want to use WalletConnect in my app and want to change that Web3Swift to yours, but can't find a way to get or create the address.

koraykoska commented 2 years ago

Mnemonics are not directly supported by this library as we work with PrivateKeys. You can use one of the many libraries out there to generate mnemonics, derive their private key and then use this private key to initialize the PrivateKey this library uses.

koraykoska commented 2 years ago

This one is an example: https://github.com/keefertaylor/MnemonicKit

Nahatakyan commented 2 years ago

Thanks @koraykoska