P2P众筹是一种基于互联网金融技术的热点模式,目前的众筹平台还存在公信力不足、无法监管等问题,新兴的区块链和智能合约技术提供了解决问题的新技术途径.区块链作为分布式账本数据库,记录了不可更改的资产数据,存储在区块链上的智能合约可以直接控制数字资产的交易,从而构造了基于智能合约的可信众筹业务计算环境,为完全数字化资产的记录和转移奠定了基础.众筹项目的规则制定成智能合约代码后,把代码与项目状态全部记录在众筹区块链(crowdfunding private blockchain,CPBC)上,并由区块链执行交易代码,这样不仅保证了众筹项目的真实性、可靠性与强制性,还使得项目的执行具有可信性,极大地提升了众筹平台的公信力,还可减少众筹业务在第三方审核上的人工花费与计算成本.给出了众筹区块链的智能合约设计,包括智能合约的执行模型和存储模型,分别给出了Java的具体实例说明.研究结果表明,众筹区块链上的智能合约设计已能够满足80%的众筹业务需求,目前已经得到了初步的应用,取得了较好效果.
P2P Crowdfunding is a hotspot model based on Internet financial technology. Currently, there are problems such as the lack of trust and supervision, and blockchain and smart contract provide a new way to solve these problems. As a distributed ledger database, the blockchain records the immutable asset data. The smart contract stored in the blockchain can directly control the digital asset, and constructs the trusted computing environment for crowd funding. Crowdfunding Private Blockchain (CPBC) stores and executes the code and data on the blockchain, not only makes that all the projects on the chain true and reliable, but also makes the execution of the project credible, greatly enhance the trusty of the platform, and reduce the broker fee. The design of smart contract for the crowdfunding blockchain is given, which includes the execution model and state storage model, and gives the concrete examples in Java. The research results show that smart contract design on the CPBC could meet the 80% demand for business, and obtain the preliminary application and achieve good results.