Mpc Signer
class MpcSigner(keychain: MobileStorageAdapter, mpcUrl: String, version: String = "v6", featureFlags: FeatureFlags? = null)
MpcSigner
is responsible for handling the signing of requests using the MPC (Multi-Party Computation) protocol. It interacts with the Portal Mobile MPC library and a storage adapter for managing signing shares.
Constructors
Link copied to clipboard
constructor(keychain: MobileStorageAdapter, mpcUrl: String, version: String = "v6", featureFlags: FeatureFlags? = null)
Functions
Link copied to clipboard
suspend fun sign(apiKey: String, chainId: String, curve: PortalCurve, message: PortalSignRequest, rpcUrl: String): String
Signs a transaction or message using the MPC (Multi-Party Computation) protocol.