You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// You should create or recover Identity first before you create other wallets
do {
var metadata = WalletMeta(source: .newIdentity)
metadata.network = Network.mainnet
metadata.segWit = .p2wpkh // .p2wpkh means that the derived btc wallet is a SegWit wallet
metadata.name = "MyFirstIdentity"
let (mnemonic, identity) = try Identity.createIdentity(password: TestData.password, metadata: metadata)
let ethereumWallet = identity.wallets[0]
let bitcoinWalelt = identity.wallets[1]
} catch {
print("createIdentity failed, error:\(error)")
}
// You should create or recover Identity first before you create other wallets
do {
var metadata = WalletMeta(source: .newIdentity)
metadata.network = Network.mainnet
metadata.segWit = .p2wpkh // .p2wpkh means that the derived btc wallet is a SegWit wallet
metadata.name = "MyFirstIdentity"
let (mnemonic, identity) = try Identity.createIdentity(password: TestData.password, metadata: metadata)
let ethereumWallet = identity.wallets[0]
let bitcoinWalelt = identity.wallets[1]
} catch {
print("createIdentity failed, error:\(error)")
}
我通过私钥倒入,怎么创建身份?
The text was updated successfully, but these errors were encountered: