Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Glossary

Vaibhav Chellani edited this page Mar 21, 2020 · 1 revision

This document contains various terms and their meanings. These terms are used throughout the codebase.


Types of Trees

  • PublicKey Data Availability Tree (PDA Tree):
    • On-chain permanently stored.
    • Leaves contain the public key of the account.
    • The path in this tree becomes the ID for the user.
    • Variable Depth Tree(VDT)
    • Leaf is called PDALeaf and stores (pubkey)
  • Balances Tree:
    • On-chain permanently tree
    • Stores balances of all users.
    • Can be updated by coordinator by sending a batch.
    • Variable Depth Tree(VDT)
    • Leaf is called UserAccount and stores (PDA_ID, balance, tokenType, nonce)
  • Deposit Sub Tree:
    • On-chain temporary tree
    • Queue deposits before they are added to the balances tree.
    • Fixed Depth Tree (FDT)
    • Leaf is called UserAccount and stores (PDA_ID, balance, tokenType, nonce)
Clone this wiki locally