completed

Multiverse - dApp Rollback Handler

$100,000.00 Received
$100,000.00 Requested
Ideascale logo View on ideascale
Community Review Results (1 reviewers)
Addresses Challenge
Feasibility
Auditability
Problem:

<p>Rollbacks create unnecessary stress on the user's side, degrade UX and make it hard for developers to handle all the edge cases for dApps</p>

Yes Votes:
₳ 330,562,681
No Votes:
₳ 18,466,371
Votes Cast:
754

This proposal was approved and funded by the Cardano Community via Project F6: Developer ecosystem Catalyst funding round.

  • Video cover image

Detailed Plan

A blockchain in itself is the persistent storage of the state of the ledger. Each block of the blockchain contains the logs of the operations applied to the ledger at a given point in time. If you attempt to take a look at the blockchain in its entirety, you would only see a consistent immutable line that expands infinitely forward. This is the case because the blockchain is designed to be an indefinitely growing succession of blocks. As I write this document there are about 700 thousands blocks in Bitcoin's blockchain and about 6 millions blocks in Cardano's.

However, as you start zooming toward the head of the blockchain you will begin seeing the blockchain grow. This is where history is being written, where the exciting part is happening. Most of us as users of blockchains will be most interested in what is happening here, wherein new changes to the distributed ledger are being applied. Depending on the way the active participants are cooperating to maintain the distributed ledger (depending on the consensus algorithm) the head of the blockchain may look more or less broad, more or less messy. Branches may appear, sometimes short lived ones, and sometimes seemingly at random. Every blockchain protocol aims to have them be short lived, but sometimes they may persist for longer than preferred or expected. We have already seen explicit forks happen on other blockchains which have taken on a life of their own and built out their own ecosystem. These are competitive snapshots of the ledger and hopefully the blockchain protocol will help resolve these fairly quickly.

From a user perspective, these competitive variants of the timeline are not necessarily relevant. Often these snapshots will intersect in the changes they are applying to the ledger, with some transactions potentially even appearing in both variations (though this is not always the case). With these competing variants continuing forward, eventually the blockchain may operate what is referred to as a rollback. In essence a rollback is the blockchain simply "changing its mind" (based on predefined rules) about which variant is the preferred one.

The Multiverse is an innovative approach to reading and representing the state of blockchains. It provides nodes a competitive edge by maintaining and eventually participating in the various branches of a chain. This has waterfall effects through the entire stack, wherein various pieces of core ecosystem tooling such as blockchain explorers will be able to benefit significantly as well. Lastly, this also translates to a better end user experience, which we will cover in addressing how user wallets can maintain state via the Multiverse data structure directly.

A deep dive into the design of the Multiverse can be found here: https://docs.google.com/document/d/1sdtKb-wjNWV2sdJzNRxcfQpWcrV1MbMeBS819Udv9Dk/edit

社区顾问评论 (1)

Comments

Monthly Reports

March Report. We successfully used our prototype in a real life production environment and it handled rollback perfectly. It is being used in milkomeda’s bridges.

Disbursed to Date
$100,000
Status
Launched
Completion Target
4/30/2022
Comments 0

Login or Register to leave a comment!

We successfully used our prototype in a real life produciton environment and it handled rollback perfectly. It is being used in milkomeda’s bridges

Disbursed to Date
$100,000
Status
Still in progress
Completion Target
5/31/2022
Comments 0

Login or Register to leave a comment!

Project Close report will be delivered by the end of the month. Multiverse medium article: https://medium.com/@milkomedafoundation/cardano-multiverse-1146266c30c Github repo: https://github.com/dcSpark/multiverse-rs

Disbursed to Date
$100,000
Status
Complete
Completion Target
5/31/2022
Comments 0

Login or Register to leave a comment!

close

Playlist

  • EP2: epoch_length

    Authored by: Darlington Kofa

    3分钟24秒
    Darlington Kofa
  • EP1: 'd' parameter

    Authored by: Darlington Kofa

    4分钟3秒
    Darlington Kofa
  • EP3: key_deposit

    Authored by: Darlington Kofa

    3分钟48秒
    Darlington Kofa
  • EP4: epoch_no

    Authored by: Darlington Kofa

    2分钟16秒
    Darlington Kofa
  • EP5: max_block_size

    Authored by: Darlington Kofa

    3分钟14秒
    Darlington Kofa
  • EP6: pool_deposit

    Authored by: Darlington Kofa

    3分钟19秒
    Darlington Kofa
  • EP7: max_tx_size

    Authored by: Darlington Kofa

    4分钟59秒
    Darlington Kofa
0:00
/
~0:00