PatCrypt

Dumping My Crypto Mind

Menu
  • Home
  • XX Network
    • Introduction
    • FAQs
    • News
    • Media
    • Links
    • Giveaways
  • PatCrypt
  • Contact
  • Disclaimer
Menu

Phoenixx – The Future of XX Consensus?


Note: This not the same Phoenixx as the Web3 platform previously known as Echoexx.

A beady-eyed community member in the Telegram recently stumbled upon the publication of this whitepaper detailing the design of a next generation, quantum secure consensus protocol.

All the authors of the paper (David Chaum, the members of development team BitFasioned and Will Carter) are XX Network original team members and the mild concern was that they were placing efforts into some kind of spin-off! It was soon apparent however that this paper in fact describes a potential candidate to supersede the current consensus model within the XX Network. The name Phoenixx has been used internally for several years, although when originally publishing the work, it was dubbed ‘xxBFT’, as per the whitepaper from 2021. This is a continuous work that already has had prototypes developed to prove some elements. Eventually, it could completely replace the system XX uses for consensus.

For the layman, it doesn’t mean from the outside much would change. However, it is good to know that should this protocol come into fruition and is voted in as a (fairly major) change in the blockchain codebase, that the XX Network would be – yet again – way ahead of the curve in delivering hugely scalable and future-proofed technology designed for mass market real-world crypto use. This brings the blockchain side of things up to speed with cMixx which already achieves linear scalability.

Members of BitFashioned went through the potential implementation in detail when asked.

Bernie Cardoso explained:

The name Phoenixx has been used internally since late 2019 when we started working on the prototype of a blockchain using quantum secure WOTS+ signatures for both accounts (transactions) and consensus. The consensus was then named xxBFT, but in this more recent paper we went back to the roots with the Phoenixx name. This prototype was fully done in golang and achieved ~3k TPS with quantum secure transactions for networks ranging from 100 to 1000 nodes.

This prototype was just doing balance transfers between accounts, with no other blockchain functionality. That’s why we decided to pivot and build a custom blockchain on an existing SDK such as Substrate. This gave us the possibility to leverage NPoS to tie in cmix node performance into the economics. It also gave us Governance and other blockchain features that come out of the box with Substrate. On another hand, by going this route, we had to use the standard consensus protocol from Substrate: grandpa+babe. This doesn’t use quantum secure signatures, and neither do transactions, and it also scales quadratically with network size (regardless of the type of signatures used in consensus).

But, we never abandoned the quantum secure track of research. First of all, we used Sleeve since Mainnet launch, to have a quantum secure backup for all accounts. This uses the exact same WOTS+ cryptography that we developed during the phoenixx prototype. This will allow standard Substrate accounts to rollover to quantum secure accounts in the future. We also already have a proof of concept for this future. We partnered with ChainSafe to develop our WOTS+ in rust (the language used by Substrate), and we integrated it into the accounts, so we have demonstrated quantum secure transactions in Substrate.

The path to full quantum security continues from here to using the same WOTS+ signatures in consensus. This will likely impact the performance if grandpa/babe are still used, since these signatures are much more expensive to validate. This is where xxBFT/Phoenixx comes in, as the consensus protocol that scales linearly regardless of the type of cryptography used (other recent protocols like Diem/AptosBFT achieve linear growth by using BLS signatures, which are not quantum secure).

When it comes to the actual integration of a new consensus model, Bernie was kind enough to explain how modern blockchain systems are designed to be able to manipulate different components and keep the mechanics functioning. Therefore, this new consensus could be brought in, in a modular fashion to the existing framework, albeit with a good amount of work. He continued:

Substrate, like most modern blockchain architectures, is quite modular. For the purposes of this answer, we’ll focus on 3 of these logical modules: storage, runtime and consensus.

The storage is akin to a database where all the account + other information is stored. This has balances for all accounts, staking info, democracy referenda, the list of council members, etc etc etc.

The runtime defines the rules for how storage gets modified. For example, the runtime logic for a transfer does: check (read from storage) if sender has enough balance, if it does then subtract the transfer amount from that balance (write to storage) and add to the balance of the receiver (read+write). Typically, storage modifications are only initiated by transactions, which are cryptographically signed by an account (user). Substrate expands on this by allowing storage modifications to be triggered by other events in the runtime logic. This is for example how a new era starts daily without needing any user input. These are called intrinsics in Substrate (because they originate from within the runtime), and that’s why transactions are referred to as extrinsics (because they originate from outside the runtime). One of the best selling points of Substrate is that the actual runtime code that defines all this logic is compiled into WASM and stored directly in storage together with all other blockchain data. This means that the runtime code can be changed on demand via an extrinsic, controlled by Democracy, which allows coin holders to directly vote on new features to be added to the blockchain.

