Blockchain technology is currently a very popular technology,and smart contract technology is the focus of development at this stage and is also the main research object.At present,the performance,security and privacy issues in smart contract technology are a widespread defect and deficiency,and also become an important obstacle to the current application of smart contract technology.1)In terms of the performance of smart contracts,this article first analyzes the characteristics of the account model in Bitcoin and Ethereum,and combines the fabric characteristics to propose a script payment model based on UTXO.By dividing the user’s account into multiple UTXO blocks for storage,and using scripts to verify transactions,that improves the efficiency of transactions and provides a certain degree of scalability.2)On the security and privacy issues of smart contracts,it mainly analyzes the access security and privacy of smart contracts.By comparing the characteristics of traditional X.509-based certificate authentication and attribute-based privacy protection authentication(Privacy-ABC)in privacy access control,combined with the member service management MSP in Fabric,it will be based on the Privacy-ABC mechanism.Idemix credentials are introduced into smart contracts,and Idemix credentials are introduced through three aspects: blockchain,smart contract,and application to form a closed loop.Generate an Idemix credential on the application side,verify the legality of the Idemix credential on the blockchain side,and use the attribute value of the credential in the smart contract to provide efficient access control,improve its access security,and use the Idemix credential Linkability to achieve user privacy protection for smart contract access,that is,it is impossible to deduce its identity information through access behavior.Finally,design smart contracts based on Charity Consortium Block Chain(CCBC),and test and analyze the performance of smart contracts.At the same time,by testing and analyzing the designed smart contract from the aspects of smart contract access security and smart contract’s own logical security,it provides a feasible reference solution for the design of performance,security and privacy using Fabric’s smart contract technology. |