We propose Merkle Mountain Belts (MMBs) as a novel data structure for upgrading Merkle Mountain Ranges (MMRs), such as used in BEEFY. The final deliverables of this proposal are
Once MMBs are deployed on Polkadot, this will have immediate cost savings - from our estimates 1.0-1.4 million dollars per year - for users of bridges like Snowbridge and Hyperbridge, as well as other potential applications within the Polkadot/JAM ecosystem.
December 2024 - December 2025 for completion of all milestones.
506'110 USDC until completion of all milestones,
additional 29'428.62 DOT once the savings accrued by the Polkadot/JAM ecosystem exceed the aggregate cost of the proposal, and
a 20-30%* reward share of the saving incurred over 10 years from the moment the economic impact of our proposal is net-positive for the Polkadot/JAM ecosystem (note: this variable funding is not requested within this proposal, but will be requested in followup referenda once the saving threshold is reached, substantiated by calculation of the actual saving incurred via on-chain data).
*: Specifically, as decided by community vote:
Of annual savings below $1.4M, we receive 30% as success reward. Of annual savings above $1.4m, we receive 20% as success reward.
See the funding section in the full proposal for details and rationale. All requested funds use the Swiss National Bank USD/CHF foreign exchange rate and the 7-day EMA of USD/DOT via Subscan at the date of submission (25. November 2024).
Preimage content can be verified against @MerkleMountainBelts/MMB-Proposal-Preimage, most conveniently using dev.papi.how/extrinsics.
Merkle Mountain Belts (MMBs) are a novel type of Merkle structure, from the same family that contains Merkle Mountain Ranges (MMRs) and hash chains. Like them, MMBs can be used to commit to a large database, and provide a compact proof of existence of a data entry to a verifier. This allows, e.g., users to quickly authenticate a transaction.
To oversimplify, we can say that if most user queries are for data from the latest handful of blocks, then the most efficient structure would be a hash chain, while if queries tend to be for very old data, the most efficient structure would be an MMR. The MMB structure is "the best of both worlds" with a performance that is always comparable to the better of the two previous structures --for any possible query recency-- and it considerably outperforms them both when users query data that was generated between the last minute and the last day.
In lots of real-life applications, we naturally observe a recency bias, where users' queries are concentrated over recent events, and MMBs are specifically designed to reduce the operational and data access costs for them. Examples of use cases in Polkadot include XCMP messages, and the BEEFY commitment to all finalized blocks, which is used in cross-chain bridges. Our cost savings analysis focuses only on the latter use case.
More precisely, while MMR attempts to maintain a balanced tree, MMB maintains a slightly unbalanced tree, so that the leaves of recently generated data are closer to the root. In a cross-chain bridge, for example, a user's fee for a message (and its Merkle proof) is proportional to the message's depth in the tree, so reducing this depth means less fees.
More on the MMB structure here.
Our proposal consists of 6 delivery milestones that we anticipate to deliver until December 2025. We will post regular updates of our progress on https://ogtracker.io/.
We show in the image our projected delivery dates. We establish a conservative staggered payment schedule, wherein the payment for each milestone is executed a few weeks after its expected delivery. Naturally, this payment schedule can be modified in the future, in case we do not deliver a milestone before its scheduled payment. Notice in particular that 30% of the proposal's cost is only to be paid once the library's aggregate savings for the ecosystem have exceeded our proposal's cost. We expect this to occure before December 2027; we have scheduled the corresponding payment for a conservative July 2028.
The members of our team are highly qualified and have worked in Polkadot since pre-mainnet days. Our principal researcher Alfonso Cevallos has a Ph.D. in mathematics and is a co-author of many Polkadot papers, including the 2020 overview paper. Our principal developer Robert Hambrock has been one of the earliest stewards of the Polkadot-Ethereum bridge, going back to its initial W3F grant, design of protocols, and implementation.
More details on ourselves and Cryp GmbH are available here.
Since our original discussion post in July 2024, we have made some material changes to it:
We deeply thank everyone who provided their feedback and contributions that shaped these adjustments to the proposal, foremost the following individuals and teams:
For more details, we strongly encourage reading the full proposal.
We also recommend studying our Sub0 2022 MMB overview talk, and our brief overview on AAG: Kusamarian AAG #147.
Thank you for reading and happy voting!
Merkle Mountain Belts (MMBs) is a new data structure that improves on Merkle Mountain Ranges (MMRs), which are used in BEEFY. MMBs can save costs for users of bridges like Snowbridge and Hyperbridge, and have other uses in the Polkadot/JAM ecosystem. The project will be completed by December 2025 and will cost 506,110 USDC. The team behind MMBs has experience in Polkadot and includes a Ph.D. in mathematics and early developers of the Polkadot-Ethereum bridge. MMBs work well for recent data queries and can reduce fees in cross-chain bridges. The project has made changes based on feedback, including deferring part of the cost and reducing the success reward. For more information, you can read the full proposal and watch talks about MMBs.
We propose Merkle Mountain Belts (MMBs) as a novel data structure for upgrading Merkle Mountain Ranges (MMRs), such as used in BEEFY. The final deliverables of this proposal are
Once MMBs are deployed on Polkadot, this will have immediate cost savings - from our estimates 1.0-1.4 million dollars per year - for users of bridges like Snowbridge and Hyperbridge, as well as other potential applications within the Polkadot/JAM ecosystem.
December 2024 - December 2025 for completion of all milestones.
506'110 USDC until completion of all milestones,
additional 29'428.62 DOT once the savings accrued by the Polkadot/JAM ecosystem exceed the aggregate cost of the proposal, and
a 20-30%* reward share of the saving incurred over 10 years from the moment the economic impact of our proposal is net-positive for the Polkadot/JAM ecosystem (note: this variable funding is not requested within this proposal, but will be requested in followup referenda once the saving threshold is reached, substantiated by calculation of the actual saving incurred via on-chain data).
*: Specifically, as decided by community vote:
Of annual savings below $1.4M, we receive 30% as success reward. Of annual savings above $1.4m, we receive 20% as success reward.
See the funding section in the full proposal for details and rationale. All requested funds use the Swiss National Bank USD/CHF foreign exchange rate and the 7-day EMA of USD/DOT via Subscan at the date of submission (25. November 2024).
Preimage content can be verified against @MerkleMountainBelts/MMB-Proposal-Preimage, most conveniently using dev.papi.how/extrinsics.
Merkle Mountain Belts (MMBs) are a novel type of Merkle structure, from the same family that contains Merkle Mountain Ranges (MMRs) and hash chains. Like them, MMBs can be used to commit to a large database, and provide a compact proof of existence of a data entry to a verifier. This allows, e.g., users to quickly authenticate a transaction.
To oversimplify, we can say that if most user queries are for data from the latest handful of blocks, then the most efficient structure would be a hash chain, while if queries tend to be for very old data, the most efficient structure would be an MMR. The MMB structure is "the best of both worlds" with a performance that is always comparable to the better of the two previous structures --for any possible query recency-- and it considerably outperforms them both when users query data that was generated between the last minute and the last day.
In lots of real-life applications, we naturally observe a recency bias, where users' queries are concentrated over recent events, and MMBs are specifically designed to reduce the operational and data access costs for them. Examples of use cases in Polkadot include XCMP messages, and the BEEFY commitment to all finalized blocks, which is used in cross-chain bridges. Our cost savings analysis focuses only on the latter use case.
More precisely, while MMR attempts to maintain a balanced tree, MMB maintains a slightly unbalanced tree, so that the leaves of recently generated data are closer to the root. In a cross-chain bridge, for example, a user's fee for a message (and its Merkle proof) is proportional to the message's depth in the tree, so reducing this depth means less fees.
More on the MMB structure here.
Our proposal consists of 6 delivery milestones that we anticipate to deliver until December 2025. We will post regular updates of our progress on https://ogtracker.io/.
We show in the image our projected delivery dates. We establish a conservative staggered payment schedule, wherein the payment for each milestone is executed a few weeks after its expected delivery. Naturally, this payment schedule can be modified in the future, in case we do not deliver a milestone before its scheduled payment. Notice in particular that 30% of the proposal's cost is only to be paid once the library's aggregate savings for the ecosystem have exceeded our proposal's cost. We expect this to occure before December 2027; we have scheduled the corresponding payment for a conservative July 2028.
The members of our team are highly qualified and have worked in Polkadot since pre-mainnet days. Our principal researcher Alfonso Cevallos has a Ph.D. in mathematics and is a co-author of many Polkadot papers, including the 2020 overview paper. Our principal developer Robert Hambrock has been one of the earliest stewards of the Polkadot-Ethereum bridge, going back to its initial W3F grant, design of protocols, and implementation.
More details on ourselves and Cryp GmbH are available here.
Since our original discussion post in July 2024, we have made some material changes to it:
We deeply thank everyone who provided their feedback and contributions that shaped these adjustments to the proposal, foremost the following individuals and teams:
For more details, we strongly encourage reading the full proposal.
We also recommend studying our Sub0 2022 MMB overview talk, and our brief overview on AAG: Kusamarian AAG #147.
Thank you for reading and happy voting!
Threshold
I realize this isn’t directly related to the referendum itself, but you lost me at 'a 30% reward share of the savings incurred over 10 years once the economic impact of our proposal turns net-positive for the Polkadot/JAM ecosystem.'
Requesting over half a million dollars to build something, in addition to 41,504 DOT (which should arguably be requested in stablecoins, not $DOT which is highly volatile atm), and then asking for 30% of the reward share for 10 years feels overly greedy.
While funding innovation is important, proposals should balance ambition with fairness to the ecosystem and its stakeholders. A request of this scale, paired with such long-term financial commitments, risks setting a precedent that could deter future collaboration and responsible use of treasury funds.
Dear @🚂 Zugian Duck 🦆,
Thank you for your proposal. Our vote on this proposal is NAY.
The Big Spender track requires a 60% quorum according to our voting policy. This proposal has received zero aye and five nay votes from ten members. Below is a summary of our members' comments:
The proposal faced widespread opposition, with critics aligning with concerns raised by others, including the lack of sufficient support and validation from the technical community and the Polkadot fellowship. Some acknowledged the proposer’s background but remained sceptical due to the scale of the request and the absence of stronger endorsements.
The full discussion, along with individual members' votes and comments, can be found in our internal voting.
Kind regards,
Permanence DAO
Threshold
hey, thank you for submitting this.
It would be good to have respected researchers in the field to comment on the necessity of the proposal. This would help me better make a decision.