DApp平台开发丨合约系统开发方案及机制设计

DApp平台开发丨合约系统开发方案及机制设计,第1张

  区块链技术正在重构我们的世界。开发-181系259I统-3365如果你不信,你回头看看过去10年互联网技术对这个世界的改变。今天主要聊的,是基于区块链技术的分布式应用(DAPP),一个我们未来或会经常使用的新物种。

  一、什么是DAPP(分布式应用)?

  DAPP是Decentralized ApplicaTIon的缩写,中文叫分布式应用/去中心化应用(何玺更喜欢叫分布式应用)。通常来说,不同的DAPP会采用181系259I统-3365不同的底层区块链开发平台和共识机制,或者自行发布代币(也可以使用基于相同区块链平台的通用代币)。

  DAPP不同的底层区块链开发平台就好比手机的IOS系统和Android系统,是各DAPP的底层生态环境。DAPP就是底层区块链平台生态上衍生的各种分布式应用,也是区块链世界中的基础服务提供方。DAPP于区块链,就好比APP之于IOS和Android。

  根据David Johnston对DAPP的定义,一个真正的DAPP应用,需要同时满足一下几个条件:

  1、应用必须完全开源、自治,且没有一个实体控制着该应用超51%Token。该应用必须能够根据用户的反馈及技术要求进行升级,且应用升级必须由大部分用户达成共识之后方可进行;

  2、应用的数据必须加密后存储在公开的区块链上;

  3、应用必须拥有Token机制(可用基于相同底层区块链平台的通用代币或自行发行新币),矿工或应用维护节点需要得到代币奖励;

  4、应用代币的产生必须依据标准的加密算法,有价值的节点可以根据该算法获取应用的代币奖励。

  DAPP(分布式应用)的优劣:

  DAPP的优点:

  DAPP的优势在于区块链特有的数据确权、价值传递功能,DAPP在用户认证流程变更、交易安全、行业生产关系变更、减少运维成本、降低技术开发成本等方面具有较大的优势,也能大幅提升用户体验。

  DAPP当前的劣势在于技术前景不明朗,主要表现在DAPP产品设计思路需要创新、处理效率低、研发风险高。

  二、几个DAPP开发平台

  To develop a DAPP,you must first understand what problems the DAPP can solve,and then write a project white paper describing the technical principles and consensus mechanisms used by the DAPP.It is too complicated to develop a complete blockchain project from scratch,so most ordinary developers choose a relatively mature platform to develop their DAPP based on the mature platform development environment.Since then,the development of DAPP has been much simpler.

  At present,the most popular development platform of DAPP is Ethereum.Ethereum is a Turing complete blockchain one-stop development platform,which uses multiple programming languages to implement the protocol,and uses the client written in Go language as the default client.It allows anyone to establish and use distributed applications running through blockchain technology in the platform.We can understand it as Android in the blockchain field.It is a development platform,and users can develop applications based on blockchain technology just like Android Framework.

  Before Ethereum,the development of blockchain applications was as follows:copy a copy of Bitcoin code,and then change the underlying code,such as encryption algorithm,consensus mechanism,network protocol,etc.

  The Ethereum platform encapsulates the underlying blockchain technology,so that blockchain application developers can directly develop based on the Ethereum platform.As long as developers focus on the development of the application itself,it greatly reduces the difficulty of DAPP application development.

  At present,a relatively perfect development ecosystem has been formed around Ethereum:with the support of the community,there are many development frameworks and tools to choose from.

  In China,DAPP development platforms include Bubi District Network,Lisk,Asch,etc.

  布比区块链平台分为基础框架层(BubiChain)和应用适配层(Bubi ApplicaTIon Adaptors)。底层基础框架层提供区块链的基础服务,应用适配层提供上层应用所需的功能组件,为具体的应用系统开发提供接口和SDK,降低由于区块链自身复杂的逻辑所带来的应用开发的难度。

  对于一般开发的应用适配层,布比提供布萌区块链应用开发平台,该平台基于布比区块链技术,将上层应用所需要的功能组件进行封装,开发者想实现对应的功能,只需要注册成为布萌开发者即可获得接口使用权限。同时,平台提供开发者运维所需要的可视化管理工具。

  LISK是新一代的区块链平台,允许JavaScript(又是Javascript技术,工程师们注意了)的开发和基于分布的分散的应用程序使用一个易于使用的,功能齐全的生态区块链系统。相对于其他区块链底层,LISK应用的优势在于它是写在Javascript里的去中心化的应用解决方案,以及它把每个应用加到LISK的单独侧链上。

  Asch是一个公有链项目,2016年初规划,主网于2016年8月16日正式上线运行。只要掌握JavaScript,就可以基于Asch开发DAPP。Asch采用的是侧链架构,每一个DAPP就是一套侧链。侧链可以有独立的区块链和节点网络。不同的DAPP之间互相不会影响。不同于Ethereum,Asch系统上DAPP数量的增加不会增加主链的负担,是一套更加先进的机制。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/2990056.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-23
下一篇 2022-09-23

发表评论

登录后才能评论

评论列表(0条)

保存