Last but not least, the consensus protocol enables the blockchain to essentially be a distributed database. Users send transactions that will modify the database. If there’s only one single server, these can be executed quite easily. But in a distributed setting, nodes have to agree on the order of transactions, so that the resulting storage state is consistent across the network. In leader based consensus protocols like grandpa/babe or phoenixx, at least one node is chosen as the block producer, that takes transactions, computes the new storage values based on logic defined by the runtime, and includes all this information (not the full storage, just a merkle proof of it) in a block that is sent to the whole network. Then, a new leader will do the same, applying new transactions to the storage state of the previous block, and getting a new storage state and new block. This is why it’s called a blockchain. Finally, the last part of consensus is that the whole network votes on which chain of blocks to commit. When talking about BFT consensus, this refers to a proven limit of 1/3 of the network experiencing Byzantine behaviour in the partial synchrony model. This means that for a network vote to be final it requires 2/3+1 of participants to vote the same way. In Substrate, the consensus protocol is explicitly spilt into 2: BABE is the block production algorithm and GRANDPA is the finality algorithm. This means that in certain conditions it’s possible that a long chain of blocks keeps being produced, but these blocks are not being finalized.

Finally, what all of this means is that it’s technically possible in Substrate to just “swap out” the consensus protocol for a new one. Obviously this is not an easy feat, but it’s possible to achieve. The main friction point is that phoenixx is both a block production and finality algorithm, it’s not separable like BABE/GRANDPA. The second point that could prove more difficult is that BABE is intrinsically synchronous. Blocks are produced in fixed time slots (configured to 6s). Phoenixx is optimistically responsive, which means that new blocks can be produced as soon as the previous block is accepted. This means that under high network load (many transactions), phoenixx would likely be able to achieve higher throughput.

As with all the innovations the XX Network builds, these ideas and the practical implementation are out in the open for any project to consider and use. There is power in working together and trying to break outside the crypto bubble, and XX continues to be at the forefront of that.


