# Overview

What is OPZ and why is it needed?

The OPZ Wallet is our answer to the growing need for a more user-friendly and resilient self-custodial wallet. Powered by our KeyFusion protocol, this is a form of MPC (Multi-Party Computation). The wallet combines advanced security features with intelligent, AI-driven insights.

### **Addressing the Self-Custody Challenge**

Traditional self-custody solutions present significant usability and security challenges. Users often struggle with managing and safeguarding their mnemonic phrases, leading to risks of loss or theft of assets. The OPZ Wallet, utilizing advanced MPC technology, overcomes these challenges by providing a simple-to-use self-custodial wallet without compromising the security that is fundamental to its purpose.

### **Key Features of OPZ Wallet**

1. **Ease of Use**: Designed with the user in mind, OPZ Wallet simplifies managing digital assets. It eliminates the need for users to store and remember complex mnemonics, reducing the risk of asset loss.
2. **Web3 and dApp Integration**: Secure interaction with decentralized technology by Multi-Factor Authentication. This allows users to fully leverage the benefits of blockchain and smart contract functionality without compromising the security of their assets.
3. **Advanced AI Technology**: Introducing OPZ-AI, where the future of crypto analysis means staying ahead, covering over 10,000 coins with real-time, actionable insights.
4. **OPZ-DEX**: A first-of-its-kind platform that leverages the robustness of Bitcoin's Layer 2 to offer decentralized spot and derivatives products powered by AI. At OPZ, we believe AI trading is the future, and our advanced AI-driven systems enhance trading strategies to deliver more intelligent and effective market decisions.

### **Advantages over traditional Custodial Solutions:** Striking a balance between user autonomy and security.&#x20;

Unlike traditional exchanges or custodial services, OPZ empowers users with control over their assets without the typical complexities and risks associated with self-custody.

**OPZ's mission** is to accelerate the transition to self-ownership of assets by bridging the gap between the cryptocurrency industry and the traditional financial world. This includes simplifying the key management process, providing clear guidance, and developing more intuitive interfaces that meet users' expectations of traditional banking and online financial services.


# Roadmap

Be a part of the future with us as we unveil our innovative roadmap.

### **Active:**

