Zex Finance
  • Introduction
  • Zex Overview
    • Traditional DEXs
      • Zex vs. DEX
        • Synchronization
        • Verification
    • How CEXs Works
      • Zex vs. CEX
        • TXs Verification
        • On-chain Intraction
        • Custody and Transparency
  • Tech Architecture
    • High-level Architecture
    • Smart Contacts
    • ZexPorta
      • Deposit
      • Withdraw
      • Validators
    • ZexCora
Powered by GitBook
On this page
  • Role in the Decentralized Architecture
  • Validator Workflow
Export as PDF
  1. Tech Architecture
  2. ZexPorta

Validators

PreviousWithdrawNextZexCora

Validators are pivotal in maintaining the security, integrity, and decentralization of the ZexPorta module. They function as decentralized PyFrost Nodes, tasked with validating both deposit and withdrawal transactions. Validators ensure that all data corresponding to these operations meet stringent standards and pass accurately to the ZexCora and the Vault contract.

Role in the Decentralized Architecture

Validators are integral to the decentralized design of ZexPorta module, ensuring that no single entity has control over the transaction approval process. By distributing responsibility across multiple Validators, Zex achieves a high level of security and decentralization.

Threshold Signature Protocol

  • Validators implement the protocol via the .

  • This protocol ensures that no single Validator can unilaterally sign a transaction, requiring collaboration among a quorum of Validators to generate a valid signature.

Signature Aggregation

  • Validators issue partial signatures for both deposit and withdrawal transactions.

  • These partial signatures are aggregated by the SA to produce a complete, secure signature, which is then forwarded to the ZexCora or to the Vault contract for final processing.

Validator Workflow

Validators in the ZexPorta module are designed to handle tasks associated with both deposit and withdrawal processes:

1. Deposit Validation

  • Validators retrieve finalised deposit transactions from the blockchain using the hash provided by the SA.

  • They verify the finality of the block containing the transaction.

  • Upon successful verification, Validators generate partial signatures for the deposit transaction data and send them to the Signature Aggregator (SA).

2. Withdrawal Validation

  • Validators fetch withdrawal requests from the ZexCora by the corresponding transaction nonce provided by SA. Then the Validators generate partial signatures for the withdrawal request and send them back to the SA.

FROST (Flexible Round-Optimized Schnorr Threshold)
PyFrost library