Mpc
Mpc
is a class that handles Multi-Party Computation (MPC) operations, providing functionality for generating, backing up, recovering, and ejecting private keys for various blockchain networks. It interacts with an external API, a local keychain, and various cloud storage adapters to manage cryptographic shares securely.
This class supports generating and managing wallets for multiple curves like SECP256K1 (Ethereum) and ED25519 (Solana).
Constructors
Functions
Initiates a backup process for the wallet using the specified backup method.
Configures the Google Drive storage for backup.
Configures the Passkey storage for backup.
Ejects the private key from the MPC storage using the provided backup method.
Ejects multiple private keys from the MPC storage using the provided backup method.
Generates a new Solana wallet for the client, ensuring that an Ethereum wallet already exists.
Generates new wallets for both SECP256K1 and ED25519 curves using Multi-Party Computation (MPC).
Retrieves the CloudStorageAdapter associated with the specified backup method.
Checks whether WebSocket connections are allowed for the given MPC host.
Registers a backup method with a corresponding cloud storage adapter.
Sets the password for the password-based backup method.