DxChain Wiki
  • ๐Ÿ‘‹Welcome to DxChain!
    • About $DX
    • About DxChain V3
    • Important Links
    • Project Updates
  • ๐Ÿ“The Basics
    • ๐Ÿ“–DxChain V3 LitePaper
      • Notice
      • 1. Background
      • 2. Introduction
      • 3. The Ecosystem Powered by DxChain 3.0
      • 4. DxChain Design Principles & Architecture
        • 4.1 Fully Compatible with EVM
        • 4.2 DPoS Consensus Algorithm
        • 4.3 Cross Chain
        • 4.4 API Layer
        • 4.5 Blacklist Management
        • 4.6 P2P Decentralized Network Layer
        • 4.7 MPT + LevelDB
        • 4.8 Ellipse Curve Digital Signature Algorithm
      • 5. Economic system
      • 6. Governance
      • 7. Roadmap
      • 8. Follow Us
      • 9. Reference
      • 10. Risk Warning
  • ๐Ÿช™Stake and Trade
    • About DX DPoS
    • How to Earn DX
    • Stake on DxChain
      • DxChain V3 Staking
      • Wallet
      • Consensus
      • How to Stake
    • Develop on DxChain
      • Compile and Run
      • On-chain Interaction
        • DPoS API
      • Smart Contract
      • Private Chain Construction
      • Genesis Block
      • Parameters Table
      • Mainnet
      • Testnet
      • Participate as Validator
    • Trade on DxChain
      • Cross Chain Bridge
  • โ›๏ธLiquidity Mining
    • Introduction of DxFarm
      • Functions
    • Tutorial
  • ๐ŸŽ™๏ธMedia Press
  • ๐ŸŒไธญๆ–‡็คพๅŒบ
    • ๐Ÿ“™DxChainๆ–ฐไบบๆ‰‹ๅ†Œ
    • ๐Ÿ“œDxChain V3ๆŠ€ๆœฏๆ–‡ๆกฃ
      • 1. ่ƒŒๆ™ฏ
      • 2. ็ฎ€ไป‹
      • 3. DxChain 3.0่ต‹่ƒฝ็š„็”Ÿๆ€็ณป็ปŸ
      • 4. ๆŠ€ๆœฏ็š„่ฎพ่ฎกๅŽŸ็†ไธŽๆžถๆž„
        • 4.1 ๅ…จ้ขๅ…ผๅฎนEVM
        • 4.2 DPOSๅ…ฑ่ฏ†ๆœบๅˆถ
        • 4.3 ่ทจ้“พ
        • 4.4 ๆŽฅๅฃๅฑ‚
        • 4.5 ไธฅๆ ผ็š„้ป‘ๅๅ•็ฎก็†
        • 4.6 P2Pๅˆ†ๅธƒๅผ็ฝ‘็ปœๅฑ‚
        • 4.7 MPT + LevelDB
        • 4.8 ๆคญๅœ†ๆ›ฒ็บฟๆ•ฐๅญ—็ญพๅ็ฎ—ๆณ•
      • 5. ็ปๆตŽ็ณป็ปŸ
      • 6. ็คพๅŒบๆฒป็†
      • 7. ๅœจ็คพไบคๅช’ไฝ“ไธŠไธŽๆˆ‘ไปฌไบ’ๅŠจ
      • 8. ๅ‚่€ƒๆ–‡็Œฎ
      • 9. ้ฃŽ้™ฉๆ็คบ
      • ๅ…่ดฃๅฃฐๆ˜Ž
    • โ›“๏ธ้‡่ฆ้“พๆŽฅ
    • ๐Ÿ’ปๅผ€ๅ‘่€…ๆ–‡ๆกฃ
      • ๅ…ณไบŽDxChain 3.0
      • ้’ฑๅŒ…
      • ๅ…ฑ่ฏ†
      • ๅˆ›ไธ–ๅ—
      • ๅผ€ๅ‘่€…
        • ็ผ–่ฏ‘ๅ’Œ่ฟ่กŒ
        • ้“พไธŠไบคไบ’
          • DPoS API
        • ๆ™บ่ƒฝๅˆ็บฆ
        • ็ง้“พๆญๅปบ
        • ไธป็ฝ‘
        • ๆต‹่ฏ•็ฝ‘
      • ๅ‚ไธŽๅŒบๅ—้ชŒ่ฏ
      • ๅ‚ๆ•ฐ่กจ
    • ๐Ÿ’Žใ€ŒDX V3ๅŽปไธญๅฟƒๅŒ–่ดจๆŠผใ€
      • ่ดจๆŠผๆŠ•็ฅจ
        • 1๏ผ‰่ฟžๆŽฅ้’ฑๅŒ…
        • 2๏ผ‰่ฟ›่กŒๆŠ•็ฅจ
          • ๅฏ่ƒฝๅ‡บ็Žฐ็š„้—ฎ้ข˜
        • 3๏ผ‰้ข†ๅ–ๅฅ–ๅŠฑ
        • 4๏ผ‰ๅ–ๆถˆๆŠ•็ฅจ
      • ๆˆไธบ่Š‚็‚น
        • 1๏ผ‰้ƒจ็ฝฒ่Š‚็‚น
        • 2๏ผ‰็”ณ่ฏท่Š‚็‚น
        • 3๏ผ‰ๅŒๆ„่Š‚็‚น
        • 4๏ผ‰ๆˆไธบ่Š‚็‚น
        • 5๏ผ‰ๅ–ๆถˆ่Š‚็‚น
        • 6๏ผ‰ๆขๅค่Š‚็‚น
      • ๆต‹่ฏ•็Žฏๅขƒ
    • ๐Ÿ’Žใ€ŒDX V3ๆ‰˜็ฎก็คพๅŒบใ€
      • ๆ‰˜็ฎก็คพๅŒบFAQ
      • ็Ÿฟๆœบ่Š‚็‚น
        • 1๏ผ‰่ฟ›่กŒๆŠ•็ฅจ
        • 2๏ผ‰้ข†ๅ–ๅฅ–ๅŠฑ
        • 3๏ผ‰ๅ–ๆถˆๆŠ•็ฅจ
      • ่ถ…็บง่Š‚็‚น
        • 1๏ผ‰ๆˆไธบ่ถ…็บง่Š‚็‚น
        • 2๏ผ‰ไฟฎๆ”นๅฅ–ๅŠฑๆฏ”ไพ‹ๅ’Œ่ดจๆŠผๆ•ฐ
        • 3๏ผ‰ๆŸฅ็œ‹่Š‚็‚นๆ‰˜็ฎก่ดน็”จ
        • 4๏ผ‰ๆŸฅ็œ‹่Š‚็‚นๆ”ถ็›Š
        • 5๏ผ‰ๆขๅค/ๅ–ๆถˆ่Š‚็‚น
    • ๐Ÿ’ก้ช†้ฉผๅฐ่ฏพๅ ‚
      • ๐Ÿช™USDTๆ˜ฏไป€ไนˆ๏ผŸ
      • ๐Ÿช™ไป€ไนˆๆ˜ฏๅธๅธไบคๆ˜“๏ผŸ
      • ๐Ÿช™ๅฆ‚ไฝ•ๆ”ฏไป˜่Š‚็‚นๆ‰˜็ฎก่ดน็”จ๏ผŸ
      • ๐Ÿ’ฌๅฆ‚ไฝ•ๅŠ ๅ…ฅDxChainๅ…จ็ƒ็คพๅŒบ
      • ๐ŸŒ‰ใ€่ทจ้“พๆกฅใ€‘่ฟ›่กŒไบ†่ทจ้“พไบคๆ˜“ไฝ†ไธๅˆฐ่ดฆ
      • ๐Ÿ“ฑDxChain3.0ๆต‹่ฏ•ๆ•™็จ‹
      • ๐ŸงฌๅŒบๅ—้“พ็š„ๅ…ฑ่ฏ†ๆœบๅˆถ
      • ๐Ÿ”็ง้’ฅ/ๅŠฉ่ฎฐ่ฏๆ˜ฏไป€ไนˆ
      • ๐ŸŒ‰ไป€ไนˆๆ˜ฏๅŒบๅ—้“พ็š„่ทจ้“พๆŠ€ๆœฏ
    • ๐Ÿชง็คพๅŒบๅธƒๅ‘Š
      • ่Š‚็‚นๆ‰˜็ฎกๆ”ถ่ดน็ป†ๅˆ™
      • DxChain V3่Š‚็‚นๅ…ฌๅ‘Š
      • ใ€Œๆ็Žฐ็™ฝๅๅ•ใ€ๅŠŸ่ƒฝไธŠ็บฟๅ…ฌๅ‘Š
      • DXๅ…ณไบŽ็ƒญ้’ฑๅŒ…ไฝฟ็”จๅฎ‰ๅ…จ็š„ๅ…ฌๅ‘Š
      • DXๅ…ณไบŽCoinbase้’ฑๅŒ…ๆ”ฏๆŒDX-ERC20็š„ๅ…ฌๅ‘Š
