Main claim: Threshold MPC distributes an AI agent's signing authority across
t-of-npeers so one compromised participant stays below the signing threshold.
A high-privilege AI agent may authorize payments, deployments, certificates, or infrastructure commands. A signing identity held by one machine gives that machine unilateral cryptographic power. Threshold multi-party computation spreads the private operation across several peers and requires a quorum for every signature. This article explains the risk shift, the MPC and MCP acronyms, the choice of t and n, and the limits of distributed signing.
What is multi-party computation?
Multi-party computation, or MPC, lets several parties compute a result while keeping their private inputs separate. The parties exchange protocol messages and obtain the agreed output.
Threshold cryptography applies this model to cryptographic operations. NIST describes threshold schemes as distributed computations in which a private or secret key is shared across parties.
Signing is one application. The participants hold shares of one signing identity and cooperate to produce a signature that the standard verification algorithm can accept.
TKeeper uses threshold protocols for signing and optional ECIES decryption. The same product also supports a mono mode in which one node holds the complete local key material.
What is the difference between MPC and MCP?
MPC and MCP solve different parts of an AI system.
| Acronym | Full name | Function |
|---|---|---|
| MPC | Multi-Party Computation | Distributes a cryptographic computation across participants |
| MCP | Model Context Protocol | Connects AI applications to prompts, resources, and tools |
MCP tools let a model request actions such as an API call or file write. MCP defines the tool interface and protocol messages.
MPC can protect the signing identity required by a high-impact tool. Several TKeeper peers cooperate after the tool action passes authority and policy checks.
The combined path can look like this:
MCP tool call
-> typed action
-> TKeeper authority policy
-> MPC threshold signing
-> backend verification
-> effect
MCP carries the action request. MPC distributes the private cryptographic operation.
How does a t-of-n threshold work?
The parameter n is the number of peers that hold shares. The parameter t is the minimum number of peers required to complete the operation.
A 2-of-3 identity has three peers and needs two contributions. One unavailable peer still leaves two participants for signing, while one stolen share remains below the threshold.
A 3-of-5 identity needs three of five peers. It can lose two peers and still retain signing capacity. An attacker also needs at least three compromised participants to reach the threshold boundary.
Security and availability move together:
| Configuration | Compromised peers below threshold | Unavailable peers before quorum loss |
|---|---|---|
2-of-3 |
1 | 1 |
3-of-5 |
2 | 2 |
4-of-5 |
3 | 1 |
A higher threshold raises the compromise requirement and reduces tolerance for unavailable peers. The deployment must choose both properties together.
How does threshold signing protect an AI agent identity?
Threshold signing removes unilateral key use from one participant. Every successful signature needs enough peers to accept and participate in the same operation.
Assume a treasury agent uses a 2-of-3 TKeeper identity. The agent proposes a 5,000 USDC transfer, and the coordinator begins signing after the transaction passes authority policy.
A compromised coordinator can send protocol messages, withhold progress, or cause availability loss. It still lacks enough shares to create the treasury signature by itself.
Honest peers should also validate the operation under matching policy state. This makes key use and policy acceptance quorum-dependent.
The downstream wallet or broadcaster verifies one signature from the expected treasury public key. The threshold topology remains behind that identity.
Which signing protocols does TKeeper use?
TKeeper selects a threshold protocol from the signature scheme and key algorithm.
| Signature scheme | TKeeper threshold protocol |
|---|---|
| ECDSA | GG20 |
| EdDSA | FROST |
| Schnorr | FROST |
| BIP-340 | FROST |
| Taproot key path | FROST |
| ML-DSA | Threshold ML-DSA |
FROST is a two-round threshold Schnorr signing protocol. RFC 9591 describes participants holding shares of one common key and cooperating to produce a standard signature.
GG20 supports threshold ECDSA, which matters for systems that already verify ECDSA signatures. TKeeper uses GG20 for SECP256K1 and P256 ECDSA identities.
Threshold ML-DSA produces post-quantum signatures through a multi-party protocol. Its rejection-sampling behavior creates bounded retries and a different availability profile.
Where do the key shares come from?
The key origin determines which historical trust assumptions remain.
Distributed key generation creates a new threshold identity across peers. The normal DKG flow avoids reconstructing the private key on one machine.
Trusted-dealer import starts with an existing private key. The dealer supplies that key, and TKeeper distributes shares for later threshold use.
Quorum promotion moves an existing mono identity into threshold state. The public identity can continue, while the earlier mono period may have left full-key copies in memory, storage, or backups.
These paths lead to threshold signing with different histories:
| Path | Public key continuity | Prior full-key exposure |
|---|---|---|
| New threshold DKG | New identity | Normal DKG avoids a dealer-held full key |
| Trusted-dealer import | Existing imported identity | Dealer handled the private key |
| Mono promotion | Existing mono identity | Mono node previously held the private key |
| Rotation after migration | New public key | New material replaces continuity |
Use DKG for a new high-impact identity. Use import or promotion when continuity justifies their trust history.
How should peers be distributed?
Peers should occupy failure domains that match the threat model. Three processes on one host share many compromise and outage paths.
Useful separation can include:
- different hosts
- different operator credentials
- different availability zones or regions
- separate seal dependencies
- independent administrative accounts
- restricted peer networking
The exact placement depends on the attacker and outage the system must survive. Three cloud regions add geographic separation, while three accounts may add administrative separation.
Backups need the same analysis. Collecting enough peer databases and unseal material into one recovery account can recreate a unilateral failure domain.
How do Byzantine peers affect signing?
A Byzantine peer can send invalid protocol data, withhold messages, or abort a session. Threshold cryptography protects key secrecy below the threshold, while availability still depends on enough usable participants.
TKeeper reports dead peers when they fail to participate where the protocol tracks that state. It reports imposters when protocol evidence identifies invalid contributions.
Evidence depends on the protocol. FROST, GG20, and threshold ECIES can identify some invalid contributions. Threshold ML-DSA verifies transcripts, but a normal rejection-sampling abort provides no automatic evidence of a malicious peer.
An empty imposters list therefore carries no proof that every participant behaved correctly. Monitor session outcomes, peer-specific failures, retries, and latency together.
How do refresh and rotation change MPC risk?
Refresh and rotation create different lifecycle outcomes.
Threshold ECC refresh replaces peer shares while preserving the aggregate public key. Old and new generations should remain separated, which narrows the useful window for stolen shares.
Rotation creates new key material and a new public key. Use it after suspected full-key exposure, protocol-state exposure that invalidates the generation, or a planned identity change.
TKeeper ML-DSA refresh advances the generation while carrying each peer's existing share and public key forward unchanged. New ML-DSA material requires rotation or a new DKG.
Lifecycle permissions should stay narrower than signing permissions. A caller that can rotate, destroy, import, or repair an identity can change its availability or trust state.
How does MPC relate to human approval?
MPC distributes the cryptographic operation among TKeeper peers. Human approval distributes the decision to accept an action among approvers.
Consider a 2-of-3 treasury identity with a 2-of-3 four-eye policy:
2 approver signatures
-> accepted payment operation
-> 2 TKeeper peer contributions
-> treasury signature
The approver set and peer set should remain separate. An approver reviews the effect, while a peer participates in the threshold protocol after the request passes controls.
Using both layers raises the number of independent failures required for a harmful signature. The result depends on separate credential custody and failure domains.
When should an AI agent identity use threshold MPC?
Use threshold mode when one compromised signing host must lack the power to act as the identity. The requirement follows the effect controlled by the key.
Strong candidates include:
- AI agents that authorize treasury transactions
- production deployment identities
- certificate authority keys
- identities for privileged infrastructure commands
- protected data-export approvals
- high-impact key lifecycle operations
Mono retains TKeeper authentication, permissions, authorities, policy, audit, and four-eye controls. Its host still holds full local key material.
Low-impact workloads and development may accept mono. High-impact identities usually justify threshold mode when the team can operate the added distributed system.
How should you choose t and n?
Choose t and n from explicit compromise and availability requirements. Start with two questions:
- How many peer compromises must the identity survive?
- How many peer outages must signing survive?
For 2-of-3, one peer compromise stays below threshold and one outage preserves service. This shape fits many small deployments because it adds one-fault tolerance on both axes.
For 3-of-5, two compromises stay below threshold and two outages preserve service. The larger peer set adds cost, networking, sealing, backups, monitoring, and upgrade coordination.
Place the selected peers in independent failure domains. A mathematical 3-of-5 threshold gains little operational independence when one administrator or host controls all five.
Which operational costs does MPC add?
Threshold signing adds network rounds, peer deadlines, coordinator behavior, session state, and cross-peer consistency. These costs affect latency and failure handling.
Operators need to monitor:
- healthy and unsealed peers
- remaining failures before quorum loss
- signing latency by protocol
- session timeouts and retries
deadandimposters- active generation consistency
- feature, platform, and release drift
- audit and seal dependencies
ML-DSA needs separate retry telemetry because healthy signing attempts can abort during rejection sampling. Increasing the retry cap also increases worst-case work and latency.
Quorum preserves service through some peer failures. Backup and recovery still need independent peer state, seal material, authority artifacts, and tested restore procedures.
Which mistakes collapse the distributed boundary?
Running every peer under one administrative credential gives one compromise access to several failure domains. Separate operator and deployment control.
Storing enough shares and unseal material in one backup location recreates concentrated custody. Back up peers independently.
Giving the agent direct access to another accepted signing key bypasses the threshold identity. Make the backend trust the intended identity and route.
Promoting a mono key and assuming a clean origin ignores earlier copies. Rotate when previous exposure falls outside the accepted model.
Applying a broad policy on every peer creates quorum enforcement for a broad action set. Threshold cryptography cannot narrow an unsafe authority policy.
Treating every failed ML-DSA attempt as Byzantine evidence creates false incident signals. Use protocol-specific evidence and retry telemetry.
Ignoring availability turns peer loss into an unexpected outage. Define quorum capacity alerts and recovery procedures before production use.
Where does threshold MPC stop?
Threshold secrecy ends when an attacker compromises enough peers to reach t. The model should state which systems and operators count as independent.
Authority policy controls which actions peers accept. A quorum can create valid proof for a harmful action when the shared policy allows it.
Human approval controls reviewed effects. MPC provides no substitute for business authorization.
Backend verification controls the final effect. Another key, credential, payload, or route can bypass the threshold identity.
Availability depends on enough healthy peers and their network, seal, storage, audit, and session state.
What should you do next?
Choose one high-impact agent identity and answer whether one compromised signing host may act as that identity. Use threshold mode when the answer requires multiple independent peers.
Read How to Give an AI Agent Signing Access Without Exposing a Private Key for the signing boundary and Human Approval for AI Agent Actions for the separate approval layer.