Creating an MPC wallet
MPC Wallet
Additional Notes:
- Use Trust Wallet Core to derive the `secret` using the Derivation Path.
- CoinType.ethereum
- CoinType.solana
- CoinType.arbitrum
- More coins : https://trustwallet.github.io/docc/documentation/walletcore/cointype/
- Refer to the Trust Wallet Registry for `ChainId` and `ecType`: https://github.com/trustwallet/wallet-core/blob/master/registry.json
let walletResponse = client.createMpcWallet(
name: "KeyGenGroupID123",
numParties: 2,
mnemonicPhrase: "your mnemonic phrase here",
wallets: [
MpcKeyGenWallet(
derivationPath: "m/84/0/0/0/0",
chainId: "ethereum",
ecType: "ecdsa"
)
]
)
for masterWallet in walletResponse.masterWallets {
for wallet in masterWallet {
// Assuming wallet has properties: keyIdentity, ecType, and address
print("keyIdentity: \(wallet.keyIdentity) - ecType: \(wallet.ecType) - address: \(wallet.address)")
}
}
Mnemonic Compatible MPC Wallet
Last updated