| Blockchain refers to a new application model of distributed data storage,peer-to-peer transmission,and encryption algorithms and other technologies,which has the characteristics of decentralization,de-trust,and tamper proof.Its characteristics and advantages are in line with the special needs of the development and application in the military field.Military blockchain is the application of blockchain technology in military fields such as combat command,combat security,and equipment management,which can subvert the traditional centralized data storage model,reshape the data protection mechanism,and improve the military data security.As a piece of computer code running on the blockchain system,smart contracts endow the blockchain with programmable feature,which is the critical technology for blockchain to be applied on the ground in the military field.Compared with the civilian blockchain,there are contradictions in the military blockchain,including the contradiction between central command and decentralization,the contradiction between information control and the whole network,the contradiction between high real-time performance and cumbersome authentication,and the contradiction between limited network nodes and vulnerability to saturation attacks.Starting from the characteristics of blockchain and the difficulties of military applications,this paper conducts research on smart contract technology for military blockchain,mainly including the following research work.(1)In response to the requirements of traditional centralized military systems on trust environment and data integrity,a hierarchical military blockchain information interaction platform is designed to establish a decentralized storage layer,a core function layer,and a trusted exchange layer.In addition,platform modules such as blockchain,smart contracts,distributed storage and identity management are designed respectively.(2)In view of the requirements of military information reliability,the formal definition of a military smart contract is given by drawing on and redefining the essential element of the contract,"promise",and describing a smart contract as a state machine based on the generation of "promises".The transformation of military information interaction logic into contract logic and the smart contract formulation for the platform designed in this paper are completed.(3)Aiming at the requirement of military information availability,this paper optimizes the existing three-layer structure model of smart contracts,proposes a validation layer to detect contract integrity,boundary value and abnormal process detection,redefines the storage layer for unified data storage,and completes a design of four-layer structure model of the smart contract to build the agent layer,verification layer,business layer and storage layer contracts,so as to realize the on-chain upgrade,on-chain verification and version compatible.(4)With reference to typical air-ground defense combat cases,an information interaction platform based on military blockchain is implemented,and the testing of the platform and smart contract model is completed.At the same time,this paper also analyzes the on-chain upgrade cost,data migration cost,contract complexity of the smart contract model,and finally summarizes the advantages and disadvantages of the four-layer model of smart contracts. |