> For the complete documentation index, see [llms.txt](https://whitepaper.opz.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whitepaper.opz.io/keyfusion/key-concepts-and-techniques.md).

# Key Concepts and Techniques

The current version of OPZ utilizes two-party computation protocols, with the key shared between the User and OPZ server.

## Simple Example:

OPZ uses secure two-party computation, which enables two parties (user & OPZ server) to evaluate an arbitrary function f on their respective private inputs $$x,y$$ while revealing nothing but the result $$z=f(x,y)$$

1. **Inputs**: The user has a private input $$x$$ and the OPZ server has a private input $$y$$.
2. **Computation**: A function $$f$$ is computed, where $$f:(X,Y)→ Z$$ and $$X,Y,Z$$ are the domains of $$x,y,$$ and $$z$$ respectively.
3. **Output**: The result of the computation is $$z$$, where $$z=f(x,y)$$.

***

## Two-Party Elliptic-Curve **Mechanism**

### MPC Key Generation

Instead of generating a key and then splitting it, an MPC protocol is used to generate the key shares. This ensures the key is never exposed on a single device, greatly reducing the risk of compromise.

{% content-ref url="/pages/Ln4uOEaMjYZ7QFz8gx1U" %}
[Key Generation](/keyfusion/key-concepts-and-techniques/key-generation.md)
{% endcontent-ref %}

***

### MPC Signing Process

Signing is crucial for securing transactions in our Multi-Party Computation (MPC) wallet. This process involves collaboration between the OPZ server and the user device.

We use two distinct MPC signing processes to adapt to the various requirements of different blockchains:

1. **ECDSA (Elliptic Curve Digital Signature Algorithm)**:

{% content-ref url="/pages/aecvhfTXOpoeWNCn00KV" %}
[ECDSA Signing Process](/keyfusion/key-concepts-and-techniques/ecdsa-signing-process.md)
{% endcontent-ref %}

2. **Schnorr/EdDSA (Edwards-curve Digital Signature Algorithm)**:

{% content-ref url="/pages/gklnANYbpRM0vvYoiLKl" %}
[Schnorr/EdDSA Signing](/keyfusion/key-concepts-and-techniques/schnorr-eddsa-signing.md)
{% endcontent-ref %}

By supporting these two key signing protocols, we provide a comprehensive solution adaptable to various blockchain environments.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://whitepaper.opz.io/keyfusion/key-concepts-and-techniques.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