{% content-ref url="/pages/yxzUUDiO1E7MGkmD5jWj" %}
[Broken mention](broken://pages/yxzUUDiO1E7MGkmD5jWj)
{% endcontent-ref %}

***

### **Upcoming:**

{% content-ref url="/pages/wbnAUxOYwmCrS0jO9vYC" %}
[2025 & 2026](/introduction/roadmap/2025-and-2026)
{% endcontent-ref %}

***

### Completed:

{% content-ref url="/pages/VUM0Hyu307ZoZFMgVAwo" %}
[2022: Q1-Q2](/introduction/roadmap/2022-q1-q2)
{% endcontent-ref %}

{% content-ref url="/pages/H01fe4SzFwfld9mh51lP" %}
[2022: Q3-Q4](/introduction/roadmap/2022-q3-q4)
{% endcontent-ref %}

{% content-ref url="/pages/Alwm8xLQ55f1xWHXNKD6" %}
[2023: Q1-Q2](/introduction/roadmap/2023-q1-q2)
{% endcontent-ref %}

{% content-ref url="/pages/kbXTs16DJU50RU03Y2JS" %}
[2023: Q3-Q4](/introduction/roadmap/2023-q3-q4)
{% endcontent-ref %}

{% content-ref url="/pages/AMHXcNZ2w5O4YwW0nynk" %}
[2024: Q1-Q2](/introduction/roadmap/2024-q1-q2)
{% endcontent-ref %}

{% content-ref url="/pages/zyxYuRDPxUnSFCwsd3lr" %}
[Broken mention](broken://pages/zyxYuRDPxUnSFCwsd3lr)
{% endcontent-ref %}


# 2022: Q1-Q2

Foundational Development of OPZ Wallet

### Q1-Q2 of 2022 Summary:

In the first half of 2022, the foundation for OPZ was established, marking the beginning of a journey towards creating an advanced MPC (Multi-Party Computation) wallet. This period was dedicated to conceptualizing the KeyFusion protocol, assembling a skilled team, and developing a next-level wallet that redefines the digital asset management user experience. Our focus was on blending high-level security with user-friendly design.

### Q1-Q2 2022 Highlights:

* [x] **The beginning of OPZ Wallet:** The idea for OPZ Wallet was born, envisioning a new standard in self-custodial wallets using advanced MPC technology.
* [x] **Team Formation:** Gathering a group of talented professionals skilled in blockchain, cryptography, and app development to drive the project forward.
* [x] **Proof of Concept:** We conducted tests to assess the feasibility of our visionary concepts as we moved from theory to practice.
* [x] **Conceptualizing KeyFusion Protocol:** Laying the foundation for our unique KeyFusion protocol, focusing on enhancing security and usability in our MPC (Multi-Party Computation) protocol.
* [x] **Initial Development Phases:** Start developing OPZ Wallet’s core functionalities, ensuring a resilient and secure platform for our users.
* [x] **Designing User Interface:** Branding and prioritizing a user-friendly design (UI/UX), making the app appealing to new and experienced users.
* [x] **Strategic Planning:** Developing a long-term strategy for the rollout and implementing various wallet features, ensuring a clear roadmap for future development.

Stay tuned as we keep coming up with new ideas and pushing the limits of MPC technology.


# 2022: Q3-Q4

Milestones in OPZ Wallet Development

### Q3-Q4 of 2022 Summary:&#x20;

The latter half of 2022 was an essential phase for OPZ, marked by significant advancements in our MPC wallet technology and infrastructure. We focused on enhancing the functionality and security of the OPZ Wallet, driven by our mission to offer a user-friendly and secure digital asset management experience. This period saw the integration of innovative features and rigorous testing, laying a solid foundation for OPZ's future growth.

### Q3-Q4 2022 Highlights:

* [x] **Enhancement of KeyFusion Protocol:** Further development and optimization of our KeyFusion MPC protocol to ensure top-tier security and resilience.
* [x] **OPZ Wallet Feature Integration:** Implementing crucial wallet features, including advanced security protocols.
* [x] **Development of OPZ-NFC Technology:** We started working on the OPZ-NFC technology, aiming to provide secure offline storage and convenient access to crypto keys. Successfully testing its practicality and effectiveness for potential real-world applications.
* [x] **Preparation for Beta Testing:** Rigorous internal testing to ensure the wallet's stability, security, and overall performance.
* [x] **Documentations Release:** Share insights with the release of our v1.0 whitepaper.
* [x] **Bug Bounty Program:** With our Bug Bounty Program, individuals can receive recognition and compensation for reporting bugs.
* [x] **Security Enhancements:** Strengthening the wallet’s security measures to protect against sophisticated scam tactics that exploit EVM (Ethereum Virtual Machine).

This development period was critical in shaping the OPZ Wallet into a leading MPC solution.


# 2023: Q1-Q2

Finalizing OPZ Wallet and KeyFusion Technology

### **Q1-Q2 of 2023 Summary:**&#x20;

During the first half of 2023, OPZ focused intensely on finalizing the development of the OPZ Wallet and the KeyFusion technology. This period marked the completion of multiple features, including integrating multi-chain support and implementing advanced cryptographic signing processes. Our efforts culminated in the refinement of the Android app, setting the stage for its first launch. And we started with the Planning and Testing phase for our DEX.

### **Q1-Q2 2023 Highlights:**

* [x] **Completion of KeyFusion Protocol Development:** Finalized the innovative KeyFusion MPC technology, ensuring a robust and secure framework for digital asset management.
* [x] **Implementation of ECDSA Signing Process:** Successfully integrated the Elliptic Curve Digital Signature Algorithm (ECDSA) into our wallet, allowing secure, fast, two-party signing without exposing private keys.
* [x] **Development of Schnorr/EdDSA Signing:** Implemented Schnorr/EdDSA signing protocols, enhancing the security and versatility of our wallet.
* [x] **Multichain Support Integration:** Supported multiple blockchains, offering users diverse digital asset management options within the OPZ ecosystem.
* [x] **Android App Finalization:** Completed all necessary development and testing phases for the OPZ Wallet Android app, preparing it for launch on the Google Play Store.
* [x] **DEX Planning and Testing:** We begin developing a Decentralized Exchange(DEX). Our commitment to offering low-latency and high-performance trading experiences.
  * Technology stack: Chronicle Matching Engine and Zero-Knowledge Rollups.
  * Initial development of the OPZ Protocol for Layer-2 solutions on Bitcoin.
  * Begin integration of OPZ Wallet.
* [x] **Referral System:** Get rewarded for inviting friends! Our referral system offers a commission percentage based on the *trading* volume of their referred *traders*.

This period was crucial in solidifying OPZ's commitment to delivering a highly secure, user-friendly, and technologically advanced wallet.


# 2023: Q3-Q4

Launch of OPZ Wallet Android App and Development of OPZ-NFC Card

### **Q3-Q4 of 2023 Summary:**

In the second half of 2023, we launched the OPZ Wallet Android app and the development of the innovative OPZ-NFC Card. Integrating advanced security APIs with GoPlus Security to strengthen the OPZ wallet security and functionality to a leader position.

### **Q3-Q4 2023 Highlights:**

* [x] **Launch of OPZ Wallet Android App:** The release of the OPZ Wallet on the Google Play Store offers users an All-In-One wallet with advanced security features.
* [x] **The Release of our dApp Browser:** Our dApp browser establishes itself as the safest way to interact with dApps across all EVM chains.
* [x] **Development and Introduction of OPZ-NFC Card:** Completion of the OPZ-NFC Card, an innovative tool that combines the security benefits of cold storage with the ease of NFC technology for asset management.
  * **Key Features of OPZ-NFC Card:** The card facilitates secure offline storage of MPC keys and seamless interaction with dApps and the OPZ app.
  * **Security and Ease of Use:** The OPZ-NFC Card enhances user security with advanced features like Tamper-Proof Design and Signal Shielding.
* [x] **Social Login and Cloud Backup Integration:** OPZ now features Apple and Google social logins, allowing users easy and secure access to their accounts. Additionally, we've integrated iCloud and Google Drive for reliable backup, ensuring safe storage and recovery of wallet information.
* [x] **Integration of GoPlus Security APIs:** Strengthening of the OPZ app with multiple security APIs, including Token Security, Malicious Address Detection, and dApp Security APIs, enhancing overall security and user confidence.
  * **Token Security API:** Implement a system for detecting token risks, ensuring safe and secure asset management.
  * **Malicious Address API:** Introducing auto-detection features during asset transfers to safeguard against potential security threats.
  * **dApp Security API:** Automated checks for dApp security, providing users with real-time and proactive security notifications.
* [x] **V2 UI/UX Update:** We've enhanced the user interface and experience, making our App more user-friendly and visually appealing.
* [x] **Preparation for iOS App Release:** Continued refinement and optimization of the iOS app, gearing up for its release in the Apple App Store.
* [x] **Demo of the DEX:** We completed the demo of our DEX for users to test.
  * **Purpose of Demo:** Gather valuable user feedback and fine-tune the platform before its full-scale launch.

As we closed out a successful 2023, our focus shifted towards the upcoming release of the OPZ Wallet iOS app.


# 2024: Q1-Q2

Major Developments and Marketing Initiatives for OPZ

### **Q1-Q2 of 2024 Summary:**

The first half of 2024 is highlighted by the introduction of key products and a strategic shift towards extensive marketing efforts.

### **Q1-Q2 2024 Highlights:**

* [x] **OPZ-AI:** Launching OPZ-AI, it analyzes various indicators and real-time news, providing comprehensive, personalized insights for smarter trading decisions.
* [x] **OPZ-GPTs**: Leverage Advanced AI Analytics for Enhanced Coin Performance through Strategic Staking
* [x] **Marketing Team Expansion and Outreach Initiatives:**
  * **Pitching to Tech Giants and Founders:** Actively seeking collaborations and support from industry leaders and innovative founders to enhance our market presence and foster strategic partnerships.
  * **Launching Comprehensive Marketing Campaigns:** Implementing extensive marketing strategies to introduce our products to a broader audience, emphasizing the unique features and benefits of the OPZ wallet.
  * **Community Engagement and Brand Building:** Focus on building a strong community around OPZ with social media, influencer partnerships, and community events to increase brand awareness and user adoption.

### DEX **Optimization:**

* [x] Implementation of AI-driven analytics and trading assistance tools.
* [x] Expansion of the OPZ Liquidation Engine for enhanced risk management.
* [x] Strategic partnerships with leading financial institutions and crypto ecosystems for liquidity and market depth enhancement.

### **Key Enhancements in Blockchain Support:**

* [x] **Lightning Network Compatibility:** Implementing support for the Lightning Network, enabling fast and low-cost Bitcoin transactions.
* [x] **Expanding to Additional Networks:** Beyond these integrations, we plan to continuously explore and add support for other emerging and established blockchain networks and protocols.

The first half of 2024 is a transformative period for OPZ, strongly emphasizing marketing and community building.


# 2024: Q3-Q4

Major Developments for OPZ

### **Q3-Q4 of 2024 Summary:**

The release of the iOS app characterizes this phase, the Bitcoin Layer 2 DEX, and the start of the custom AI chatbot project.

### **Q3-Q4 2024 Highlights:**

* [x] **Custom Chatbot Creation:** Users can create chatbots on app.opz.com, a web-based AI platform. These custom chatbots enable users to earn commissions from their subscribers.
* [x] **Rewards and Leaderboard:** A new rewards system and leaderboard page integrated into the AI dashboard
* [x] **Superintelligence Trader Introduction**: Introduction of our next-level AI-driven trading automation system, optimizing strategies with advanced analytics and market intelligence.
* [x] **Custom Chatbot Creation:** Users can create their chatbots and earn commissions from their subscribers.
* [x] **iOS App Launch:** The release of the OPZ Wallet on the Apple App Store.

### **Key Enhancements in Blockchain Support:**

* [x] **Ethereum Gas Fee Estimation with Probability**: Introduce Ethereum gas fee estimation with probability feature in our app.
* [x] **Nostr Protocol Integration:** Support for the Nostr protocol, a decentralized and open protocol for social networking and communication, is added.
* [x] **WebLN Integration:** Integrating WebLN, a standard for web-based Lightning Network applications, to offer interaction with Lightning Network-enabled services and applications.

The second half of 2024 is a transformative period for OPZ, with the launch of new products,


# 2025 & 2026

Expanding and Enhancing the OPZ Ecosystem

The 2025 & 2026 period is significant for OPZ as we shift towards full decentralization and open-source our code.  Once complete, we encourage the community to use the open-source code as a starting point to grow the OPZ ecosystem.

**Key Developments and Initiatives:**

* **Mainnet Release**: The OPZ mainnet launch marks the transition to a fully operational decentralized blockchain, where AI miners play a crucial role in powering AI processing across the platform. Users can contribute their computer performance, earning OPZ tokens while collectively building a high-performance AI network.
  * Enhances scalability, speed, and efficiency by leveraging decentralized AI processing.
  * Allows the OPZ network to handle data and AI tasks more effectively than centralized alternatives.
  * Unlocks the potential for a fully decentralized, community-driven AI infrastructure.
  * Positions OPZ-AI as a leader in AI and blockchain integration.
* **Release of OPZ AI-Powered Hardware Miners**: Introducing custom-designed hardware miners optimized for AI workloads. These miners will significantly enhance AI processing efficiency, providing users with a powerful way to contribute to the OPZ network and earn OPZ tokens through high-performance AI computations.
* **Continual Improvement of OPZ-AI:**
  * Incorporating more comprehensive analysis tools beyond the basics, including advanced indicators and data points for a nuanced understanding of market dynamics.
  * Full launch of **Superintelligence Trader**: AI-powered trading market goes live, offering fully functional automated trading.
* **Continued Development and Integration of OPZ Wallet and NFC Technology:**
  * Further enhancements to the OPZ Wallet app, incorporating new features and security measures.
  * Increased focus on compatibility between the OPZ wallet, NFC technology, and the Bitcoin Layer 2 network.
* **Marketing and Community Building:**
  * Strengthening marketing initiatives to increase brand visibility and user adoption.
  * Building a strong community around the OPZ ecosystem through events, collaborations, and social media engagement.
  * Creating a solid developer community through workshops, hackathons, and open-source contributions.


# Introduction to KeyFusion

KeyFusion is the next generation of private key security.

The KeyFusion protocol is a form of MPC (Multi-Party Computation) developed by OPZ. Offering users a highly secure, exceptionally fast, and simple solution to store and transfer digital assets while maintaining quick and easy access.&#x20;

There has been a growing interest in Multi-Party Computation (MPC) in recent years due to its potential to enhance privacy and security. As a subfield of cryptography, with MPC, the private key is broken into multiple shares, encrypted, and divided among several parties. This enables multiple trusted parties to collaboratively perform computations on private data without disclosing any information about the data to other participants.&#x20;

This means the entire key is never present on any device. However, the trusted parties can still come together to sign a transaction. This shifts the key protection concept from relying on a single trusted third party to secure your key. This eliminates typical single point of failures and tedious setup and recovery schemes.

### Understanding the Risks of Private Keys

**Private Keys** form a significant vulnerability. Cybercriminals and internal threats often target private keys to gain access to wallets that control blockchain-stored funds.

Common methods of compromising private keys include:

* Malware infections on servers to steal private keys.
* Unauthorized use of a Hardware Security Module (HSM) authentication token to authorize fraudulent transactions.
* Theft of private keys by authorized internal employees.

### Usability Challenges in Traditional Self-Custodial Wallets

**The Risk of Loss**: A fundamental issue with mnemonics is the risk of losing access to funds. Users unfamiliar with the concept of self-custody often expect wallet providers to reset their passwords, similar to traditional financial services. This misconception can lead to a complete loss of assets if the mnemonic is forgotten or misplaced, as there is no way to recover the keys without it.

**The Challenge for Mass Adoption**: While traditional self-custody may be suitable for sophisticated users with a deep understanding of cryptocurrencies and blockchain, the complexity and risk associated with mnemonic management discourage many potential users, slowing down the integration of these technologies for widespread adoption.

## Our MPC Solution offers:

**Full Control** with usability and security that matches that of exchanges, including:

* Multi-blockchain support
* Enhanced security, performance, and flexibility&#x20;
* Multiple backup and restore options
* Multi-Factor authentication
* Lower fees than Multisig transactions.
* Recover your private key at any time.

OPZ is committed to making self-custodial wallets more accessible without compromising the security that is fundamental to its purpose.


# 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)
{% 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)
{% 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)
{% endcontent-ref %}

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


# Key Generation

Generating Secure Elliptic-Curve Keys Without Exposing the Private Key

A two-party method can be used to generate a public key for elliptic-curve signing (such as ECDSA or EdDSA). This two-party approach can be used to generate a public key $$Q$$ without either party knowing the private key $$x$$. Here's how it works:

* **Concept of Elliptic-Curve Keys**: The private key $$x$$ corresponds to a public key $$Q$$, defined as $$Q=x⋅G$$, where $$G$$ is the generator of the elliptic-curve group.
* **Objective**: The goal is for party $$1P1$$ to hold a share $$1x1$$, and party $$2P2$$ to hold a share $$2x2$$, with the condition $$2x=x1+x2$$.

**The Process of Two-Party Key Generation**

* **Initial Step**: Each party independently selects a random value: $$1P1$$ chooses $$1x1$$ and computes $$Q1=x1⋅G$$, and $$2P2$$ chooses $$2x2$$ and computes $$Q2=x2⋅G$$.
* **Exchange and Calculation**: $$1P1$$ and $$2P2$$ exchange $$1Q1$$ and $$2Q2$$ respectively, and each then defines $$2Q=Q1+Q2$$. By elliptic-curve properties, $$Q=(x1+x2)⋅G=x⋅G$$, thus generating the public key without exposing $$x$$.

**Addressing Security Concerns**

* **Problem with Initial Approach**: If $$2P2$$ is corrupt, it could bias $$Q$$ by waiting for $$1Q1$$ from $$1P1$$ and then choosing $$2Q2$$ to manipulate $$Q$$.
* **Solution - Commitment Scheme**: To prevent this, $$1P1$$ sends a commitment to $$1Q1$$, essentially a cryptographic "envelope" that hides $$1Q1$$ but binds $$1P1$$ to it. After $$2P2$$ sends $$2Q2$$, $$1P1$$ reveals $$1Q1$$.
* **Ensuring Randomness and Security**: This method ensures that $$1Q1$$ and $$2Q2$$ are chosen independently. If one party is honest, the result is random and secure. Neither party knows $$x$$, as it's only additively shared between them.


# ECDSA Signing Process

The Process of ECDSA Signing in a Two-Party System

The Elliptic Curve Digital Signature Algorithm (ECDSA) involves a two-party process where neither party knows the private key $$x$$, yet they can jointly create a signature on a message $$m$$. Here's an overview of the ECDSA signing function:

1. **Nonce Generation and Computation**:
   * A random nonce $$k$$ is chosen, and $$R=k⋅G$$ is computed.
   * The "x-coordinate" of the elliptic-curve point $$R$$ is denoted as $$r$$.
2. **Signature Computation**:
   * The signature component $$s$$ is calculated as $$s=k−1⋅(H(m)+r⋅x)modq$$.
3. **Signature Output**:
   * The signature is output as a pair $$(r,s)$$.

**Additively Homomorphic Encryption in ECDSA**

* **Encryption Type**: The process uses additively homomorphic encryption, which allows for encrypted values to be efficiently added or multiplied by a scalar without decryption. Paillier encryption, a common form of this encryption, is often used.

**Two-Party Computation Steps**

* **Key Generation**:
  * Parties choose random $$1x1$$ and $$2x2$$ and exchange $$Q1=x1⋅G$$ and $$Q2=x2⋅G$$. Commitment schemes are used for security.
  * $$1P1$$ generates a Paillier key-pair $$(pk,sk)$$ and sends $$ckey​=Encpk​(x1)$$ to $$2P2$$, along with a zero-knowledge proof.
* **Signature Generation on Message** $$m$$:
  * Parties independently generate $$1k1$$ and $$2k2$$, and exchange $$R1=k1⋅G$$ and $$R2=k2⋅G$$.
  * The nonce $$k$$ and $$R$$ are set as $$k=k1⋅k2$$ and $$R=k1⋅R2=k2⋅R1$$.
  * $$2P2$$ computes a "partial signature" using the homomorphic properties of the encryption, performing a series of encrypted operations.
  * $$1P1$$ decrypts the received ciphertext, multiplies it by $$1−1k1−1​$$ to obtain $$s$$, and verifies the signature $$(r,s)$$.

**Security Considerations**

* **Protection Against Private Key Exposure**: The protocol ensures neither party knows $$k$$ or the private key $$x$$.
* **Handling Corrupt Parties**: If $$2P2$$ is corrupt, it can provide incorrect encryption, but since $$1P1$$ verifies the signature first, no advantage is gained by $$2P2$$ from this.


# Schnorr/EdDSA Signing

Implementing Schnorr/EdDSA in a Two-Party Method

The two-party protocol for Schnorr/EdDSA signing is designed for enhanced security in elliptic-curve cryptography. Here's how it functions:

* **Schnorr Signing Algorithm**:
  1. A random $$k$$ is chosen, and $$R=k⋅G$$ is computed.
  2. The hash $$e=H(m∥R)$$ is calculated.
  3. The signature component $$s=k+e⋅xmodq$$ is computed.
  4. The signature is output as a pair $$(e,s)$$.
* **Two-Party Computation of Schnorr**:
  * **Key Generation**: As in ECDSA, parties hold random $$1x1$$ and $$2x2$$, with the public key $$Q=(x1+x2)⋅G$$.
  * **Signature Process**: Each party selects random $$2k1,k2$$ and exchanges $$R1=k1⋅G$$ and $$R2=k2⋅G$$. They then define $$R=R1+R2$$ and locally compute $$e=H(m∥R)$$.
  * **Final Signature Calculation**:
    * $$1P1$$ calculates $$s1=k1+e⋅x1$$.
    * $$2P2$$ calculates $$s2=k2+e⋅x2$$.
    * The final signature $$s$$ is $$2s1+s2$$, satisfying the Schnorr equation.
* **EdDSA Key Generation Challenges**:
  * In EdDSA, the key $$x$$ is derived by hashing it with SHA-512, and the result is split into two parts: one for the secret key and the other for a Pseudorandom Function (PRF).
  * For compatibility with EdDSA keys, a secure computation protocol for SHA-512 can be used.
  * However, for simplicity and security, $$x$$ is currently generated directly in MPC.

**Considerations and Security Implications**

* **Security in Two-Party Computation**: The protocol ensures that neither party knows the full private key or the nonce $$k$$, maintaining robust security.
* **Implementation Subtleties**: While the core ideas are straightforward, careful implementation is required to ensure security and compatibility.


# Security and Usability

The [two-party protocol](/keyfusion/key-concepts-and-techniques) is designed for simplicity and security. The system has two roles: **Users** (who are the signers) and the wallet **Provider** (who assist in computations). Users always control their assets, and no transaction can happen without them.&#x20;

The OPZ app introduces a wide range of backup options, prioritizing self-custody and secure key recovery. However, we anticipate that this will never be used in the vast majority of cases. To further simplify the user experience, OPZ also offers an extremely simple restore-from-backup method.

### **Backup Methods**

* Backup Recovery Key using 2FA
* Encrypted MPC Key stored in any NFC device
* iCloud/Google Cloud
* Manual backup Methods

***

## **Ensuring Full Control to Owners:**

A key feature of the wallet is that at any point in time, the Owner can recover the full private key. This is achieved through an advanced settings mode.

{% content-ref url="/pages/INl8vje2l70Efm1RwOYI" %}
[Advanced Settings](/opz-app/advanced-settings)
{% endcontent-ref %}

Once enabled, navigate to "App Preferences" and click on "Backup your private Key." Follow the steps by entering your password and 2FA details to complete the backup process.&#x20;

{% hint style="warning" %}
Backing up a full private key poses security risks!

{% code overflow="wrap" %}

```json
While we provide the option to back up your full private key, we strongly advise against this due to the security risks associated. Your private key gives full control to your wallet; if lost or stolen, it could lead to losing your digital assets.
```

{% endcode %}
{% endhint %}


# Introduction to OPZ app

A New Solution in MPC Wallet Technology

### Overview of OPZ:

The OPZ App is an all-in-one Web3 wallet that uses MPC (Multi-Party Computation) technology. Its intuitive design and advanced security features, including KeyFusion and Multi-Factor Authentication, provide you with the safest way to handle your self-custody wallet.

### Key Technologies in the OPZ App:

* **KeyFusion Technology:** At the core of OPZ is KeyFusion technology, our MPC protocol, which ensures that the user is in control of their assets. With no **single points of failure (SPOF) -** the private keys are not stored in one single place.
* **OPZ NFC Technology:** Connect NFC-enabled devices with Web3, allowing users to interact with the decentralized applications (dApps) with just a tap.
* **Multi-Factor Authentication:** To enhance security, OPZ offers multi-factor authentication, adding an extra layer of protection.
* **WalletConnect v2 Integration:** Enabling OPZ and dApps to connect and interact securely.
* **OPZ Web3 Browser:** The OPZ app includes a user-friendly Web3 browser for interacting with multiple blockchains.
* **AI Analysis with OPZ-AI:**
  * **Comprehensive Analysis**
  * **Trend Spotting & Pattern Recognition**
  * **Real-Time Insights & Personalized Experience**
* **OPZ App Security Features:** Our app includes multiple security features that:
  * Check tokens for any risks, ensuring they are safe to use.
  * Carefully verify addresses during transactions to prevent fraud.
  * Scan dApp safety to protect users from potential security threats.


# Getting Started

Setting up and using the OPZ app

### Step 1: Download the OPZ App

* **Download from App Store or Google Play Store:** Search for "OPZ" in your device's app store and download the application.

### Step 2: Sign Up for OPZ

* **Register with Your Email or Phone:** Once the app is installed, open it and sign up using your email address or phone number. You will receive a verification code via email or SMS. Enter this code in the app to complete the registration process.

### Step 3: Create a New Wallet

* **Wallet Creation:** The OPZ app automatically generates your MPC Key.
* **Secure Your Wallet:** The app will generate your MPC key. This is crucial for recovering your wallet if you uninstall the app or forget your password. It’s vital to store it in a secure place that only you can access.

### Step 4: You're Ready to Go!

* **Connect to the decentralized world:** Use the OPZ browser to connect easily to Web3.

### Additional Security: Enabling 2FA

* **Strongly Recommended:** To enhance the security of your account, we highly recommend enabling Two-Factor Authentication (2FA). This additional layer of security helps prevent unauthorized access to your account.


# Security

Introduction to Security Features in OPZ App

The OPZ app prioritizes the safety of your digital assets and interactions in Web3. We've added multiple layers of advanced security features to our app. That makes our app powerful, safe, and easy to use.

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2Fn7JZToNWbiGv9CzhWPX0%2FAsset%2027.png?alt=media&amp;token=793371f2-a53e-47e3-a269-7ba8eb132415" alt="" width="563"><figcaption></figcaption></figure>

### Security Features:

#### **1. Token Safety, Address Verification, and dApp Security:**

Partnering with GoPlus Security, OPZ has added important security features to protect your transactions:

* **Token Security API:** This tool automatically checks tokens for any risks and informs you about potential issues.
* **Malicious Address API:** It scans the addresses you're sending assets to, warning you if there's anything suspicious.
* **dApp Security API:** When you're using dApps, this feature automatically checks them for safety and alerts you about any risks.

{% content-ref url="/pages/RuaSPkxkllHWc9VKzKDu" %}
[Token Safety, Address Verification, and dApp Security](/opz-app/security/token-safety-address-verification-and-dapp-security)
{% endcontent-ref %}

**2. MPC-2FA Signing:**

For added security, OPZ offers an optional Two-Factor Authentication (2FA) feature for MPC transactions:

* **Extra Safety for Your Transactions:** This feature adds a second check whenever you make a transaction, ensuring that only you can authorize these actions.

{% content-ref url="/pages/9NDOFM6oBABB0FkDrZaW" %}
[MPC-2FA Signing](/opz-app/security/mpc-2fa-signing)
{% endcontent-ref %}

**3. Anti-Zero Transfer:**

To combat the rising issue of zero transfer phishing scams, OPZ has developed the Anti-Zero Transfer feature:

* **Blocking Phishing Attempts:** This setting stops zero-value transactions from showing up in your history, which is often used in scams. It helps keep your transaction history clean and safe.

{% content-ref url="/pages/7nzpOo7ZTAgZ40JVOfRm" %}
[Anti-Zero Transfer](/opz-app/security/anti-zero-transfer)
{% endcontent-ref %}


# Token Safety, Address Verification, and dApp Security

Implementing Powerful Security APIs

OPZ has collaborated with GoPlus Security to incorporate multiple advanced security APIs into the app. These APIs add an extra layer of protection, covering topics like token security, detection of malicious addresses, and dApp security information.

#### Token Security API

* **Risk Detection:** When managing tokens within the app, OPZ auto-detects potential security risks associated with each token. This includes analyzing contract security, trading security, and information security.
* **Risk Indicators:** The app informs users of detected risks, such as whitelist constraints or modifiable transaction taxes, which could indicate a honeypot risk.
* **Comprehensive Security Assessment:** Powered by GoPlus, the Token Security API checks over 30 safety indicators, ensuring the safety of each token.

#### Malicious Address API

* **Auto-Detection During Transfers:** When users initiate asset transfers, OPZ automatically assesses the receiving address for security risks and activities like phishing, money laundering, or other financial crimes.
* **Security Alerts:** If an address is identified as malicious, the app provides a clear warning to the user, advising against proceeding with the transfer.

### dApp Security API in OPZ App

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FGjtCO2ism4DaX3LmIqlz%2FAsset%2043-8.png?alt=media&amp;token=a93d3968-a68e-4b13-8e05-b6347aa02d63" alt="" width="563"><figcaption></figcaption></figure>

#### dApp Interaction Security

* **Automated dApp Security Checks:** As users explore and interact with dApps through the OPZ browser, the integrated dApp Security API automatically checks the security of each dApp. This includes analyzing main contracts for potential risks such as malicious behaviors or vulnerabilities.

#### Proactive Security Notifications

* **Real-Time Alerts:** If any security concerns are detected within a dApp, the OPZ app alerts the user. This notification system is designed to provide immediate feedback on any potential threats, such as compromised security or risks in smart contract functionality.

<div data-full-width="false"><figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FY6psLzcVSJ9hy7fxZRtn%2FIMG_6751.PNG?alt=media&amp;token=b3769c72-1a9f-46a9-95e3-03cc391f374b" alt="Token Secuirty API Example" width="188"><figcaption><p>Token Secuirty API</p></figcaption></figure> <figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FZeMvhLrHwDP3MUO2pSQV%2FIMG_6755.PNG?alt=media&amp;token=c6f74c8c-981e-4b0c-8de6-ea85c7f5a164" alt="dApp Site Security Example" width="188"><figcaption><p>dApp Site Security</p></figcaption></figure> <figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FB78jqIE8xyt4nAuxxZj1%2FIMG_6758.PNG?alt=media&amp;token=ce087965-fa2f-4d50-ae4c-09a668c7f82f" alt="Malicious Address API Example" width="188"><figcaption><p>Malicious Address API</p></figcaption></figure></div>


# MPC-2FA Signing

Enhanced MPC Security with 2FA in OPZ App

### 2FA Protection for Every MPC Transaction

* In the OPZ app, users can enable Two-Factor Authentication (2FA) specifically for Multi-Party Computation (MPC) transactions and signing actions. This feature adds an extra layer of verification, protecting against unauthorized or fraudulent activities.

This is particularly important in the context of MPC, where multiple parties are involved in the signing process. The 2FA requirement ensures that the user authenticates each transaction or signing.

### Enabling Two-Factor Authentication (2FA) in the OPZ App

1. **Navigate to App Preferences:**
   * In the app's main interface, tap on the avatar icon (👤) to open the app's main menu.
   * From the menu list, select "App Preferences."
2. **Access Security Settings:**
   * Look for the "Security Protection" section in the App Preferences menu.
   * Tap on “Security Protection” to access your account's security settings.
3. **Enable 2FA for Transactions/Signings:**
   * Inside the Security Protection settings, find the option labeled “Enable 2FA Transaction/Signing.”
   * Tap on the checkbox option to activate 2FA.
   * If prompted, follow any additional steps to verify or confirm your choice.


# Anti-Zero Transfer

Safeguarding Against Zero Transfer Phishing Scams

The OPZ app has integrated a critical security feature called the "Anti-Zero Transfer" function. This feature protects users from the advanced scam tactics that exploit EVM (Ethereum Virtual Machine) transactions.

#### How the Anti-Zero Transfer Feature Works

* **Filtering Zero-Value Transactions:** The Anti-Zero Transfer setting in the OPZ app ensures that zero-value EVM transactions do not appear in your transaction history. This measure prevents scammers from using these transactions in their phishing attempts.
* **Enhancing Wallet Security:** By hiding unauthorized zero-value transactions, the OPZ app prevents the common scam tactic of making such transactions from a user's address without their knowledge or consent.
* **Maintaining a Clean Transaction History:** With this feature activated, the app filters out and hides any zero-value transactions, thus maintaining a clear and accurate transaction history for the user. This helps users to quickly and correctly identify legitimate transactions.

#### Proactive Defense Against Emerging Threats

* **Staying Ahead of Scammers:** By addressing emerging threats such as zero transfer phishing scams, OPZ ensures that its users are protected against cyber threats.

### Enabling Two-Factor Authentication (2FA) in the OPZ App

1. **Navigate to App Preferences:**
   * In the app's main interface, tap on the avatar icon (👤) to open the app's main menu.
   * From the menu list, select "App Preferences."
2. **Access Security Settings:**
   * Look for the "Security Protection" section in the App Preferences menu.
   * Tap on “Security Protection” to access your account's security settings.
3. **Enable Anti-Zero Transfer:**
   * Inside the Security Protection settings, find the option labeled “Anti-Zero Transfer”
   * Tap on the checkbox option to activate 2FA.
   * If prompted, follow any additional steps to verify or confirm your choice.


# Advanced Settings

How to turn on Advanced Settings Mode:

1. Go to Settings > "About OPZ"
2. Touch the Version number field 10 times > You will begin seeing a message as you approach the 10 touches.
3. Touch the back arrow once complete, and the advanced settings will now appear in "App Preferences"

{% embed url="<https://www.youtube.com/watch?v=i-YIXouzenw>" %}


# Introduction OPZ-AI

Revolutionizing Crypto Analysis with Advanced AI Technology

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2F3YiI7plInl4gKnqmNw0X%2FAsset%2037.png?alt=media&amp;token=8f2a651f-2c5c-45c9-82e6-4f5ac4529e55" alt="" width="563"><figcaption></figcaption></figure>

Staying ahead of the crypto market demands precise, real-time, and actionable information and insights. OPZ-AI is your smart crypto analyst, offering a deep dive into the market with its AI-driven insights for over 10,000 coins.

It's where complexity meets clarity, and insights meet action. Welcome to OPZ-AI, where the future of crypto analysis begins.


# Superintelligence Trader

OPZ x AI

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FyiZTnCpUQMH9kxLcRxjv%2FAsset%2072.png?alt=media&amp;token=8d25a4cb-78e5-4cef-be00-5a9fa6f19a8b" alt="" width="563"><figcaption><p>Superintelligence Trader</p></figcaption></figure>

Superintelligence Trader, developed by OPZ, represents the future of AI-driven crypto trading. Inspired by the success of elite quantitative funds, it utilizes advanced algorithms and sophisticated AI techniques to identify and capitalize on market opportunities across various digital assets.

At its heart, OPZ-AI brings things together because we believe AI will revolutionize trading.

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FZquYEBmK7w12WE3jpKbB%2FScreenshot%202024-09-15%20222259.png?alt=media&amp;token=b5dbc7ee-6b7f-44f3-83ea-ce09b76eb6a8" alt=""><figcaption><p>OPZ Spot | AI Trading Dashboard</p></figcaption></figure>

Learn more:

<https://www.opz.io/blog/article?id=53>


# Features

**1. Comprehensive Analysis:** OPZ-AI goes beyond the basics, offering in-depth analysis of recent and long-term trends that combine the latest market news, technical data, and global insights to guide your investment decisions smartly and timely.

* **Relative Strength Index (RSI):** OPZ-AI leverages RSI to identify overbought or oversold conditions, highlighting possible market turns or corrections.
* **Bollinger Bands (BB):** BB analysis helps you understand market volatility and identify potential support or resistance zones.
* **Moving Averages (SMA & EMA):** OPZ-AI uses these to clarify price trends, making it easier to spot the overall market direction.
* **MACD:** This indicator is key for detecting shifts in trend strength and momentum, offering a nuanced view of market dynamics.
* **Pattern Recognition:** OPZ-AI scans for key candlestick patterns, offering insights into market sentiment and potential price shifts.
* **And More:** OPZ-AI doesn't stop there; it taps into a broader range of indicators and data points. From the Greed and Fear Index, which captures the market's emotional mood, to the Fully Diluted Valuation, giving you insights into a coin's potential market cap. It also brings in metrics like overall market performance, Bitcoin dominance, and other vital indicators

**2. Trend Spotting:** Knowing market trends is vital, and OPZ-AI turns complex market data into clear insights. OPZ-AI examines price movements, trading volumes, and market sentiment, helping you understand and anticipate market directions effectively.

**3. News Synthesis:** Stay ahead with synthesized news analysis. OPZ-AI sorts through the noise, bringing you the most impactful news and analyzing the sentiment. This means you get a straightforward, organized view of what's happening and how it might affect the market.

**4. Real-Time Insights:** Get the latest analytics on your chosen coins and the broader market. OPZ-AI keeps you updated with real-time data, from trading volumes to price changes, ensuring you never miss a beat.

**5. Personalized Experience:** OPZ-AI tailors its analysis to your preferences, ensuring the insights you receive are accurate and relevant to your trading strategy.

### **Smart Integration of Data**

At its heart, OPZ-AI is about bringing things together. It combines information from all the areas mentioned, using AI to create a powerful and intelligent tool. This means you get more than just data; you get insights resulting from thoughtful and detailed analysis.

{% hint style="info" %}
AI-Powered Price Forecast and AI-Identified Chart Patterns, currently in beta, are innovative features soon to be integrated into our DEX.
{% endhint %}

> **Please Note:** OPZ-AI is currently in its beta phase, and while it offers powerful AI-driven insights, it's crucial to approach the information with diligence. We encourage users to verify the data independently and consult with financial experts before making significant investment decisions. Remember, the crypto market is volatile, and it's important to trade responsibly and only with funds you can afford to lose. OPZ-AI is here to offer helpful analysis, but the final trading decisions are yours to make wisely.


# OPZ TestNet

AI-Driven Decentralization

**Overview**\
The OPZ TestNet combines AI and blockchain to create a decentralized network. Users can contribute their computer’s spare capacity to run AI tasks and earn OPZ tokens in return, helping build a community-driven AI processing system.

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FoZ07fIcnlwf9ali1FeAP%2FAsset%2076.png?alt=media&amp;token=8365eb89-fd9f-4da3-86fe-2c00defa447c" alt="" width="375"><figcaption><p>OPZ TestNet</p></figcaption></figure>

**AI Mining**\
Through AI mining, users can rent out their unused computing power to support the OPZ platform, making the system faster and more efficient. It's a simple way to earn tokens while helping the network grow.

**Hardware Miners**\
OPZ will also release AI-optimized hardware miners, providing a more efficient option for users to contribute and earn.

**Future Vision**\
The OPZ TestNet is just the beginning. As the network expands, it will support smarter trading, AI-driven insights, and more.

**Get Involved**\
With the OPZ TestNet, launching in just two months, you can be part of something groundbreaking. Earn tokens by contributing your computing power or using our custom hardware miners. Together, we’re building the future of AI and blockchain.&#x20;


# Introduction OPZ-NFC

Merging Cold Storage Safety with Easy Web3 Access: Get the security benefits of cold storage to protect from online threats while quickly accessing your assets with a simple tap.

**What is OPZ-NFC?**

OPZ-NFC is a new, easy way to keep your crypto keys offline while still being able to access your crypto assets with a simple tap. It uses Near Field Communication (NFC) technology to store your encrypted keys offline.&#x20;

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2F8h9qKw0O99XKdPpHcg5n%2FAsset%2036.png?alt=media&amp;token=00fa2dc2-9397-4fee-88d8-f696472584c1" alt="" width="563"><figcaption></figcaption></figure>

**Key Features of OPZ-NFC**

1. **Offline Key Storage**: OPZ-NFC allows users to store their cryptographic keys on any NFC device. By storing keys offline and using encryption, OPZ-NFC significantly lowers the risk of online threats such as hacking.
2. **Tap-to-Access Functionality**: For transactions or accessing web3 applications, users can simply tap their NFC device against their phone. This feature brings ease and speed to the process, making it user-friendly.
3. **Encrypted Key Protection**: The cryptographic keys stored on the NFC device are encrypted, ensuring high-level security. The encryption safeguards the keys, rendering them unusable if the NFC device is misplaced or stolen.
4. **Integration with OPZ Account Security**: The NFC device works with the user’s OPZ account, which is secured by a password and multi-factor authentication. This dual-layer security ensures that the keys are not only stored safely but also accessed securely.

**Conclusion**

The OPZ-NFC Card enables users to store their MPC keys securely and interact with the OPZ Wallet and Web3 browser with just a simple tap. By providing a tangible way to interact with digital assets, it brings a new dimension to the crypto experience.

***

## Devices:

OPZ-NFC is adaptable, working with a wide range of devices:

* OPZ Basic & Steel Card

{% content-ref url="/pages/qFnodXkwHLx7qkmwn7ei" %}
[OPZ CARD](/opz-nfc/opz-card)
{% endcontent-ref %}

* Store your encrypted MPC key to any NFC device, including smart rings, watches, NFC tags/stickers, pens, and more...


# Getting Started

How to Start Using OPZ-NFC

### Exporting your MPC Key to your NFC device:

1. **Navigate to App Preferences:**
   * In the app's main interface, tap on the avatar icon (👤) to open the app's main menu.
   * From the menu list, select "App Preferences."
2. **NFC Settings:**
   * Look for the "OPZ-NFC" section in the App Preferences menu.
   * Tap on “OPZ-NFC” to access your NFC settings and features.
3. **Exporting Key:**
   * Inside the OPZ-NFC settings, find the option labeled “Export Key”
   * If prompted, follow any additional steps to verify or confirm your choice.

### Verifying Key:

To ensure the authenticity and security of your MPC key, use the 'Verify Key' feature in the OPZ-NFC settings. This step confirms that your key is genuine and properly set up.

### Resetting Key:

If you need to, you can reset your NFC device using the 'Reset NFC' option.


# NFC-Only Mode

Shifting Your Crypto to Secure Offline Storage

Use 'NFC-Only Mode' as a secure method to transfer and replace your MPC key from your phone to your NFC device. This mode is ideal for those who prefer keeping their crypto assets offline for enhanced security. Once activated, your private MPC Key is removed from your phone, ensuring that only your NFC device can initiate and sign transactions.

This innovative approach is excellent for those who want the solid security of a cold wallet (where assets are stored safely offline) and the convenience of a hot wallet (which allows for easy and quick transactions). By using the 'NFC-Only Mode', you get the best of both worlds: top-notch security and the flexibility to use your crypto assets quickly when needed.


# OPZ CARD

### **What is the OPZ-NFC Card?**

The OPZ-NFC Card is a tool that allows users to store their MPC keys easily and securely. A simple tap of the OPZ-NFC Card connects users to their OPZ wallet or Web3 applications, making transactions straightforward and quick.

<div align="left"><figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2F2QEvgpKNFqjIejlUA8bu%2FMPC-Card.png?alt=media&amp;token=241df91d-0906-4033-92e8-ee1d1fe52a07" alt="" width="375"><figcaption><p>Basic Card</p></figcaption></figure> <figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FkrTiMveJ0toUu7K12BEm%2FMPC-Card-Black.png?alt=media&amp;token=f5677bcb-b22e-4bd4-b2f5-9e6c1bbaca4e" alt="" width="375"><figcaption><p>Steel Card</p></figcaption></figure></div>

### **How does the OPZ NFC Card work?**

The OPZ NFC Card securely stores your encrypted MPC key, which is necessary for securely accessing and managing your digital assets. By using NFC technology, the card can communicate with compatible devices, allowing you to interact with dApps and other Web3 services on the OPZ App.

### **How do I set up my OPZ NFC Card?**

**To set up your OPZ NFC Card, simply follow these steps:**

1. Register for an account on OPZ.com.
2. Order your OPZ NFC Card through the platform.
3. Upon receiving your card, activate it by following the instructions provided.
4. Back up your MPC key securely on the card.
5. Use the card to interact with the OPZ app.

### **Is the OPZ NFC Card secure?**

Yes, the OPZ NFC Card utilizes advanced security features, including MPC technology, to ensure your digital assets' safe storage and management. The NFC card works with the user’s MPC account, secured with a password and multi-factor authentication. This dual-layer security ensures that the keys are not only stored safely but also accessed securely. The NFC card also features a Tamper-Proof Design and Signal Shielding for heightened security against physical tampering and unauthorized NFC scanning.

***

### Using the OPZ NFC Card with dApps: A Simple Guide

**Easy Steps to Connect Your OPZ NFC Card with dApps**

Integrating the OPZ NFC Card with decentralized applications (dApps) on the OPZ app is straightforward. Here's a user-friendly guide to get you started:

1. **Check Device Compatibility**: First, ensure your device has NFC capabilities and is compatible with the OPZ app.
2. **Navigate to the Web3 Browser**: Open the OPZ App on your device and go to the built-in Web3 browser. This is where you can access various dApps.
3. **Choose Your dApp**: Select the dApp you wish to use from within the OPZ Web3 browser.
4. **Connect with WalletConnect**: When you choose to interact with a dApp, typically, you'll use WalletConnect or a similar service within the dApp. This creates a secure connection between the dApp and your OPZ NFC Card.
5. **Authenticate with a Tap**: A popup will appear asking for authentication. At this point, tap your OPZ NFC Card on the back of your NFC-enabled device.
6. **Additional Authentication Steps**:
   * **Biometric Verification**: After tapping, your phone will request a biometric verification, such as facial recognition or Touch ID.
   * **Two-Factor Authentication (2FA)**: If you have enabled an extra layer of security, you will be asked to enter a code sent to your phone or email as part of 2FA.
7. **Complete the Interaction**: The OPZ NFC Card automatically signs the blockchain transaction upon successful verification.


# OPZ-DEX

Revolutionizing Bitcoin DeFi

{% hint style="info" %}
OPZ-DEX Demo: [OPZ.com/Trade](https://www.opz.com/trade/)
{% endhint %}

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FpAwRLFgFLvYp6NWyUVcE%2FAsset%2050.png?alt=media&amp;token=b88128b0-baed-4282-ae7a-f0a207bdfd93" alt="" width="563"><figcaption><p>OPZ-DEX Platform</p></figcaption></figure>

OPZ-DEX is the first-of-its-kind platform that leverages the robustness of Bitcoin's Layer 2 to offer decentralized spot and perpetual trading. Engineered to unlock and leverage the vast yet dormant liquidity of Bitcoin – estimated to be over $1 trillion.

OPZ-DEX integrates the Chronicle Matching Engine, a resilient and scalable exchange solution. It provides high capacity and low latency order matching, validation, and risk checks. Access and manage trades and assets using the OPZ Wallet, WalletConnect, or any other injected compatible wallet.

* **Off-Chain Chronicle Matching Engine:**  High-Performance, Low Latency to deliver optimized, low-latency performance, enhancing resource efficiency.
* **On-Chain Settlement Layer**: Guarantees the immutability and transparency of every trade. With Zero-Knowledge Rollups, OPZ-DEX enhances transaction throughput and privacy, presenting a scalable, secure, and user-centric trading platform.

#### Key Features

* **Low Latency High Throughput:** Employs the Chronicle Matching Engine designed from the ground up for low latency order matching and execution.
* **Multiple Order Types**: Supports market, limit, stop, iceberg, pegged, and hidden orders.
* **Multiple Time-In-Force Options**: Includes IOC, FOK, GTT, and GTD.
* **Safe Matching**: Self-match prevention ensures fair and ethical trading.
* **One-Tap Bridge**: Supports a range of coins, including Bitcoin and EVM-compatible networks.
* **Resilient**: Full HA/DR capabilities via multi-node replication and hot-hot configurations. This helps achieve uninterrupted service.
* **Oracle Solution:** Asset prices on OPZ-DEX come from decentralized on-chain oracles providers of 15 independent Chainlink nodes. Any features that rely on collateralization, such as stop orders and liquidations, are determined using this price.
* **OPZ Liquidation Engine:** The Oracle Price with our custom-developed Chronicle Matching Engine checks risk with high capacity and low latency to determine liquidations.
* **Cross-Blockchain Compatibility**: Supporting BTC and ETH addresses.
* **OPZ Network Architecture**: The OPZ Network focuses on security, scalability, and practicality. The architecture consists of several components: the **Processing Layer** and the **Consensus and Data Integrity Layer**.
* **OPZ-AI**: AI-Powered Price Forecast, AI-Identified Chart Patterns, and Real-Time Risk Analyzer, currently in beta, are innovative features soon to be integrated directly on the trading interface.
* **Superintelligence Trader**: An AI-driven system that automates crypto trades, optimizing strategies with real-time analysis. It leverages advanced algorithms and artificial intelligence to identify and capitalize on market opportunities.

{% content-ref url="/pages/JpR3nZNBlL2aJXRSTMo8" %}
[Superintelligence Trader](/opz-ai/superintelligence-trader)
{% endcontent-ref %}

### **Bridging the Gap Between Off-Chain Efficiency and On-Chain Security**

The hybrid model of OPZ-DEX bridges the best of both worlds, offering the speed and efficiency of traditional centralized exchanges with the security and trustlessness of decentralized platforms:

* **Efficient Trading Experience:** Traders enjoy a high-speed, responsive trading experience similar to centralized platforms, crucial for executing strategies that require quick response times and minimal latency.
* **Decentralized and Secure:** By settling trades on the blockchain, OPZ-DEX ensures that the core principles of decentralization and self-custody are upheld, instilling trust and confidence among its users.
* **Reduced Risk of Slippage:** The deep liquidity provided through integration with DeFi ecosystems and institutional market makers minimizes the risk of slippage, ensuring that traders receive the best possible execution price.


# Trading Architecture

## 1. The Hybrid Trading Architecture of OPZ-DEX

OPZ-DEX introduces a groundbreaking trading architecture that fuses the off-chain Chronicle Matching Engine, a powerhouse capable of real-time order matching, with the impenetrable security and unwavering transparency of on-chain settlement.

### **1.1 Off-Chain Order Book and Matching Engine**

The off-chain component of OPZ-DEX is important in ensuring high-speed trading and low latency, a necessity for professional and institutional traders requiring real-time execution. This component encompasses:

* **Chronicle Matching Engine:** At the heart lies the Chronicle Matching Engine, which efficiently handles order matching, ensuring quick and fair trade execution. The engine supports many advanced order types and time-in-force options, accommodating various trading strategies.
* **Dynamic Order Management:** The off-chain order book allows for dynamic order management, where orders can be placed, amended, or canceled almost instantaneously, providing traders with the flexibility to adapt to fast-changing market conditions.
* **Low Slippage & High Liquidity:** The platform ensures deep liquidity by integrating with various liquidity pools and institutional market makers, thereby reducing slippage and offering competitive market rates.
* **Synergy with OPZ Network’s Layer-2 Solution**: The integration with OPZ Network’s Layer-2 enhances throughput and slashes settlement times.

Integrating the Chronicle Matching Engine into our decentralized exchange (DEX) as an off-chain layer is a strategic decision that significantly enhances our platform's performance, security, and scalability.

### **1.2 On-Chain Settlement Layer**

While the off-chain component optimizes for speed and efficiency, the on-chain settlement layer of OPZ-DEX guarantees the security and immutability of each transaction, a fundamental tenet of decentralized trading platforms:

* **Immutable and Transparent Settlements:** Final settlement of trades occurs on the blockchain, ensuring transparency, finality, and security. Each transaction is recorded on the blockchain, providing a tamper-proof ledger of all activities.
* **Smart Contract Integration:** The platform leverages smart contracts for automating settlement processes, ensuring that each trade is settled according to the agreed terms without intermediaries.
* **Interoperability with Layer-2 Solutions:** OPZ-DEX's integration with the OPZ Network’s Layer-2 solution significantly enhances transaction throughput and reduces settlement times.

OPZ-DEX's hybrid trading architecture leverages the Chronicle Matching Engine for efficient off-chain order handling. It combines it with a secure on-chain settlement layer, setting new standards in the DEX space for speed, efficiency, and security. This innovative approach addresses the needs of high-frequency users.

## **2. Enhanced Order Types and Execution Mechanisms**

OPZ-DEX introduces a sophisticated array of order types, addressing the needs of diverse trading strategies. These include:

* **Simple Orders**: Market orders ensuring execution at the best available price until fulfillment or expiration.
* **Limit Orders**: Executed at a specified price or better, providing traders with precise control over entry and exit points.
* **Worked Orders**: Including sophisticated order types like Stops, Icebergs, and Pegged Orders, catering to advanced trading strategies.

These orders are further refined by Time-In-Force options like Day, IOC (Immediate or Cancel), FOK (Fill or Kill), GTT (Good Till Time), and GTD (Good Till Date), offering traders nuanced control over the lifespan of their orders.

## **3. Matching Engine and Priority Rules**

OPZ-DEX, powered by the Chronicle Matching Engine, ensures fair and low latency order matching. The platform considers various factors like order type, price levels, and time of entry to prioritize orders. It incorporates the following features for seamless order execution:

* **Dynamic Tick Size**: Each symbol within the exchange has a specific tick size, managed by Chronicle ME, ensuring accurate price categorization and level grouping within the Order Book.
* **Order Prioritization**: Iceberg orders and other specialized order types are prioritized based on well-defined rules, ensuring transparency and fairness.

At the heart of our system, a robust event loop meticulously oversees interactions across diverse activities. These include:

1. Handling user requests through Client Gateways,
2. Managing internal timing for operations like executions and exchange hours (e.g., Good-Till-Triggered (GTT) expirations),
3. Responding to order status changes (e.g., activation of stop orders or stop limit orders),
4. Receiving updates from our centralized risk management regarding aggregated risk adjustments.
5. Processing external market dynamics and reference data changes.

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FkVgw0KgW8Iz0MmwczbuZ%2FPicture2.jpg?alt=media&amp;token=4a1fc7bc-fe52-469b-a932-4e30723e107f" alt=""><figcaption><p>Figure 1. A Chronicle Matching Engine instance processing events.</p></figcaption></figure>

By sequentially prioritizing these events, we ensure that our Processing Pipeline addresses each accurately and quickly, thereby maintaining our platform's integrity and responsiveness. This integration represents a substantial leap in enhancing our platform's scalability and efficiency, harnessing the power of an advanced processing pipeline capable of precisely managing multiple order books.

## **4. OPZ Network Synergy**

OPZ-DEX leverages the Layer-2 capabilities of the OPZ Network to push the boundaries of transaction throughput and privacy without compromising decentralized principles. Key integrations include:

* **zkEVM Integration**: At the core of the Processing Layer is the zkEVM. This element introduces Ethereum's smart contract functionalities into Bitcoin's robust and secure framework.

{% content-ref url="/pages/guQyKCcdZMoyKOlXDVdo" %}
[OPZ Network](/opz-dex-beta/opz-network)
{% endcontent-ref %}

## **5. Governance**

OPZ grants holders the right to propose and vote on changes to OPZ-DEX. To decentralize governance and provide additional utility by distributing power to the community once they launch. Giving back power to the community is one of the features of true decentralization.

Governance is built on the AAVE governance contracts and utilizes OPZ tokens to represent voting power. Proposals must pass a certain threshold and percentage of yes votes based on the type of timelock under which the proposal's subject matter falls.

***

Figure 1: Chronicle Software. Building an Exchange with Chronicle Matching Engine. \[Technical Report]


# Type and Time-In-Force

The Type and Time-In-Force properties of an order added to the Chronicle Matching Engine primarily determine how it behaves. The table below lists the main order type options:

### Simple Order Types

<table><thead><tr><th width="155">Type</th><th>Comments</th></tr></thead><tbody><tr><td>Market</td><td>Executes at best until matching stops. Any remainder is expired</td></tr><tr><td>Limit</td><td>Executes at or better than the price specified on the order. Any remainder is added to the order book or expired based on the specified Time-In-Force</td></tr></tbody></table>

### Advanced Order Types

<table><thead><tr><th width="157">Type</th><th>Comments</th></tr></thead><tbody><tr><td>Stop</td><td>Executes at best until matching stops. Any remainder is expired</td></tr><tr><td>Stop Limit</td><td>Executes at or better than the price specified on the order. Any remainder is added to the order book or expired based on the specified Time-In-Force</td></tr><tr><td>Iceberg</td><td>An order which has both a Quantity and a (smaller) Disclosed Quantity. Only the Disclosed property is added to/displayed on the order book. Once the displayed quantity reduces to 0 the order is replenished by the system up to the minimum of the Disclosed and Remaining Quantity</td></tr><tr><td>Hidden</td><td>A fully hidden order which is active on the book, but with no displayed quantity</td></tr><tr><td>Pegged</td><td>A hidden order pegged to some mid point (e.g. best bid, offer)</td></tr></tbody></table>

### Time-In-Force Options

<table><thead><tr><th width="263">Type</th><th>Comments</th></tr></thead><tbody><tr><td>Day</td><td>Expires at end of current trading day</td></tr><tr><td>Immediate or Cancel (IOC)</td><td>Executed on receipt. Any remainder is immediately expired</td></tr><tr><td>Fill or Kill (FOK)</td><td>FOK (Fill or Kill) Fully executed on receipt, or immediately expired</td></tr><tr><td>Good Till Time (GTT)</td><td>Expires at a specified time (UTC, second resolution)</td></tr><tr><td>Good Till Date (GTD)</td><td>Expires at the end of specified trading day (local calendar)</td></tr></tbody></table>


# Status & Priority Rules

### Status:

At any given time, an order is currently in one of the following states:

* Filled
* Cancelled
* Expired
* Partially Filled
* New
* Rejected
* Suspended (not currently on the order book, for example, parked Stop/Stop Limit)

### Amendments:

After entering an order into the system, you can change the following properties:

* Quantity
* Disclosed Quantity
* Price
* Stop Price
* Expiration Time (GTTs)
* Expiration Date (GTDs)

### Priority Rules:

When matching, the priority order (from highest to lowest) for any given price level is:

* All displayed orders
* Non-displayed parts of Icebergs (via replenishment)
* Fully Hidden Orders
* Pegged Orders

The order is then prioritized according to when it was added to the book or changed. If an order is changed, it loses priority.


# Funding Rate Structure

### **1. Conceptual Framework:**

* **Objective**: To ensure the mark price of OPZ-DEX perpetual contracts meticulously mirrors the underlying asset's spot price.
* **Core Mechanism**: Implement a funding exchange system where long and short position holders periodically settle payments, thereby aligning the perpetual contract price with the spot market price, exclusively tailored for OPZ-DEX users.

### **2. Funding Rate Components:**

* **Premium Index (P):** Reflects the difference between the perpetual contract price and the spot price.
* **Interest Rate Differential (I):** Accounts for the cost of capital considering different interest rates for base and quote currencies.

### **3. Premium Index Calculation (P):**

* **Formula:**$$P = \frac{\text{Mark Price} - \text{Spot Price}}{\text{Spot Price}}$$
* **Frequency:** Calculated every minute to ensure up-to-date data.
* **Mark Price Determination:** Use a Time-Weighted Average Price (TWAP) over the past 3 minutes to mitigate price manipulation.

### **4. Interest Rate Differential (I):**

* **Base:** Interest rate paid by open long or short perpetual positions based on the current market conditions.
* **Formula:** $$I=Base Rate−Quote Rate$$

### **5. Final Funding Rate Calculation (F):**

* **Formula:** $$F=P+I$$
* **Rate Limits:** Implement a strategic cap and floor for the funding rate to safeguard against extreme market volatility, ensuring a balanced trading environment.

### **6. Funding Interval:**

* **Interval Duration:** Payments are exchanged every 8 hours to align with industry standards and ensure predictability for traders.

### **7. Oracle and Price Data Feeds:**

* Decentralized Oracle network for robust and tamper-proof market data.
* Prices are aggregated from multiple reputable exchanges to calculate the Spot Price.
* The data feed mechanism is transparent and resistant to single points of failure.

### **8. Monitoring and Adjustment:**

* Continuously monitor the funding rate mechanism's performance and the market's response.


# OPZ Network

Next-Generation BTC Layer 2 Solution

> **Note:** In pursuing a Bitcoin Layer-2 solution that is production-ready and aligns with our specific needs, we did not find an existing protocol that fully met our criteria. Therefore, we started developing our OPZ Network solution to suit our unique requirements. While OPZ Network is our primary focus, we remain open to collaboration and actively engage in discussions with other Bitcoin Layer-2 protocols to explore potential synergies.

### 1.1 Background

Bitcoin, the first decentralized digital currency, has encountered scalability and transaction processing efficiency challenges. There is an increasing demand for scaling solutions to increase throughput, as shown by the Bitcoin Ordinals market, which is witnessing a remarkable surge in trading activity.

### 1.2 Problem Statement

Bitcoin's network faces significant challenges:

* **Scalability**: Limited transaction throughput due to block size and frequency constraints.
* **Performance**: Increased transaction fees and confirmation times during network congestion.
* **Privacy**: Exposure of transaction details on the public ledger.

### 1.3 Solution

OPZ Network introduces a Bitcoin Layer-2 solution to elevate the Bitcoin network's capabilities with  EVM compatibility. This protocol integrates Zero-Knowledge (ZK) Rollups to validate transactions faster while ensuring that gas fees remain minimal and without sharing critical user information. It also alleviates congestion on the base layer and increases scalability.

## 2. Features:

The OPZ Protocol has several features that make Bitcoin transactions faster, smarter, and more private.

### 2.1 Enhanced Scalability

Using ZK-Rollup technology, OPZ Protocol can handle more transactions and support complex smart contracts. By circumventing base layer congestion and limitations, ZK-Rollup achieve faster transaction speeds and reduced confirmation times.

### 2.2 Smart Contract Capability

The zkEVM brings the ability to create and use smart contracts on the Bitcoin network, opening up a world of possibilities for decentralized applications and services. A ZK-Rollup consists of three primary components: an Ethereum smart contract, a prover, and a set of verifiers. The smart contract manages the interactions between chains. A third-party prover creates cryptographic proofs of transaction validity on the layer-2 chain, while verifiers are a group of nodes that confirm these proofs and submit them to the smart contract.

### 2.3 Privacy and Security

Zk-Rollups improve transaction privacy by utilizing zero-knowledge proofs to verify them on-chain without revealing any information. This means that little data is posted on-chain and no information about the transactions is leaked. Zk-rollups also include privacy features like concealing transaction amounts or recipients.

## 3. OPZ Protocol Architecture

### 3.1 Processing Layer

The Processing Layer is the operational heart of the OPZ Protocol, where user transactions undergo processing, aggregation, and finalization on the Bitcoin network. Employing ZK-Rollup technology, this layer compiles groups of transactions into singular, verifiable proofs. This process significantly reduces the data footprint on the main chain, enhancing transaction speed and cost-efficiency and aligning with the protocol's commitment to security, scalability, and practicality.

### **3.1.1 zkEVM (Zero-Knowledge Ethereum Virtual Machine)**

At the core of the Processing Layer is the zkEVM. This element introduces Ethereum's smart contract functionalities into Bitcoin's robust and secure framework. This innovative integration allows for the execution of smart contracts and decentralized applications (DApps) within a scalable, privacy-preserving environment, making the OPZ Protocol a bridge between Bitcoin, the most battle-tested decentralized network in the world, and the adaptable smart contract capabilities of Ethereum.

### 3.2 Consensus and Data Integrity Layer

This layer forms the backbone of the OPZ Protocol's security and reliability, ensuring transaction data's secure storage and perpetual availability.

### **3.2.1 Decentralized Data Storage**

To fortify the protocol's security and resilience, OPZ Protocol incorporates decentralized data storage solutions. This approach distributes and securely maintains transaction data across a network of nodes, significantly enhancing data security and eliminating the risks associated with centralized data repositories.

### **3.2.2 OPZ Nodes**

OPZ Nodes are multifunctional entities within the protocol, entrusted with critical responsibilities, including the validation of **ZK Proofs**: These nodes are instrumental in validating the correctness of zero-knowledge proofs, ensuring the integrity and accuracy of the transactional data processed in the ZK-Rollup Layer.

* **Decentralized Sequencing Services**: OPZ Nodes manage the sequencing of transactions, maintaining decentralization of the network and ensuring that transaction processing is impartial and secure.
* **Integration with Bitcoin State Data**: By incorporating state data from the Bitcoin network, OPZ Nodes improve the synchronicity and cohesiveness between the Layer-1 and Layer-2 solutions, ensuring that the OPZ Protocol runs smoothly on top of the underlying Bitcoin infrastructure.

In essence, OPZ Nodes are the guardians of the protocol's decentralized structure, playing an important role in upholding the network's transparency, security, and operational integrity.

## **4. Integrating Hybrid DEX**

#### **OPZ Network Synergy**

The synergy between OPZ-DEX and OPZ Network leverages zkEVM at the Processing Layer core to bridge Bitcoin and Ethereum functionalities, offering a blend of speed, efficiency, and security. This structure addresses high-frequency trading requirements without compromising decentralization principles.

### 4.1 Architecture Overview

The architecture consists off two main components:

* **On-Chain Settlement Layer**: Utilizes the OPZ Network's zkEVM for executing smart contracts for trade settlements, leveraging zero-knowledge proofs to ensure privacy and security.
* **Off-Chain Order Book and Matching Engine** (Chronicle Matching Engine): Handles order matching and trade execution off-chain for high speed and low costs, while final settlements are registered on-chain.

### 4.2 Process Flow and Formulas

1. **Order Placement and Matching**:

Users place orders via the OPZ-DEX interface, which are then encrypted and sent to the Chronicle Matching Engine. Every order can be represented as $$(O)$$,&#x20;

where: $$(O = {userID, assetID, price, volume, direction, nonce}).$$

2. **Order Aggregation**:

The matching engine aggregates these orders into batches for processing. The aggregation process can use a time-based or size-based strategy to compile orders into a batch$$(B)$$,&#x20;

where: $$(B = {O\_1, O\_2, ..., O\_n})$$

3. **Trade Execution**:

Once a match is found for orders within a batch, the Chronicle Matching Engine executes the trade off-chain and generates a proof of execution $$(Proof\_{exec})$$

4. **Off-Chain to On-Chain Transition**:

Post trade execution, a summary of the batch $$(S\_B)$$ and $$(Proof\_{exec})$$are submitted to the zkEVM on-chain for settlement. The summary $$(S\_B)$$ contains aggregated information of asset transfers without revealing individual order details to maintain privacy.

$$\[S\_B = f(B) = {totalIn, totalOut, assetID, Proof\_{exec}}]$$

5. **On-Chain Settlement**:

The zkEVM checks $$(Proof\_{exec})$$ for its validity. If valid, it updates the on-chain state based on $$(S\_B)$$ The zkEVM uses zero-knowledge proofs to ensure that this transition maintains user privacy and transaction integrity.

6. **Confirmation and Finality**:

Once the on-chain settlement is complete, the OPZ Network confirms the transaction and updates the users' account balances. This finality in state is immutable and verifiable by any participant of the network.

### 4.3 zk-SNARKs

For the **trade execution proof**$$(Proof\_{exec})$$, we can consider the use of a zk-SNARKs (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge), formulated as follows:

$$\[Verify(Proof\_{exec}, PublicInputs) \rightarrow {0, 1}]$$

Where $$(Verify)$$ is the verification function, $$(Proof\_{exec})$$ is the proof of batch execution, and  $$(PublicInputs)$$ include aggregated trade details. The function returns 1 for a valid proof, signifying a successful trade execution and subsequent on-chain settlement.

### 4.4 Security and Efficiency

OPZ-DEX through OPZ Network Synergy ensures:

* **Security**: By leveraging zk-SNARKs, user transactions remain private and secure, while the integrity of trade executions is publicly verifiable.
* **Efficiency**: Off-chain order matching coupled with on-chain settlement leverages the strengths of both systems – speed and immutability, respectively.


# Referral Program

Invite Friends to Earn Commissions

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FHWBTpanCktC200Ji0itk%2FAsset%2042-8.png?alt=media&amp;token=3b9b9499-919b-4879-893f-6940175f5e74" alt="" width="563"><figcaption></figcaption></figure>

Referrers are entitled to a portion of referral fees, with the platform collecting the remainder. The program collects and withholds the fees, which are claimable at any time.

Click [here ](https://www.opz.com/affiliate)to visit the Referral Dashboard

{% hint style="success" %}
***The referral system is a great way of earning free OPZ, even while you sleep!***
{% endhint %}

### Referral Commission:

* Spot Trading: 65% Lifetime referral commission
* Derivates: 50% Lifetime referral commission

### How to use your referral link to start earning:

To begin earning from your personal link, go to the referral tab on OPZ (make sure you are connected to your wallet or logged in), grab the link provided, and start sharing; it's that simple!

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2Fp9NJTBqdLKlY25Toq3w1%2FScreenshot%202024-02-12%20235220.png?alt=media&amp;token=275b688b-6756-4c40-aebd-aff9d8b0714d" alt=""><figcaption></figcaption></figure>


# Resource Hub

#### OPZ-DEX (DEMO): [OPZ.io/Trade](https://whitepaper.opz.io/opz-dex-beta/www.OPZ.io/Trade)

***

#### OPZ Rewards Page: [OPZ.io/Rewards](https://whitepaper.opz.io/opz-dex-beta/www.OPZ.io/Rewards)

***

#### Fees Overview: [OPZ.io/Fees](https://whitepaper.opz.io/opz-dex-beta/www.OPZ.io/Fees)

***

#### Markets Overview: [OPZ.io/Markets](https://whitepaper.opz.io/opz-dex-beta/www.OPZ.io/Markets)

***

#### Staking & Token Management Dashboard: [OPZ.io/Staking](https://OPZ.io/Staking)

***

#### Referral Dashboard: [OPZ.io/Referral](https://OPZ.io/Referral)

***

#### Orders Overview: [OPZ.io/user-center/dashboard/orders](https://OPZ.io/user-center/dashboard/orders)

***

#### History Page: [OPZ.io/user-center/dashboard/history](https://OPZ.io/user-center/dashboard/history)

***

#### API: [OPZ.io/user-center/dashboard/settings/api](https://OPZ.io/user-center/dashboard/settings/api)


# OPZ Token Overview

OPZ, the native and cryptographically secured token of the OPZ platform, is designed to play a central role in the ecosystem, facilitating transactions, rewarding participation, and driving community governance initiatives.

**Total OPZ Supply: 1,000,000,000 OPZ**

> Once the total supply of 1 billion OPZ tokens is distributed, no more OPZ tokens will be introduce&#x64;**.**

#### Distribution Model:

The total supply of OPZ tokens will be capped at 1 billion tokens, ensuring a deflationary model that potentially appreciates value as demand increases. The distribution is planned over a period of 6 years to ensure a gradual market entry that supports price stability and sustained growth.

<figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FIqf0iMGUh32OoHeHljMH%2Ftokenomics-transparent2.png?alt=media&amp;token=deddecbd-54a5-494a-aeac-a0c290df1a4b" alt=""><figcaption></figcaption></figure>

**Community Allocation (50% - 500,000,000 OPZ):**

1. **Trading Rewards Program (14% - 140,000,000 OPZ):** Rewards users based on their trading volume and engagement on the platform. The rewards are structured to incentivize both short-term participation and long-term loyalty.
2. **Liquidity Providers Program (7% - 70,000,000 OPZ):** Encourages users to provide liquidity to the platform’s pools, enhancing the depth and stability of the market.
3. **Staking Rewards (8% - 80,000,000 OPZ):** Users can stake their OPZ tokens to receive rewards, contributing to the platform's security and governance.
4. **Community Treasury (15% - 150,000,000 OPZ):** Reserved for future community initiatives, governance proposals, and ecosystem development projects voted by OPZ holders.
5. **Airdrops (6%  - 60,000,000):** OPZ plans to distribute tokens through multiple rounds of airdrops. The airdrops are intended to engage existing users, increasing liquidity in the ecosystem and attract new participants to the Bitcoin Layer 2 ecosystem.

**Investor & Employee Allocation (50% - 500,000,000 OPZ):**

1. **Investors (12% - 120,000,000 OPZ):** Rewards early backers of the project, with a vesting period structured to align with the long-term success of the platform.
2. **Team and Founders (8% - 80,000,000 OPZ):** Allocated to the core team and founders as an incentive for their continued commitment and development of the platform. Vesting periods apply to ensure alignment with the platform’s growth and success.
3. **Advisory Board (0.8% - 8,000,000 OPZ):** Allocated to advisors who provide strategic, technical, and business guidance. This is vested over a period to ensure ongoing support and alignment with the platform’s objectives.
4. **Early Access Program** **(20% - 200,000,000 OPZ):** The early access program is split into 6 stages, with prices starting from $0.028.
5. **Employee Incentive Plan (EIP) (2% - 20,000,000 OPZ):** Reserved for future employees as part of an incentive program to attract and retain talent.
6. **Reserved for New Strategic Investments (7.2% - 72,000,000 OPZ):** Set aside for future investments, partnerships, or acquisitions to grow and expand the platform's capabilities and market presence. OPZ tokens in the New Strategic Investments may be staked to generate further reserves to fund further development and to promote and encourage the use of the protocol by the community.

<table><thead><tr><th width="458.3333333333333">Category</th><th width="156">Percentage</th><th>OPZ Tokens</th></tr></thead><tbody><tr><td>Trading Rewards Program</td><td>14.0%</td><td>140,000,000</td></tr><tr><td>Liquidity Providers Program</td><td>7.0%</td><td>70,000,000</td></tr><tr><td>Staking Rewards</td><td>8.0%</td><td>80,000,000</td></tr><tr><td>Community Treasury</td><td>15.0%</td><td>150,000,000</td></tr><tr><td>Early Access Program</td><td>20.0%</td><td>200.000.000</td></tr><tr><td>Investors</td><td>12.0%</td><td>120,000,000</td></tr><tr><td>Team and Founders</td><td>8.0%</td><td>80,000,000</td></tr><tr><td>Advisory Board</td><td>0.8%</td><td>8,000,000</td></tr><tr><td>Employee Incentive Plan (EIP)</td><td>2.0%</td><td>20,000,000</td></tr><tr><td>Reserved for New Strategic Investments</td><td>7.2%</td><td>72,000,000</td></tr><tr><td>Airdrops</td><td>6%</td><td>60.000.000</td></tr></tbody></table>

#### Additional Features:

* **Vesting Schedule:** To ensure long-term commitment and reduce market volatility, tokens allocated to investors, team members, and advisors will have a cliff period implemented to safeguard the token’s performance and value.

<table><thead><tr><th width="189">Category</th><th width="83">Total</th><th width="82">TGE</th><th width="392">Desc</th></tr></thead><tbody><tr><td>Investors</td><td>12.0%</td><td>10.0%</td><td>6 Months Cliff, Linear Unlock, 18 Months</td></tr><tr><td>Team and Founders</td><td>8.0%</td><td>0.0%</td><td>24 Months Cliff, Linear Unlock, 24 months</td></tr><tr><td>Trading Rewards Program</td><td>14.0%</td><td>5.0%</td><td>28 Days Cliff, Linear Unlock, 60 Months</td></tr><tr><td>Community Treasury</td><td>15.0%</td><td>5.0%</td><td>28 Days Cliff, Linear Unlock, 72 Months</td></tr><tr><td>Early Access Program</td><td>20.0%</td><td>12.5%</td><td>4 Months Cliff, Linear Unlock, 12 Months</td></tr><tr><td>Staking Rewards</td><td>8.0%</td><td>5.0%</td><td>28 Days Cliff, Linear Unlock, 72 Months</td></tr><tr><td>Liquidity Providers Program</td><td>7.0%</td><td>5.0%</td><td>28 Days Cliff, Linear Unlock, 60 Months</td></tr><tr><td>Reserved for New Strategic Investments</td><td>7.2%</td><td>0.0%</td><td>28 Days Cliff, Linear Unlock, 28 Months</td></tr><tr><td>Airdrops</td><td>6.0%</td><td>50.0%</td><td>Linear Unlock, 12 Months</td></tr><tr><td>Employee Incentive Plan (EIP)</td><td>2.0%</td><td>0.0%</td><td>24 Months Cliff, Linear Unlock, 28 Months</td></tr><tr><td>Advisory Board:</td><td>0.8%</td><td>0.0%</td><td>24 Months Cliff, Linear Unlock, 28 Months</td></tr></tbody></table>

Staked coins during the early access program have a different vesting schedule from early access program tokens. They release 5% at TGE. Staked coins locked for less than one year follow a 5% TGE release, with a 6-month cliff and 12-month linear unlock. Staked coins for 1 year or more follow the same early access program vesting with 100% released at the end of the early access program vesting period.

**Giveaway Tokens:** 5% released at TGE, followed by a 6-month cliff, then a 12-month linear unlock.

* **Governance:** OPZ token holders will have governance rights, allowing them to propose and vote on platform upgrades, token utility, and community initiatives. The primary purpose is facilitating community engagement, decision-making, and incentivization within the Bitcoin Layer 2 network. The OPZ governance is based on the AAVE governance contracts.
* **Burn Mechanism:** A portion of the tokens used in transaction fees, or a percentage of the tokens in the treasury, can be burned periodically, ensuring a deflationary pressure on the total token supply and potentially increasing the value per token.
* **Staking and Delegating:** OPZ holders can stake their tokens to participate in the platform’s security and governance.
* **Insurance Fund:** A portion of transaction fees will be allocated to an insurance fund to protect and insure the platform’s operations and users’ interests.

By creating a balanced tokenomics model, OPZ aims to build a sustainable and thriving ecosystem that rewards participation, ensures platform security, and aligns the long-term interests of all users.&#x20;

### Token Contract

* **Address**: 0x18E1B6AA7ef866Eba192f2817D43bAE92D75c817

  (Do not send any tokens to this address)
* **Decimal**: 18
* **Network**: ERC20
* **Symbol**: OPZ
* **Name**: OPZ Token

***

Disclaime&#x72;**:** OPZ reserves the right to make adjustments to this whitepaper at any time.

By using the OPZ Protocol and holding the OPZ token, users acknowledge that they have read, understood, and accepted the risks described below:

> **OPZ** does not represent any shareholding, ownership, participation, right, title, or interest in OPZ Protocol or any of its affiliates, or any other company, enterprise, or undertaking; nor will OPZ entitle token holders to any promise of fees, dividends, revenue, profits, or investment returns; and they are not intended to be securities in any jurisdiction.
>
> **OPZ** may only be utilized on the OPZ Protocol, and ownership carries no rights, express or implied, other than the right to use OPZ to enable usage and interaction within the OPZ Protocol. The secondary market pricing of OPZ is not determined by the OPZ team's efforts, and no token functionality or scheme is intended to control or manipulate such secondary pricing.
>
> **OPZ** is designed to be utilized, and it is highlighted that OPZ :&#x20;
>
> * (A) does not have any tangible or physical manifestation and does not have any intrinsic value (nor does any person make any representation or give any commitment as to its value);&#x20;
> * (B) is non-refundable and cannot be exchanged for cash (or its equivalent value in any other digital asset) or any payment obligation by OPZ Protocol or any of its affiliates;&#x20;
> * (C) does not represent or confer on the token holder any right of any form with respect to OPZ Protocol or any of its affiliates, or their revenues or assets, including without limitation any right to receive future dividends, revenue, shares, ownership right, or stake, share or security, any voting, distribution, redemption, liquidation, proprietary (including all forms of intellectual property or license rights), right to receive accounts, financial statements or other financial data, the right to requisition or participate in shareholder meetings, the right to nominate a director, or other financial or legal rights or equivalent rights, or intellectual property rights or any other form of participation in or relating to OPZ Protocol or any of its affiliates;&#x20;
> * (D) is not intended to represent any rights under a contract for differences or under any other contract, the purpose or intended purpose of which is to secure a profit or avoid a loss;&#x20;
> * (E) is not intended to be a representation of money (including electronic money), payment instrument, security, commodity, bond, debt instrument, unit in a collective investment or managed investment scheme, or any other kind of financial instrument or investment;&#x20;
> * (F) is not a loan to OPZ Protocol or any of its affiliates, is not intended to represent a debt owed by OPZ Protocol or any of its affiliates, and there is no expectation of profit nor interest payment;&#x20;
> * (G) and does not grant the token holder any ownership or other interest in OPZ Protocol or its affiliates. Regardless of OPZ distribution or payment, users have no economic or legal rights to or beneficial interest in the assets of OPZ Protocol or its affiliates.
>
> You are solely responsible for determining whether any investment, investment strategy, or related transaction is appropriate for you based on your financial circumstances, personal investment objectives, and level of risk aversion. You are also responsible for verifying the legality of your participation in any such transaction within your jurisdiction. In certain jurisdictions, you may not be permitted to purchase, hold, or trade OPZ tokens at all.
>
> This includes, but is not limited to:
>
> * **United States:** Due to U.S. federal and state securities and commodities laws, residents and citizens of the United States — regardless of where they are located are **prohibited** from purchasing, holding, or trading OPZ tokens.
> * **Canada:** Provincial and territorial rules may classify certain crypto assets as securities or derivatives; residents are prohibited from purchasing, holding, or trading OPZ tokens unless they meet a specific registration or qualification exemption.
> * **European Union & United Kingdom:** Under EU MiCA regulations and UK FCA rules, residents are prohibited from purchasing, holding, or trading OPZ tokens.
> * **Other Jurisdictions:** Countries such as Australia, UAE, China, India, and others have imposed outright bans or severe restrictions on cryptocurrency transactions. Participation is prohibited.
>
> If you are located in a jurisdiction where such participation is prohibited, you must not attempt to purchase or engage in transactions involving OPZ.
>
> You are strongly advised to seek professional legal and/or tax advice to understand the regulatory, tax, and reporting requirements applicable to you before making any purchase.
>
> ### Age Requirement
>
> Participants must be 18 years of age or older.


# Early Access Program Schedule

OPZ Early Access Program Stages

{% hint style="info" %}
The timing for our mainnet launch will depend on market conditions, partnerships, and guidance from our community. Currently, we’re in Stage 13, and our community is guiding us towards Stage 18 as the ideal opportunity or whenever the Mainnet happens, whichever comes first. Through our governance model, token holders play a key role in shaping our path forward. Join us in making these decisions by voting at [OPZ.io/governance](https://OPZ.io/governance). Thank you for your support and understanding.
{% endhint %}

Join us on a journey through 36 stages of opportunity, where our community decides the perfect stage to launch each phase forward. By participating in our early access program, you're not only getting a head start but also showing your belief in the project's potential. It's your chance to be part of the inner circle, securing your place as an early adopter and potentially reaping the rewards as the project gains momentum.

At the current Early Access price, participants can purchase tokens before trading begins, subject to availability and program terms. Please note: $0.10 is the initial listing reference price only. Once trading is live, the market price may be higher or lower depending on market conditions at the time you choose to trade or sell.

### FAQ:

#### **Why Should I Buy OPZ Tokens During** Early Access Progra&#x6D;**?**

You get early access to OPZ’s newest features as we release them, plus the ability to use OPZ tokens directly within our platform. Tokens can be used as credits to access and purchase AI-related services and features (where available), subject to eligibility, availability, and applicable terms.

#### **How many stages are there in the OPZ** early access progra&#x6D;**?**

OPZ's early access program is organized into 36 stages, each representing a unique phase in our journey. On our [governance ](https://opz.io/governance)page, token holders can decide the right timing for the launch. Currently, we’re in Stage 11, with our community guiding us towards Stage 18 as the ideal launch opportunity. Or whenever our Mainnet launches, marking a key moment for us.

#### When will OPZ be listed on exchanges?

OPZ is planned to become available for trading on CEX and DEX after the Early Access Program concludes.

#### How does OPZ plan to engage and communicate with the community during and after the early access program?

OPZ will engage with the community via official channels such as social media, newsletters, and the website. Additionally, interactive sessions will be held to address questions and enhance users' support.

#### How will participants receive their tokens after contributing to the early access program?

Participants can claim their tokens by connecting their wallets to OPZ. After the early access program ends and claiming is activated, tokens will be airdropped to their accounts.

**OPZ Token Delivery Preferences 🚀**\
You can already set your token delivery address and notification preferences for the upcoming distribution here:\
🔗 <https://www.opz.io/claim/form>

This form is optional.

***

The token price within each stage can increase based on time and progress but will never exceed the price of the next stage. This flexible pricing ensures early adopters gain value as the project evolves.

Furthermore, we've designed our early access programto adapt to demand: stages can be added to extend opportunities, and unsold tokens may potentially be burned, enhancing the value for early participants.

**Visit our early access program** **at:** [**OPZ.io/early-access**](https://opz.io/early-access)**.**

***

Disclaimer: OPZ reserves the right to make adjustments to this whitepaper at any time. The exact timing for the launch depends on market conditions, partnership timings, and other crucial factors. However, we strive to complete preparations and launch sooner, depending on what is deemed the best timing for the project.


# Trade & Earn

Earn OPZ by engaging with the OPZ-DEX platform.

The OPZ-DEX Reward Initiative encourages users through the OPZ token to undertake various activities within the OPZ-DEX application.

**Reward Objectives**:

* Incentivize all traders to use and motivate them to explore different features of the OPZ-DEX.
* Accelerate market liquidity and overall product usage.

**14% (140.000.000 OPZ)** of the token supply will be distributed to users who trade on OPZ based on fees paid. Those who stake OPZ will enjoy boosting multipliers.

Rewards will be calculated at the end of each Epoch and distributed within 3 hours (1 Epoch equals one day).&#x20;

$$r = \frac{R \cdot W}{\sum W\_i}$$

Where,

* $$r$$ represents the reward allocated to a user.
* $$R$$ denotes the Adjusted Trading Reward Factor, calculated per user.
* $$W$$ is the weight assigned to the user's contribution in the cycle.
* $$∑Wi$$ is the sum of weights of all participating users in the cycle.

The Adjusted Trading Reward Factor ($$R$$) for each user is computed by the following formula:

$$R = \frac{\min(\text{Dollar Value Multiplier} \cdot \text{Trading Fee}, \text{Dollar Value Cap})}{\max(\text{OPZ Last Price}, \text{OPZ Price Floor})}$$

Where the parameters are defined as:

* **Dollar Value Multiplier:** A pre-set constant for the epoch, 0.50 in the current epoch.
* **Trading Fee:** The USD equivalent of the previous day's fee income.
* **Dollar Value Cap:** A system-configured maximum, set at 25.000.
* **OPZ Last Price:** The most recent price of the OPZ token.
* **OPZ Price Floor:** A predetermined lower boundary for OPZ price.

> ### Terms and Conditions <a href="#id-54cb" id="id-54cb"></a>
>
> * After the end of each cycle, OPZ may modify the program rules based on user feedback and market conditions. Rewards will be distributed non-linearly.
> * Even if users' effective trading volumes are the same, the rewards they receive may differ due to differences in trading fees between trading pairs.
> * OPZ reserves the right of final interpretation for this activity.
>
> Risk Warning: Crypto futures trading carries a substantial risk. All trading activities are done at your discretion and your own risk. The information here should not be regarded as financial or investment advice from OPZ. OPZ will not be liable for any loss that might arise from your use of OPZ-DEX.


# Brand Logo & Guidelines

Welcome to the OPZ Brand Logo Guidelines

Our logo and brand elements are proprietary materials that are protected by copyright and can only be used in accordance with the guidelines outlined below.

When using OPZ brand elements, it is important to keep the following in mind:

✅ You may use our brand elements to link to our official website, social media channels, or products.&#x20;

✅ You may also use our brand elements to announce an official partnership with OPZ, but only with prior approval from our team.&#x20;

❌ Do not make any edits, changes, recolorings, or reconfigurations to any of our brand elements.&#x20;

❌ Do not use our brand elements to promote your own products or services without explicit consent from our team.

If you have any questions regarding the use of our brand elements, please don't hesitate to reach out to us at <brand@opz.com> We also provide our logo and brand elements for download on our website.

Please note that our logo should be used in its original form, without any editing, distorting, recoloring, or reconfiguring. The horizontal version of the logo is the primary version and should be used as the default.

Thank you for your cooperation in maintaining the integrity of the OPZ brand.

### **Download OPZ Logo**

**Our Logo**

<div data-full-width="false"><figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FEYa9IJ8f7rBJh2uyr85T%2FItunesArtwork%402x.png?alt=media&amp;token=940ed6b2-9ede-40f3-b7d1-867c04fec71d" alt="" width="188"><figcaption></figcaption></figure> <figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FND8sdJv8gfdcYSP1o2ja%2Flogo.svg?alt=media&amp;token=ff4c7204-712c-4736-a8aa-8a1a72ef6ad2" alt=""><figcaption></figcaption></figure> <figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FMEW8KSZfNxYBTP7w9XlO%2FOPZ200.png?alt=media&amp;token=36a1cff1-e9de-403f-adc4-ba5a0ad77b45" alt=""><figcaption></figcaption></figure> <figure><img src="https://365503340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2GE0A1lzarytwHeXEqac%2Fuploads%2FkstCcucOLE9k3I7lioqt%2Fsplash.svg?alt=media&amp;token=e63846fe-ee69-4dbb-bb49-b4c660f0fb99" alt=""><figcaption></figcaption></figure></div>


# Bug Bounty

## Program Overview

The classification of severity levels is determined by [Immunefi Vulnerability Severity Classification System](https://immunefi.com/severity-updated/). It is important to note that these levels are merely suggestions and each bug bounty submission will be individually assessed.

## Invalid Bug Bounties

The following are not covered by the bug bounty program:

* Incidents where the reporter has caused harm by exploiting the vulnerability themselves.
* Vulnerabilities that can only be exploited by utilizing leaked keys or credentials.
* Vulnerabilities that require access to privileged addresses such as governance or admin addresses.
* Issues caused by incorrect data supplied by external oracles (however, oracle manipulation or flash loan attacks are still in scope)
* Situations where there is a lack of liquidity.
* Errors made by third-party off-chain bots (e.g. bugs in an arbitrage bot running on the smart contracts)
* Suggestions for best practice or critiques.
* Sybil attacks.


