摘要
Blockchain software development is becoming more and more important for any modern software developer and IT startup.Nonetheless,blockchain software production still lacks a disciplined,organized and mature development process,as demonstrated by the many and(in)famous failures and frauds occurred in recent years.In this paper we present ABCDE,a complete method addressing blockchain software development.The method considers the software integration among the blockchain components—smart contracts,libraries,data structures—and the out-of-chain components,such as web or mobile applications,which all together constitute a complete DApp system.We advocate for ABCDE the use of agile practices,because these are suited to develop systems whose requirements are not completely understood since the beginning,or tend to change,as it is the case of most blockchain-based applications.ABCDE is based on Scrum,and is therefore iterative and incremental.From Scrum,we kept the requirement gathering with user stories,the iterative-incremental approach,the key roles,and the meetings.The main difference with Scrum is the separation of development activities in two flows—one for smart contracts and the other for out-of-chain software interacting with the blockchain—each performed iteratively,with integration activities every 2–3 iterations.ABCDE makes explicit the activities that must be performed to design,develop,test and integrate smart contracts and out-of-chain software,and documents the smart contracts using formal diagrams to help development,security assessment,and maintenance.A diagram derived from UML class diagram helps to effectively model the data structure of smart contracts,whereas the exchange of messages between the entities of the system is modeled using a modified UML sequence diagram.The proposed method has also specific activities for security assessment and gas optimization,through systematic use of patterns and checklists.ABCDE focuses on Ethereum blockchain and its Solidity language,but preserves generality and with proper modifications might be applied to any blockchain software project.ABCDE method is described in detail,and an example is given to show how to concretely implement the various development steps.
基金
funded by the CRYPTOVOTING project,funded by Sardinia Region,call POR FESR Sardegna 2014–2020,Prot.0010083,no.1361 REA,August 01,2018,and by the ABATA project(Application of Blockchain to Authenticity and Traceability of Aliments)
funded by Italian Ministry for Economic Development,National Operational Program“Enterprises and Competitiveness”,project No.F/200130/01–02/X45.