Font Size: a A A

Research On Smart Contract Optimization Method Of Business Process Based On Blockchain

Posted on:2020-04-18Degree:MasterType:Thesis
Country:ChinaCandidate:Y GaoFull Text:PDF
GTID:2428330572498336Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With a series of "encrypted digital currency" represented by bitcoin,the underlying supporting technology "blockchain" has also surfaced and received wide attention from all walks of life.As one of the most active blockchain platforms in the world,Ethereum has expanded the scripting program that can be automated,that is,smart contracts,based on the blockchain.Smart contracts allow users to write contract codes to meet a variety of complex business scenario needs,and rely on the characteristics of the blockchain to ensure the security and transparency of business execution,while not relying on third-party central institutions,but also solve the trust problem.Therefore,business processes involving issues such as brokers and trust can be deployed to the blockchain in the form of smart contracts.However,the deployment and execution of smart contracts in Ethereum requires the consumption of certain resources,expressed in units of Gas defined in Ethereum,which Gas can consider as a valuable currency.How to reduce the cost of deploying business process smart contracts,that is,reducing the consumption of Gas,is the main problem that drives the transfer of business processes into the blockchain.Therefore,business process smart contracts need to be optimized.Through research,it is found that the current mainstream method of reducing the consumption of smart contracts is to optimize the execution process of business processes,avoid unnecessary steps,and reduce the consumption of Gas in smart contract execution,but does not consider the consumption of Gas when smart contracts are deployed.Aiming at the problem of Gas consumption in the deployment of business process smart contracts,this paper proposes an optimization method for business process smart contracts.First,the business process modeling is modeled using Business Process Modeling Notation(BPMN).Secondly,based on the BPMN model,it can be extended to Petri nets and the Petri nets can be simplified.The node combinations that can be simplified in the BPMN model are found out and the corresponding simplification rules are determined.Finally,by collecting the simplified tasks or gateway conditions in the original BPMN business process model,the BPMN model XML file is annotated in the simplified BPMN model,and a mapping rule from BPMN model to Solidity code is designed according to the BPMN model XML file.The optimized smart contracts code are written according to the simplified BPMN business process model.The experimental results show that the optimized business process smart contracts can reduce the Gas consumption of the business process smart contracts deployment by the actual deployment test of the Ethereum blockchain.
Keywords/Search Tags:Blockchain, Business process, Smart contract optimization, Reduce Gas consumption
PDF Full Text Request
Related items