在联盟链多方参与的场景中,如果您需要开发智能合约,建议您按照以下步骤对业务场景进行梳理。
  1、定义多方协作中,智能合约需要实现的逻辑和功能,实现智能合约。
  2、定义各参与方客户端或后端服务的业务逻辑,以及与智能合约交互的接口逻辑,集成SDK或REST实现。
  3、集成SDK或REST的业务逻辑与智能合约交互,测试功能。
  4、多方参与的功能性集成测试。
  Blockchain is a chain composed of blocks one after another.Certain information is stored in each block,and they are connected into a chain according to their respective chronological order.This chain is stored in all servers.As long as one server in the whole system can work,the whole blockchain is safe.These servers are called nodes in the blockchain system.They provide storage space and computing power support for the whole blockchain system.If you want to modify the information in the blockchain,you must obtain the consent of more than half of the nodes and modify the information in all nodes,which are usually in the hands of different subjects.Therefore,it is extremely difficult to tamper with the information in the blockchain.Compared with traditional networks,blockchain has two core characteristics:data is difficult to tamper with and decentralized.
  什么是区块链应用
  区块链应用DApp(Decentralized Application)就是去中心化应用。DAPP就是基于P2P对等网络而运行在智能合约之上的分布式应用程序,区块链则为其提供可信的数据记录。
  与传统应用的区别
  传统的Web应用开发通常由客户端和后端服务组成。而基于蚂蚁链的区块链应用开发除了客户端和服务端开发,还需要开发区块链上运行的智能合约。
  简单来说,区块链应用是通过调用智能合约将数据存储在区块链的传统分布式应用,或通过直接调用的方式将数据存储在区块链的传统分布式应用(没有使用合约的场景)。所以DApp和传统APP的区别从技术的角度看,区别在于DApp的数据是存储在区块链上的,确保难以篡改;而传统APP的数据是存储在传统数据库上,可以直接修改。