Portal Mobile Mpc Enclave
PortalMobileMpcEnclave is an implementation of PortalMobileMpc that handles signing requests using a remote MPC (Multi-Party Computation) enclave which runs the MPC code in a secure AWS Nitro Enclave with the same non-custodial guarantees as client-side MPC. It communicates
To use this, you need to enable it in io.portalhq.android.mpc.data.FeatureFlags
Parameters
The base URL of the MPC enclave. If it starts with "10.0.2.2", it's treated as a development environment and uses HTTP, otherwise HTTPS is used.
The transport every enclave call goes through. Unlike the MPC binary, the enclave's requests are made by the SDK, so a 401 from it is a rejection the SDK can see — but only through the transport that carries it. Portal passes its own, whose onUnauthorized invalidates the credential and fires onSessionInvalidated; a directly-constructed instance gets a transport of its own, and a 401 on it retires nothing.