# MPC = Trustless Execution

## Multi-Party Computation for Secure, Decentralized Actions

Executing decisions, especially those involving control over assets or critical system parameters (triggered via the Decision Plugin's `reply_decision(true)`), requires high security and decentralization. Integrating Multi-Party Computation (MPC) provides a robust solution:

* **Purpose:** To allow a group of participants (typically the Committers) to collectively authorize and execute sensitive actions without any single participant ever holding the complete authority or private key.
* **Mechanism:** The Committers form an MPC group managing cryptographic keys associated with the Agent's capabilities (e.g., keys for a multi-signature wallet controlled by the Agent, authorization keys for specific system functions). These keys are sharded, with each Committer holding only a share.
* **Trigger:** A canonical interaction result, validated through the standard DeAgent consensus process, containing an approved `reply_decision(true)` directive from the Agent's Lobe.
* **MPC Protocol Execution:** Upon validating the approved decision, the Committers initiate a secure MPC protocol amongst themselves. They use their key shares to collectively generate the required cryptographic signature or authorization message needed to execute the Action Payload specified in the original decision request, *without* ever reconstructing the full private key in one place.
* **Action Execution:** The collectively generated signature/message is then broadcast to the distributed system to execute the intended on-chain action (e.g., submitting the signed transaction).
* **Benefits:**
  * **Enhanced Security:** Eliminates single points of failure/attack; the private key is never exposed.
  * **Increased Decentralization:** Control is distributed among the Committers, aligning with the ethos of decentralized systems.
  * **Trustless Execution:** Enables Agents to manage assets or perform critical actions in a verifiable and secure manner, essential for Agent autonomy and governance roles.

MPC integration, particularly linked to the Decision Plugin, provides the necessary security layer for DeAgents to act as trusted custodians, managers, or governors within distributed ecosystems.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deagentai.gitbook.io/deagentai/technical-architecture/mpc-trustless-execution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
