create Wallet
Creates a new wallet with Ethereum and Solana addresses.
This function utilizes the underlying MPC (Multi-Party Computation) service to generate a new set of addresses. It supports progress updates via a callback function.
Return
A Result
object that encapsulates either a CreateWalletsResponse
containing the generated Ethereum and Solana addresses, or a Throwable
in case of an error.
Parameters
progress
A lambda function that receives updates on the MPC operation's progress. It takes an MpcStatus
enum as a parameter, representing different stages of the wallet creation process. Defaults to an empty function if not provided.
Throws
if the generated addresses for either EIP155 (Ethereum) or Solana namespaces cannot be retrieved from storage.