News

  • XX Foundation Releases Roadmap For 2025April 16, 2025
  • XX Network Broadcasts Quantum Threat Discussion with Mark HewittMarch 21, 2025
  • John Deaton Talks to Aaron & Darren About Politics & CryptoFebruary 19, 2025
  • David Chaum on Celebrity Panel for BitAngel’s Pitch Event, Feb 28thFebruary 19, 2025
  • XX Network, Algorand and Messari Discuss Quantum ComputingJanuary 21, 2025
  • XX Foundation Releases Q1 2025 RoadmapJanuary 17, 2025
  • XX Foundation Announces Sale of 2M WXX Tokens For DEX LiquidityDecember 16, 2024
  • David Chaum Commemorates XX Network’s 3rd Anniversary in VideoNovember 18, 2024
  • Hacktoberfest 2024: 230,000 XX AwardedNovember 11, 2024
  • XX Foundation Releases Q4 2024 RoadmapOctober 15, 2024
  • XX Foundation Releases Q3 RecapSeptember 29, 2024
  • XX Network Delivers Worldcoin Network Anonymizer ApplicationAugust 19, 2024
  • David Speaks on the X Space for the BTC Olympics 2024 LaunchAugust 6, 2024
  • XX Foundation Clarifies Recent Social Engineering IncidentAugust 1, 2024
  • David Chaum Spoke at PlasmaCon in Tokyo on July 31stJuly 31, 2024
  • XX Network African Community Hosted Web3 Summit, July 26thJuly 26, 2024
  • David Chaum at the Global Blockchain Show, Dec 11-12thJuly 17, 2024
  • The XX Network Bridge is Live!July 16, 2024
  • XX Network Q3 Roadmap ReleasedJuly 10, 2024
  • Watch David and Mário’s Keynote, Blockchain Expo World, July 2024July 10, 2024
  • XX Network Runtime Upgrade ‘206’ CompleteJuly 5, 2024
  • Echoexx Is Now Phoenixx – A New Name With Cutting Edge AmbitionsMay 24, 2024
  • Turkish XX Community Starts Series of Educational SessionsMay 18, 2024
  • XX Nodes: Countdown to the End of the Team MultiplierMay 2, 2024
  • WXX/XX Indirect Bridge with Native XX Listings on CEXsApril 24, 2024
  • Crypto Eri Interviews Mário Yaksetig About Privacy and the XX NetworkApril 23, 2024
  • Fearless Wallet Integrates Native XX CoinApril 17, 2024
  • David Speaking at the PWR Summit Token 2049 Event on 20th AprilApril 17, 2024
  • David’s Keynote at ETHDam, 12th April 2024April 11, 2024
  • David and Jim Speak to Burak Kesmeci About the XX NetworkApril 8, 2024
  • XX Foundation Releases Q2 2024 Roadmap + Interview with AaronApril 5, 2024
  • David Chaum at the Global Blockchain Show, 17th AprilApril 5, 2024
  • WXX: All You Need To Know About The Wrapped XX CoinMarch 29, 2024
  • XX Foundation Interim Update for Q1, 2024March 25, 2024
  • XX Integration Announced With The Web3 Talisman WalletMarch 20, 2024
  • xxDK Multi-Platform Example Apps & Demo From Rick CarbackMarch 19, 2024
  • XX Hackathon in Delhi, India on March 16-17thMarch 17, 2024
  • Video: David Chaum at Blockchain Days Conference, March 10thMarch 10, 2024
  • XX Network & Carbon Browser Integration AnnouncedFebruary 23, 2024
  • Generation Infinity: XX Network UpdatesFebruary 22, 2024
  • Echoexx Releases First Public Alpha – Try it Today!February 21, 2024
  • Worldcoin & XX Network Collab: Interview with Mário YaksetigFebruary 19, 2024
  • XX Network Partners with Worldcoin to Further Enhance User PrivacyFebruary 9, 2024
  • Stunning XX Artwork from 3D Graphics Guru StrobFXFebruary 7, 2024
  • David Chaum Speaking at BlockShow x BlockDown, May 8-9thFebruary 5, 2024
  • Initial Alpha of echoexx Released to Mailing List InviteesJanuary 30, 2024
  • First New XX Grant Awarded for Development of EVM BridgeJanuary 26, 2024
  • XX Foundation Releases Q1 2024 RoadmapJanuary 17, 2024
  • XX Network Foundation Announces Rebooted Grants ProgrammeJanuary 8, 2024
  • A Glimpse of Current XX Network ResearchDecember 15, 2023
  • BIS Publish Project Tourbillon Trial ResultsNovember 29, 2023
  • XX Community AMAs Part 1 – Full Meeting Audio and TranscriptNovember 26, 2023
  • XX Network Community AMAs, Part 1 AnnouncedNovember 24, 2023
  • David Chaum Unveils ‘Better than Money’, Utilising XX’s cMixx+November 19, 2023
  • ‘cMixx+’ – Enhanced Privacy & Speed in Various Use CasesNovember 17, 2023
  • Demo: Private Polkadot Transaction via ProxxyNovember 14, 2023
  • Echoexx – Web3 Identities, Comms, Payments and MoreNovember 7, 2023
  • Tourbillon at BIS Conference, November 8thOctober 18, 2023
  • David at the Singapore Fintech Festival, November 15-17th, 2023October 13, 2023
  • Next Level Proxxy: cMixx DEX Proposed for an XRPL GrantOctober 3, 2023
  • Phoenixx – The Future of XX Consensus?October 1, 2023
  • Official Telegram Community TakeoverSeptember 29, 2023
  • Plans for Postage v1.0 AnnouncedSeptember 27, 2023
  • An Important XX Network Update – Audio & TranscriptAugust 31, 2023
  • XX Network – State of the Network UpdateAugust 24, 2023

Share This Page:
  • XX Foundation Releases Roadmap For 2025April 16, 2025
  • XX Network Broadcasts Quantum Threat Discussion with Mark HewittMarch 21, 2025
  • John Deaton Talks to Aaron & Darren About Politics & CryptoFebruary 19, 2025
  • David Chaum on Celebrity Panel for BitAngel’s Pitch Event, Feb 28thFebruary 19, 2025
  • XX Network, Algorand and Messari Discuss Quantum ComputingJanuary 21, 2025
  • XX Foundation Releases Q1 2025 RoadmapJanuary 17, 2025
  • XX Foundation Announces Sale of 2M WXX Tokens For DEX LiquidityDecember 16, 2024
  • Are There Any Bounties Available?December 12, 2024
  • David Chaum Commemorates XX Network’s 3rd Anniversary in VideoNovember 18, 2024
  • Hacktoberfest 2024: 230,000 XX AwardedNovember 11, 2024
  • 150XX Giveaway – Unclaimed!October 21, 2024
  • XX Foundation Releases Q4 2024 RoadmapOctober 15, 2024
  • XX Foundation Releases Q3 RecapSeptember 29, 2024
  • XX Network Delivers Worldcoin Network Anonymizer ApplicationAugust 19, 2024
  • David Speaks on the X Space for the BTC Olympics 2024 LaunchAugust 6, 2024

Loading

©2023 PatCrypt