Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Cannot export privateKey data #290

Open
vanpd-0859 opened this issue Mar 21, 2019 · 0 comments
Open

Cannot export privateKey data #290

vanpd-0859 opened this issue Mar 21, 2019 · 0 comments

Comments

@vanpd-0859
Copy link

    Web3.default = Web3(infura: .ropsten)
    let mnemonicsString = "shop inhale clutch young found cherry beauty enforce early ramp grunt pact voice front light trash shed jar giraffe snow misery radio number draw"
    let mnemonics = try! Mnemonics(mnemonicsString)
    let keystore = try! BIP32Keystore(mnemonics: mnemonics)
    Web3.default.keystoreManager = KeystoreManager([keystore])
    let privateKey = try! keystore.UNSAFE_getPrivateKeyData(password: "", account: keystore.addresses[0])

Fatal error: 'try!' expression unexpectedly raised an error: web3swift.AbstractKeystoreError.encryptionError("Failed to decrypt a keystore")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant