We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have try to create multiple eth account ,need to use separate Keystore json file for keystoremanagement ,any one know about this ?like trust wallet
The text was updated successfully, but these errors were encountered:
Yes create a new keystore for each Wallet.
Sorry, something went wrong.
Create a new Keystore at a different path update the enums Accordingly
func getKeystoreManager (rawPath: WalletType) -> KeystoreManager? { let userDir = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] let path = userDir+"/keystore/(rawPath.rawValue)" return KeystoreManager.managerForPath(path, scanForHDwallets: true, suffix: "json") } enum WalletType: String { case main = "Primary" case alternate = "Secondary" }
func getKeystoreManager (rawPath: WalletType) -> KeystoreManager? {
let userDir = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
let path = userDir+"/keystore/(rawPath.rawValue)"
return KeystoreManager.managerForPath(path, scanForHDwallets: true, suffix: "json") }
enum WalletType: String { case main = "Primary" case alternate = "Secondary" }
ok thank you , I have tried this type .
No branches or pull requests
I have try to create multiple eth account ,need to use separate Keystore json file for keystoremanagement ,any one know about this ?like trust wallet
The text was updated successfully, but these errors were encountered: