consenlabs / token-core-ios

a blockchain private key management library on iOS
Apache License 2.0
879 stars 229 forks source link

importFromMnemonic 在ETHKey.swift中崩溃 #73

Closed caiyanzhong closed 5 years ago

caiyanzhong commented 5 years ago
        var metadata = WalletMeta(source: .newIdentity)
        metadata.network = Network.mainnet
        metadata.name = "Wallet"
        metadata.chain = .eth
        let (mnemonic, identity) = try Identity.createIdentity(password: "121212", metadata: metadata)
        let ethereumWallet = identity.wallets[0]
        let bitcoinWalelt = identity.wallets[1]
        print(mnemonic);
        print(ethereumWallet);
        print(bitcoinWalelt);

        let mnemonicStr = "..."
        let www = try WalletManager.importFromMnemonic(mnemonicStr, metadata: metadata, encryptBy: "111111", at: "asas")

创建钱包后 调用WalletManager.importFromMnemonic崩溃