← index

Proposed risk framework for Bitcoin L2s and Sidechains

An archive of delvingbitcoin.org · view original topic →

janusz · #1 ·

Hi everyone,

My name is Janusz and I am working on a project called Bitcoin Layers which assesses various implementations of L2s and sidechains. The new wave of sidechain protocols sparked the development of the project.

I’ve developed a risk framework which analyzes L2s and sidechains against common criteria. The goal is to clearly explain the risks associated with each implementation to users.

I’ve worked on refining this proposal with our research advisor(s) and advisory board. I’m additionally posting here to solicit feedback and see if we have any gaps in our methodology.

Let me know if you have any thoughts!


Proposal for updated Bitcoin Layers risk framework

Bitcoin Layers currently has a risk assessment framework where scaling protocols are analyzed against four key aspects of their protocol. Each aspect is given a risk score, high, medium or low risk, after review. The scaling protocol will then receive a pie chart score, with the colors resembling its overall risk score.

We are currently assessing protocols based on the following criteria:

Our docs outline why we’ve chosen these areas.

Current challenges

The primary challenge we are currently facing with this framework is that not all protocols are designed with the same goals in mind and have varying tradeoffs. For example, a rollup is inherently different from a payment channel protocol.

Proposed solution

Saunter (from Alby) suggested that we create a more diverse framework that assigns weights to the specific risk questions. If a protocol does not meet a specific requirement, they would be deducted points off their total score relative to the weight of that question. I’m proposing a similar model, and believe it will help create a more granular framework for the Bitcoin Layers project.

Instead of weights, we keep the high, medium, low risk categories, but we add further circumstances that could see a protocol move between the risk categories.

We also add further binary questions to the assessment that helps users better understand the risks associated with a certain protocol.

All of this information can be comprised into a risk summary that points out the key tradeoffs related to a specific protocol, and how it might potentially impact the Bitcoin network.

Starting point

We analyze protocols on four categories: Data availability, network operators, settlement assurance (a.k.a finality), and the bridge custody (or two-way peg).

Protocols do not receive an overall score, but a risk summary is added at the beginning of every assessment to highlight risk areas that can be critical.

For example, if an optimium uses an offchain data availability solution that is a single server, then it only takes collusion between a sequencer and the operator of the DA server to steal everyone’s funds. This is extremely high risk and should be noted in the summary.

Let’s review how protocols can potentially be assessed.

Data availability

Network Operators

Settlement assurance

Bridge Custody

Additional security-related questions

Bitcoin security

Customization

This framework can be easier to customize and provide more nuance given the number of scaling solutions that are present in Bitcoin today. For example, related to block production/network operators, we can add even more scoring mechanisms based on how decentralized the network is. E.g. A network with 200 validators is better than a network with 10, and we can customize the assessment to highlight this.

Summary

This risk assessment is an initial starting point to analyze Bitcoin scaling protocols. It is a living document and is subject to change based on community feedback and development efforts around Bitcoin scaling.

Bitcoin does not have a unified scaling roadmap. There are tradeoffs with every protocol being implemented to support Bitcoin scaling. This framework hopes to capture some of the nuance related to the various designs being proposed.

If you have comments on this framework, please consider adding them below and/or joining our community chat to discuss.

Clarifying point(s)

We define permissionless as meaning anyone with sufficient capital and resources can participate in consensus, operating a node, block production, etc.

optimalbrew · #2 ·

On Bridge Custody: What’s the baseline expectation you want to set for your audience? Handling peg-outs from the L2 back to bitcoin is hard. Honest-majority multi-sig federations are frowned upon, and have been the target of exploits. But they are still pervasive. This is why Robin Linus’ BitVM “1-of-n honest” approach is so appealing as a way to build trust-minimized bridges. The “low-risk” alternatives for 2-way pegs are perhaps not practical yet on bitcoin (if they exist, please include references).

Settlement assurance: This is the only category where you provide examples (Citrea, LN, BitVM2, SnarkNado). Would be great to add examples for other categories. If we can’t find any examples, then perhaps the characterization is not as clear/practical as we think.

Bitcoin security. Unilateral exit is of course a fantastic thing to have. So is unilateral entry. Not sure if that is addressed here.

Thanks!