Million-User DApps on Ethereum: An Introduction to Application-Specific Sidechains

本文探讨了通过特定应用侧链实现以太坊DApp扩展的方法,介绍侧链概念及其如何提供定制化的规则集来优化不同应用需求,并讨论了在社区共识下维护侧链独立性的机制。

The first viral DApp on Ethereum (although its decentralization is questionable as analyzed and described in our previous articles) was enough to bring the network to its knees.

The number of pending transactions reached all time highs and transaction fees also reached absurd amounts, with one user also (mistakenly) paying $11.000 in transaction fees.

Pending Ethereum Transactions since the 5tfh of December (All-time-high >30.000) | Gas prices requiring >40Gwei to confirm

The need for scaling solutions is becoming more urgent every day, as transaction fees and the transaction backlog increase.

Devcon3 highlighted some potential scaling solutions that would be able to solve most, if not all of today’s scaling issues. However, these solutions (other than uRaiden) are in a research stage and are not mature enough for the main network yet. Others have proposed raising block gas limit (a change analogous to increasing block size in Bitcoin), but that has its own disadvantages.

Meawhile, there is a clear demand for scaling solutions that work today, in order to handle the needs of real-world decentralized applications without completely overwhelming the Ethereum network. If something as trivial as CryptoKitties can make Ethereum unusable, how will it handle something on the scale of StarCraft with millions of users?”

“You could run StarCraft on the blockchain. Those kinds of things are possible. High level of security and scalability allows all these various other things to be built on top.  Ethereum is a secure base layer that doesn’t have too many features.” — Vitalik Buterin

This article’s goal will be to describe how scaling on Ethereum can be achieved through application-specific sidechains, which can have a more customizable “rule-set”, while at the same time maintaining the security of the Ethereum mainchain.


Scaling through Sidechains

What is a Sidechain?

The term “sidechains” was first described in the paper “Enabling Blockchain Innovations with Pegged Sidechains”, circa 2014 by Adam Back et al. The paper describes “two-way pegged sidechains”, a mechanism where by proving that you had “locked” some coins that were previously in your posession, you were allowed to move some other coins within a sidechain.

A misconsception here should be clarified.

Sidechains can increase scale but do not imply scalability. Sidechains are no better at providing scalability than increasing block size. What sidechains bring is the ability to experiment. To be able to build networks that run on different — and possibly better-scaling — technology. ¹

They enable innovation.

A sidechain is defined by a custom “rule-set” and can be used to offload computations from another chain. Individual sidechains can follow different sets of rules from the mainchain, which means they can optimize for applications that require extremely high speeds or heavy computation, while still relying on the mainchain for issues requiring the highest levels of security.

source:  https://blockgeeks.com/guides/blockchain-wiki/

Application-Specific Sidechains

The rules that define a sidechain can imply adding privacy features, or even trading security & decentralization for more throughput. There is a lot of room for experimenting here and what trade-offs should produce the optimal performance, based on the needs of the individual application.

Also, in the case of data-driven applications, incentives differ from financial applications. It may be worth it for an attacker to spend hundreds of millions of dollars to 51% attack a financial blockchain and reverse a payment, but it probably doesn’t make sense for them to do so to reverse a tweet on a microblogging platform. Because of this, applications need to be able to choose more flexible threat modeling and optimize for performance.

There is a huge need for unstoppable applications that are censorship-resistant, transparent and provide  high performance.

With that in mind, in a Twitter-style Decentralized Application running on a blockchain, adjustable security can enable higher throughput while submitting “checkpoints” to the main-chain in order to declare the finality of the data so far.

Now that we have described a way to scale DApps, what would happen if an entity gathered too much power, due to a potentially relaxed security model, and was able to control a sidechain?

Achieving independence through hard-forks

In centralized communities such as a subreddit, sometimes a toxic moderator gets into place, starts censoring messages according to his agenda, and eventually tears that community apart.

