<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: XDC Protocol Team</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by XDC Protocol Team (@protocol_team).</description>
    <link>https://www.xdc.dev/protocol_team</link>
    <image>
      <url>https://www.xdc.dev/images/y1DQNAdmbaddD6An4CeXJlm9MfYDGApG2thMX9avs3s/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8z/NzIvNjczZjA0YTgt/NWUwMy00Y2QwLThl/NmItYjZmYWQ0Yjg3/YTMyLnBuZw</url>
      <title>Developers Forum for XinFin XDC Network: XDC Protocol Team</title>
      <link>https://www.xdc.dev/protocol_team</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/protocol_team"/>
    <language>en</language>
    <item>
      <title>[Proposal] Request for Proposal to Audit XDC2.0</title>
      <dc:creator>XDC Protocol Team</dc:creator>
      <pubDate>Sun, 10 Sep 2023 09:09:03 +0000</pubDate>
      <link>https://www.xdc.dev/protocol_team/request-for-proposal-to-audit-xdc20-16mn</link>
      <guid>https://www.xdc.dev/protocol_team/request-for-proposal-to-audit-xdc20-16mn</guid>
      <description>&lt;h1&gt;
  
  
  TL;DR
&lt;/h1&gt;

&lt;p&gt;This post calls for proposals to audit the forthcoming XDC2.0 consensus upgrade. Deadline: 30/Sep/2023, anywhere in the earth.&lt;/p&gt;

&lt;h1&gt;
  
  
  Background
&lt;/h1&gt;

&lt;p&gt;XDC2.0 is a significant backward-incompatible upgrade of the XDC network. It will create a hard fork that requires all the network participants to comply. This upgrade will change the consensus engine of the XDC network from XDPoS1.0, a delegated proof-stake (DPoS) plus longest-chain mechanism, to XDPoS2.0, a DPoS mechanism with the optimal Byzantine-fault-tolerance (BFT) based on the chained-Hotstuff algorithm.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://xinfin.org/docs/whitepaper-tech.pdf"&gt;XDPoS1.0 white paper&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arxiv.org/pdf/2108.01420.pdf"&gt;XDPoS2.0 white paper&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The upgrade is led by Professor Pramod Viswanath from Princeton University and his protocol engineering team. This upgrade will enhance the security level of XDC network against malicious master nodes without compromising the network’s high performance (e.g., high transaction throughput) and applications (e.g., all the EVM-compatible smart contract-based applications). It will also broaden the adoption of the XDC network due to the new features it brings in, such as forensics and enterprise private subnet.&lt;/p&gt;

&lt;p&gt;The upgrade has been deployed on the XDC devnet since June 2023 and has worked properly without any issues for 2 months – until the protocol team shut it down and redeployed it to incorporate recent upgrades from the community.&lt;/p&gt;

&lt;p&gt;Before applying XDC2.0 to the XDC mainnet, at least two requirements should be met:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The upgrade is deployed to the XDC Apothem testnet and works without issues for at least three months.&lt;/li&gt;
&lt;li&gt;The upgrade passes the audit from at least one highly professional and reputable audit team.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The results of the deployment and audit will be published for the community to make the final decision.&lt;/p&gt;

&lt;h1&gt;
  
  
  Scope of the Audit
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Object&lt;/strong&gt;: all the code developed between V1.1.0 and V1.4.8 under the &lt;a href="https://github.com/XinFinOrg/XDPoSChain"&gt;XDPoSChain repo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Goal&lt;/strong&gt;: to provide, after neccesary iterations of code modifications, an assessment on whether XDC2.0 is suitable to be deployed to the XDC mainnet or not. Here, by “suitable”, we mean:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The implementation of the algorithm meets the desired BFT security (including safety and liveness) properties.&lt;/li&gt;
&lt;li&gt;The code is high-quality and robust, with all edge cases covered, so it will not cause network failures or enable security-threatening attacks.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Supports from the protocol team&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Provide all the related codes and documentation&lt;/li&gt;
&lt;li&gt;Guide deployment and testing&lt;/li&gt;
&lt;li&gt;Answer technical questions and participate in technical discussions&lt;/li&gt;
&lt;li&gt;Evaluate code revision suggestions and implement the changes&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Requirements
&lt;/h1&gt;

&lt;p&gt;The successful audit team should:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;be highly reputable in the industry&lt;/li&gt;
&lt;li&gt;have deep expertise in auditing consensus protocols with a provable track record&lt;/li&gt;
&lt;li&gt;submit a comprehensive proposal with:

&lt;ul&gt;
&lt;li&gt;clearly defined scope of work&lt;/li&gt;
&lt;li&gt;clearly explained methodology&lt;/li&gt;
&lt;li&gt;a good estimate of the workforce the team will bring in&lt;/li&gt;
&lt;li&gt;a good estimate of the timeline, or a convincing justification if an estimate cannot be given&lt;/li&gt;
&lt;li&gt;a comprehensive fee scheme&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  How to Submit
&lt;/h1&gt;

&lt;p&gt;Please submit your proposal by either replying to this post with your proposal in text, or, if your proposal is a file, replying to this post with a link to your file.&lt;br&gt;
Deadline: 31/Sep/2023, anywhere in the earth.&lt;/p&gt;

</description>
      <category>consensus</category>
      <category>audit</category>
      <category>upgrade</category>
      <category>xdc</category>
    </item>
    <item>
      <title>XDC2.0 Voting Latency Analysis</title>
      <dc:creator>XDC Protocol Team</dc:creator>
      <pubDate>Wed, 26 Apr 2023 14:45:09 +0000</pubDate>
      <link>https://www.xdc.dev/protocol_team/xdc20-voting-latency-analysis-336p</link>
      <guid>https://www.xdc.dev/protocol_team/xdc20-voting-latency-analysis-336p</guid>
      <description>&lt;h1&gt;
  
  
  Context
&lt;/h1&gt;

&lt;p&gt;XDC has a target block time of 2 seconds. This gives the network 2 seconds of time to propose, verify, vote, and execute each block. If the total time taken for a block is greater than 2 seconds, then the block time of this block will be higher than 2 seconds.&lt;/p&gt;

&lt;p&gt;Block proposal, verification, and execution are done locally by each master node and, thus, are very fast. The main factor is thus the voting latency, i.e., the time it takes a block to receive enough votes, which is determined by the network latency.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Impact of Voting Latency
&lt;/h1&gt;

&lt;p&gt;In XDPoS 1.0, voting latency is not an issue because each block only needs to receive one vote. However, to achieve the maximum BFT (Byzantine fault tolerance), with the upcoming XDC2.0 upgrade, each block needs to receive 73 votes (2/3 of the 108 master nodes). This raises the following question: is the XDC network fast enough to cope with such an increase in votes?&lt;/p&gt;

&lt;h1&gt;
  
  
  Experiment Results
&lt;/h1&gt;

&lt;p&gt;To answer this question, we deployed a 120-node XDC2.0 devnet globally using AWS across 5 very diverse regions (even more diverse than the current XDC mainnet), including Ohio, Ireland, Tokyo, Sydney, and San Paulo. We then measured and analyzed the voting latency for all the blocks.&lt;/p&gt;

&lt;p&gt;The result is affirming. From 19/April to 24/April, we observed a medium (50th percentile) voting latency of only 0.52 seconds, and a 95th percentile of 1.3 seconds (meaning that the voting latency of 95% of the blocks is less than 1.3 seconds). Both are far smaller than the 2-second target.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/-A-Ybt6sIhUjNizUiSyc2H_6ixT-AAbeIki8O8wB6uk/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3JxMG11eTNhcHVx/ZzVjNXZqZ3Y5LnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/-A-Ybt6sIhUjNizUiSyc2H_6ixT-AAbeIki8O8wB6uk/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3JxMG11eTNhcHVx/ZzVjNXZqZ3Y5LnBu/Zw" alt="Image description" width="602" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also observe the devnet live here: &lt;a href="https://devnet.apothem.network/#stats"&gt;Devnet Explorer&lt;/a&gt;&lt;br&gt;
You will see that every two seconds, a new block is created. You will also see the geological distribution of the nodes across the 5 regions (as of 27/April/2023). We may change the set up in the future.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Thus, we conclude that, with high confidence, XDC network is fast enough to support the upcoming XDC2.0 upgrade from the voting latency and block time perspective.&lt;/p&gt;

&lt;p&gt;In the future, we will investigate the P2P protocol optimization for the consensus engine. We welcome collaborations and contributions from the community.&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>protocol</category>
      <category>security</category>
    </item>
  </channel>
</rss>
