# 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: 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://whitepaper.opz.io/keyfusion/key-concepts-and-techniques.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.
