Vessel
  • ⚓Introducing Vessel
    • Why Vessel Is The Exchange Crypto Needs?
    • Vessel's Roadmap for the Future of DeFi
  • ⚙️Technical Deep Dive
    • Sequencer
    • Prover
    • Contract
    • Data Availability
  • 💰VAELOB
    • Terminology
    • Order Book and AMM: Can We Have the Best of Both?
    • A Typical Trade in Vessel
    • Liquidity Pool Math
    • Concentrated Liquidity
    • Fee Calculation
    • Multi-Pool with Different Tick Spacing
  • 🎁Vessel Voyage
    • Vessel Mileage for Liquidity Providing
    • Vessel Coins for Referral
  • 🛳️Mainnet User Guide
    • Set up a Wallet
    • Deposit
    • Provide Liquidity to Vessel’s VAELOB
      • Access the Liquidity Pools
      • Add Liquidity
      • View Positions
      • Manage Positions
    • Trade
      • Order Types
      • Place Order
      • Cancel Order
      • Modify Order
      • Trading History
    • Internal Transfer - Send to Vessel's User
    • Withdraw Your Assets
    • Fees
      • Trading Fee
      • Gas Fee
      • AMM Fee
    • Trading Settings
  • 🛥️Testnet User Guide
    • Log in with Invitation Code
    • Setting up a Wallet
    • Switching Network
    • Funding Your Wallet
    • How to Deposit
    • How to Trade
    • How to Withdraw
    • Community Contribution
    • Vessel’s Referral Program
    • FAQs
  • 🗺️Smart Contract Deployments
  • 🐚Vessel Community Hub
    • Vessel Community Update: Q1 2024
    • Vessel Community Update: Q2 2024
    • Vessel Community Update: Q3 2024
  • 🎨Brand Kit
Powered by GitBook
On this page

Technical Deep Dive

PreviousVessel's Roadmap for the Future of DeFiNextSequencer

Last updated 11 months ago

Similar to ZK-Rollup protocols, Vessel consists of three major components: the sequencer, the prover, and the contract.

A user typically initiates a request to the sequencer (with certain exceptions like deposits and withdrawals that may incur on-chain transactions, though these are less frequent). The sequencer inspects and processes the request, responding to the user instantaneously, much like other CEX servers.

The key difference is that the sequencer also produces witnesses while processing user requests and streams them to the prover. Using these witnesses, the prover generates SNARK proofs to attest that the sequencer is operating correctly —— ensuring it doesn’t mint funds out of thin air, doesn’t move assets between accounts without authorization, and doesn’t fake or replay orders. Meanwhile, the off-chain state is updated according to the rules encoded in ZK arithmetization.

The SNARK proofs, along with a digest of the off-chain state, are committed to the smart contract for verification and finalization. All user assets are held in an on-chain contract called the "Vault" and can only be moved in ways specified by a valid proof.

⚙️