PortalMobileMpc

open class PortalMobileMpc

PortalMobileMpc is a class that provides an interface to interact with the MPC (Multi-Party Computation) binary included in the mpc.aar file. It offers functionalities for managing Ed25519 and Secp256k1 wallets, including generation, backup, recovery, signing, encryption, decryption, and other utility methods.

This class acts as a wrapper around the underlying Go-based MPC implementation, exposing its core capabilities through Kotlin-friendly methods.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun backup(clientApiKey: String?, host: String?, dkgData: String?, apiAddress: String?, metadata: String?): String
Link copied to clipboard
open fun backupEd25519(clientApiKey: String?, mpcHost: String?, signingShare: String?, apiHost: String?, metadata: String?): String
Link copied to clipboard
open fun backupSecp256k1(clientApiKey: String?, mpcHost: String?, signingShare: String?, apiHost: String?, metadata: String?): String
Link copied to clipboard
open fun decrypt(privateKey: String, cipherText: String): DecryptResult
Link copied to clipboard
open fun decryptWithPassword(password: String, cipherText: String): DecryptResult
Link copied to clipboard
open fun eject(clientShare: String, orgShare: String): String
Link copied to clipboard
open fun ejectEd25519(clientShare: String, orgShare: String): String
Link copied to clipboard
open fun encrypt(value: String): EncryptedResult
Link copied to clipboard
Link copied to clipboard
open fun formatShares(sharesJSON: String): String
Link copied to clipboard
open fun generate(clientApiKey: String?, address: String?, apiAddress: String?, metadata: String?): String

Legacy functions

Link copied to clipboard
open fun generateEd25519(clientApiKey: String?, mpcHost: String?, apiHost: String?, metadata: String?): String
Link copied to clipboard
open fun generateSecp256k1(clientApiKey: String?, mpcHost: String?, apiHost: String?, metadata: String?): String
Link copied to clipboard
open fun getClient(url: String, apiKey: String): String
Link copied to clipboard
open fun getCustodianIdClientIdHashes(custodianIdClientIdJSON: String): String
Link copied to clipboard
open fun getVersion(): String
Link copied to clipboard
open fun isWebSocketAllowed(mpcHost: String): String
Link copied to clipboard
open fun recoverBackup(clientApiKey: String?, address: String?, dkgData: String?, apiAddress: String?, metadata: String?): String
Link copied to clipboard
open fun recoverEd25519(clientApiKey: String?, mpcHost: String?, backupShare: String?, apiHost: String?, metadata: String?): String
Link copied to clipboard
open fun recoverSecp256k1(clientApiKey: String?, mpcHost: String?, backupShare: String?, apiHost: String?, metadata: String?): String
Link copied to clipboard
open fun recoverSigning(clientApiKey: String?, address: String?, dkgData: String?, apiAddress: String?, metadata: String?): String
Link copied to clipboard
open fun sign(clientApiKey: String?, mpcHost: String?, dkgData: String?, method: String?, params: String?, rpcUrl: String?, chainId: String?, metadata: String?): String