In multiplayer games such as World of Warcraft, sometimes a massive change is implemented against community consensus, leaving no option for users to protest — they’re forced to either accept it or quit the game. Even Vitalik Buterin was horrified by these events!

“I happily played World of Warcraft during 2007–2010, but one day Blizzard removed the damage component from my beloved warlock’s Siphon Life spell. I cried myself to sleep, and on that day I realized what horrors centralized services can bring. I soon decided to quit.”
Coordinated communities need to be able to pave away from situations they believe are not fair and move on alternatives that they all agree on.

They key to achieving that is sidechain hard forks.

Being as laconic as possible, a fork is a protocol upgrade mechanism. A high-quality comparison between forks can be found on Vitalik’s blog.

Fork variations Venn diagram, taken from  vitalik.ca/general/2017/03/14/forks_and_markets.html
A hard fork is a permanent divergence from the previous version of the blockchain. Nodes running previous versions will no longer be accepted by the newest version. ¹

How do you achieve independence that way?

In the occurence of an event that was against community consensus, the community is able to fork away, taking the state of the sidechain until before the dispute with it.

A proposed change that does not match community consensus can be ignored, and the community can keep on working on the old chain.

There are many questions that would arise in this case such as, in a game for example:

  1. What if the majority of the leading “malicious” devs decide to stay in the old chain?
  2. Will the new chain become stagnant of development, or will the developers compromise and adapt?

We do not have all the answers, but we believe the free market will figure these things out and best practices will emerge as more of these types of self-governing applications are created.

At least in this case, the community has a choice.

Loom Network is aiming to be a platform where communities can run their software on sidechains where they all have a vested interest in the platform being provably fair and transparent while being able to adjust their security restrictions on demand.

Communities will be able to run on a blockchain where users can spin up their own nodes and secure the network. These could be communities like steemit, subreddits, forums, facebook groups, stackoverflow-type Q&A sites — places where people talk about a common interest — as well as MMO games where everyone has an interest in the game remaining fair. The moment there is a divergence from the community consensus, the users must be able to fork away.

When developers are finally able to create these types of platforms just as easily as they build today’s modern Web 2.0 applications, that time will be when the blockchain revolution will truly have begun.


原文:https://medium.com/loom-network/million-user-dapps-on-ethereum-an-introduction-to-application-specific-sidechains-c0fdc288c5e5

【四旋翼无人机】具备螺旋桨倾斜机构的全驱动四旋翼无人机:建模与控制研究(Matlab代码、Simulink仿真实现)内容概要:本文围绕具备螺旋桨倾斜机构的全驱动四旋翼无人机展开研究,重点探讨其系统建模与控制策略,结合Matlab代码与Simulink仿真实现。文章详细分析了无人机的动力学模型,特别是引入螺旋桨倾斜机构后带来的全驱动特性,使其在姿态与位置控制上具备更强的机动性与自由度。研究涵盖了非线性系统建模、控制器设计(如PID、MPC、非线性控制等)、仿真验证及动态响应分析,旨在提升无人机在复杂环境下的稳定性和控制精度。同时,文中提供的Matlab/Simulink资源便于读者复现实验并进一步优化控制算法。; 适合人群:具备一定控制理论基础和Matlab/Simulink仿真经验的研究生、科研人员及无人机控制系统开发工程师,尤其适合从事飞行器建模与先进控制算法研究的专业人员。; 使用场景及目标:①用于全驱动四旋翼无人机的动力学建模与仿真平台搭建;②研究先进控制算法(如模型预测控制、非线性控制)在无人机系统中的应用;③支持科研论文复现、课程设计或毕业课题开发,推动无人机高机动控制技术的研究进展。; 阅读建议:建议读者结合文档提供的Matlab代码与Simulink模型,逐步实现建模与控制算法,重点关注坐标系定义、力矩分配逻辑及控制闭环的设计细节,同时可通过修改参数和添加扰动来验证系统的鲁棒性与适应性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值