Open wkn66 opened 3 years ago
let source = WalletMeta.Source.privateKey var metadata = WalletMeta(source: source) metadata.chain = .btc metadata.network = Network.testnet metadata.segWit = .p2wpkh metadata.name = "" try?Identity.createIdentity(password: "", metadata: metadata) guard let wallet = try? WalletManager.importFromPrivateKey(privateKey, encryptedBy: "", metadata: metadata) else { print("1213") return Identity.currentIdentity?.wallets.forEach({ (wallet) in print(wallet) })