Powered by GitBook
On this page

Was this helpful?

  1. The Basics
  2. DxChain V3 LitePaper
  3. 4. DxChain Design Principles & Architecture

4.7 MPT + LevelDB

Previous4.6 P2P Decentralized Network LayerNext4.8 Ellipse Curve Digital Signature Algorithm

Last updated 3 years ago

Was this helpful?

DxChain uses the Merkle Patricia Trie (MPT) as the data structure. MPT is an encrypted and authenticated data structure that combines the advantages of Merkle tree and Prefix Tree, can not only organize and manage important data such as user account status, transaction information, and block information, but also achieve high-performance storage and imtamability of data.

MTP Tree is a data structure made up of multiple key-value pairs. The value usually contains information of a child node, and the key contains path information from the root node to the child node that the value represents. The key is generated based on the data of the node, which is then encoded by recursive length prefix encoding algorithm (RLP) and SHA3 Hash Function. The value is generated based on the RLP encoded node's data. All data from the MPT tree are stored in the LevelDB. By using the SHA3 Hash value of the node (key), RLP encoded node data can be acquired from the LevelDB. Then, by using the RLP decoding mechanism, the actual node data can be revealed.

According to the advantages of the Merkle Tree, the MPT allows segmented transmission of block data that avoids the low efficiency caused by fixed sequence transmission and allows nodes to synchronize block data from different P2P nodes that ensure the accuracy of synchronized data from other sources. Since the MPT is a bottom-up diffusion structure, if the node data has been maliciously tampered, all the node data in the MPT tree will be changed. When the DxChain block verification mechanism cannot verify the block data, transactions will not be recorded to prevent the generation of malicious blocks.

๐Ÿ“
๐Ÿ“–
Figure 9: MPT