CN109949194A - Public good based on block chain offers method and device, electronic equipment - Google Patents

Public good based on block chain offers method and device, electronic equipment Download PDF

Info

Publication number
CN109949194A
CN109949194A CN201910209361.XA CN201910209361A CN109949194A CN 109949194 A CN109949194 A CN 109949194A CN 201910209361 A CN201910209361 A CN 201910209361A CN 109949194 A CN109949194 A CN 109949194A
Authority
CN
China
Prior art keywords
donations
project
public good
block chain
public
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910209361.XA
Other languages
Chinese (zh)
Inventor
朱海伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910209361.XA priority Critical patent/CN109949194A/en
Publication of CN109949194A publication Critical patent/CN109949194A/en
Pending legal-status Critical Current

Links

Abstract

A kind of public good donation method based on block chain is disclosed, comprising: receives the donations for target public good project that donor initiates and trades;Donations transaction includes capital endowment;It trades in response to the donations, the capital endowment is transferred to the donations trusteeship party account stated in intelligent contract by the donations processing logic for calling publication to state in the intelligent contract on block chain;When determining that target public good project meets preset whip-round completion condition, the donations stated in intelligent contract are called to execute logic, the capital endowment completed will be solicited contributions, the article buying side account stated in intelligent contract is transferred to by donations trusteeship party's account, to purchase public welfare forestry according to the acquisition inventory stated in intelligent contract by article buying side, and the public welfare forestry logistics transportation of buying is extremely published on block chain by the related data of donor;Shopping list includes target public good project public welfare forestry to be purchased, and unit price of procurement corresponding with public welfare forestry.

Description

Public good based on block chain offers method and device, electronic equipment
Technical field
This specification one or more embodiment is related to block chain technical field more particularly to a kind of public affairs based on block chain Benefit donation method and device, electronic equipment.
Background technique
Block chain technology is also referred to as distributed account book technology, is that one kind is participated in " remembering jointly by several calculating equipment Account ", the emerging technology of common a complete distributed data base of maintenance.Since block chain technology has decentralization, openly Transparent, every calculating equipment can participate in data-base recording and respectively calculate that data synchronization can be rapidly performed by between equipment Characteristic so that block chain technology is widely applied in numerous fields.
Summary of the invention
In view of this, this specification proposes a kind of public good donation method based on block chain, comprising:
A kind of welfare donations method based on block chain, which comprises
The donations for target public good project that donor initiates are received to trade;The donations transaction includes capital endowment;
It trades in response to the donations, calls with the target public good project corresponding intelligence of the publication on the block chain The capital endowment, is transferred to the donations trusteeship party stated in the intelligent contract by the donations processing logic stated in energy contract Account;And
When determining that the target public good project meets preset whip-round completion condition, the intelligent contract is further called The donations of middle statement execute logic, will solicit contributions the capital endowment completed and be transferred to the intelligence conjunction by donations trusteeship party account About in state article buying side account corresponding with the target public good project, with by the article buying side according to the intelligence The acquisition inventory buying public welfare forestry stated in energy contract, and by the public welfare forestry logistics transportation of buying to by the correlation of donor On data publication to block chain;Wherein, the shopping list includes target public good project public welfare forestry to be purchased, and Unit price of procurement corresponding with the public welfare forestry.
Optionally, the method also includes:
When determining that the target public good project meets preset whip-round termination condition, the intelligent contract is further called The capital endowment that completion is solicited contributions in the donations trustship account is retracted into corresponding tax by the donations rollback logic of middle statement respectively The side of helping.
Optionally, the method also includes:
After the donations trusteeship party account stated in the capital endowment to be transferred to the intelligent contract, further adjust With the decision logic stated in the intelligent contract, judge whether the target public good project meets preset whip-round completion condition With whip-round termination condition.
Optionally, the method also includes:
Monitor the intelligent contract event generated by the intelligent contract;
The capital endowment is being transferred to donations trusteeship party account by the intelligent contract in response to what is listened to The donations processing completion event generated afterwards, generates the donations record for corresponding to the donor, and the donations of generation are remembered Record is distributed to the block chain and carries out depositing card;
The capital endowment completed will solicited contributions by donations trusteeship party account by the intelligent contract in response to what is listened to Family is transferred to the donations generated after article buying side account and executes completion event, and the target public good project is switched to and is raised Contribute completion status.
Optionally, the whip-round completion condition includes: to be transferred to donations trusteeship party account within the preset whip-round period The capital endowment at family reaches the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the tax of donations trusteeship party's account within the preset whip-round period Give fund, the procurement payment total value in the not up to described shopping list.
Optionally, the article buying side is the manufacturer of the public welfare forestry.
Optionally, further includes:
Monitor the execution feedback data execution feedback data for the target public good project that card is deposited in the block chain;
The execution feedback data in response to depositing card in the block chain that listens to executes feedback data, by the mesh Mark public good project is switched to corresponding project status.
Optionally, the execution feedback data in response to depositing card in the block chain that listens to executes feedback coefficient According to the target public good project is switched to corresponding project status, comprising:
In response to depositing the procurement data corresponding with the public welfare forestry of card in the block chain that listens to, by the mesh Mark public good project is switched to buying completion status;
In response to depositing the logistics data corresponding with the public welfare forestry of card in the block chain that listens to, by the mesh Mark public good project is switched to logistics transportation state;
In response to depositing the described true by reception of the donation object to the public welfare forestry of card in the block chain that listens to Recognize data, the target public good project is switched to project completion status.
Optionally, further includes:
It receives the state for target public good project that the donor initiates and checks request;
Request is checked in response to the state received, and the current project status of the target public good project mark is returned To the donor.
This specification also proposes a kind of welfare donations device based on block chain, and described device includes:
Receiving module receives the donations for target public good project that donor initiates and trades;The donations are traded Capital endowment;
Processing module, in response to the donations trade, call publication on the block chain with the target public good item The capital endowment is transferred to and to state in the intelligent contract by the donations processing logic stated in the corresponding intelligent contract of mesh Donate trusteeship party's account;
Execution module further calls institute when determining that the target public good project meets preset whip-round completion condition It states the donations stated in intelligent contract and executes logic, the capital endowment completed will be solicited contributions and be transferred to by donations trusteeship party account The article buying side account corresponding with the target public good project stated in the intelligence contract, by the article buying side Public welfare forestry is purchased according to the acquisition inventory stated in the intelligent contract, and the public welfare forestry logistics transportation of buying is extremely contributed The related data for the side of helping is published on block chain;Wherein, the shopping list includes target public good project public affairs to be purchased Beneficial article, and unit price of procurement corresponding with the public welfare forestry.
Optionally, described device further include:
Rollback module further calls institute when determining that the target public good project meets preset whip-round termination condition The donations rollback logic stated in intelligent contract is stated, the capital endowment that completion is solicited contributions in the donations trustship account is retracted respectively To corresponding donor.
Optionally, described device further include:
Judgment module, the donations trusteeship party account stated in the capital endowment to be transferred to the intelligent contract it Afterwards, the decision logic stated in the intelligent contract is further called, it is preset to judge whether the target public good project meets It solicits contributions completion condition and solicits contributions termination condition.
Optionally, described device further include:
Module is monitored, the intelligent contract event generated by the intelligent contract is monitored;
Card module is deposited, the capital endowment is being transferred to the donations support by the intelligent contract in response to what is listened to The donations processing completion event generated after pipe side's account generates and corresponds to the donations of the donor and record, and by the institute of generation Donations record is stated to be distributed to the block chain and carry out depositing card;
Switching module will solicit contributions the capital endowment completed by the donations by the intelligent contract in response to what is listened to Trusteeship party's account is transferred to the donations generated after article buying side account and executes completion event, by the target public good project It is switched to whip-round completion status.
Optionally, the whip-round completion condition includes: to be transferred to donations trusteeship party account within the preset whip-round period The capital endowment at family reaches the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the tax of donations trusteeship party's account within the preset whip-round period Give fund, the procurement payment total value in the not up to described shopping list.
Optionally, the article buying side is the manufacturer of the public welfare forestry.
Optionally, the monitoring module further,
Monitor the execution feedback data execution feedback data for the target public good project that card is deposited in the block chain;
The switching module further,
The execution feedback data in response to depositing card in the block chain that listens to executes feedback data, by the mesh Mark public good project is switched to corresponding project status.
Optionally, the switching module further,
In response to depositing the procurement data corresponding with the public welfare forestry of card in the block chain that listens to, by the mesh Mark public good project is switched to buying completion status;
In response to depositing the logistics data corresponding with the public welfare forestry of card in the block chain that listens to, by the mesh Mark public good project is switched to logistics transportation state;
In response to depositing the described true by reception of the donation object to the public welfare forestry of card in the block chain that listens to Recognize data, the target public good project is switched to project completion status.
Optionally, described device further include:
Return module receives the state for target public good project that the donor initiates and checks request;In response to connecing The state received checks request, and the current project status of the target public good project mark is returned to the donor.
Pass through above technical scheme, on the one hand, due to donor by be invoked at disposed on block chain with target public good The corresponding intelligent contract of project, so that it may complete to be directed to the operations such as the donations of target public good project are handled and donations execute;Public good The operator and management platform of project no longer intervene the links such as donations processing and the donations execution of the target public good project;Therefore, The transparency that public good project can be promoted and the public are to the degree of belief of public good project;
On the other hand, due to being stated in advance in the intelligent contract corresponding with target public good project disposed on block chain The shopping list of public welfare forestry;It can thus be avoided query of the public caused by shopping list item is opaque to public good project.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram for creation intelligence contract that an exemplary embodiment provides;
Fig. 2 is a kind of flow chart for public good donation method based on block chain that an exemplary embodiment provides;
Fig. 3 is a kind of schematic diagram that public good project list is presented by client that an exemplary embodiment provides;
Fig. 4 is a kind of signal at details interface that public good project is presented by client that an exemplary embodiment provides Figure;
Fig. 5 is a kind of signal for carrying out welfare donations feedback to donor by client that an exemplary embodiment provides Figure;
Fig. 6 is that the another kind that an exemplary embodiment provides carries out showing for welfare donations feedback to donor by client It is intended to;
Fig. 7 is that the another kind that an exemplary embodiment provides carries out showing for welfare donations feedback to donor by client It is intended to;
Fig. 8 is the structural schematic diagram for a kind of electronic equipment that an exemplary embodiment provides;
Fig. 9 is a kind of block diagram for public good donation device based on block chain that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification The example of consistent device and method.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments executes The step of correlation method.In some other embodiments, step included by method can than described in this specification more It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments Description.
Block chain is normally divided into three types: publicly-owned chain (Public Blockchain), privately owned chain (Private ) and alliance's chain (Consortium Blockchain) Blockchain.In addition, there are also a plurality of types of combinations, such as privately owned chain The different combinations such as+alliance chain, alliance's chain+publicly-owned chain.It is publicly-owned chain that wherein decentralization degree is highest.Publicly-owned chain with than Special coin, ether mill are representative, and the participant that publicly-owned chain is added can read data record on chain, participate in business and compete newly Book keeping operation power of block etc..
Moreover, each participant's (i.e. node) freely can be added and exit network, and carry out relevant operation.Privately owned chain then phase Instead, the write-in permission of the network is by some tissue or mechanism controls, and reading data permission is by organization prescribed.In simple terms, private There is chain can be for weak center's system, participating in node has stringent limitation and less.Such block chain more suitable for It is used inside particular organization.
Alliance's chain is then the block chain between publicly-owned chain and privately owned chain, it can be achieved that " part decentralization ".Alliance Each node usually has corresponding physical mechanism or tissue in chain;Network and composition benefit is added by authorization in participant Beneficial correlation alliance, it is common to safeguard the operation of block chain.
Whether publicly-owned chain, privately owned chain or alliance's chain may all provide the function of intelligent contract.Intelligence on block chain Contract is the contract that can be executed by transaction triggering on block catenary system.Intelligent contract can pass through the formal definition of code.
By taking ether mill as an example, user is supported to create in the network of ether mill and call the logic of some complexity, this is ether Mill is different from the ultimate challenge of bit coin block chain technology.Ether mill is ether mill void as the core of a programmable block chain Quasi- machine (EVM), each ether mill node can run EVM.EVM is the complete virtual machine of figure spirit, it means that can be with The logic of various complexity is realized by it.It is exactly to run on EVM that user, which issues in ether mill and call intelligent contract,.It is real On border, what virtual machine was directly run is virtual machine code (Virtual Machine bytecodes, lower abbreviation " bytecode ").It is deployed on block chain Intelligent contract can be the form of bytecode.
Such as shown in Fig. 1, Bob by one comprising create the transaction (Transaction) of intelligent contract information be sent to Too after the network of mill, the EVM of node 1 can execute this and trade and generate corresponding contract example.In 1 in figure " 0x68e12cf284 ... " represents the address of this contract, and what the data field of transaction saved can be bytecode, transaction To field is an empty account.After being reached an agreement between node by common recognition mechanism, this contract is successfully created, and subsequent user can To call this contract.
Contract creation after, on block chain occur a contract account corresponding with the intelligence contract, and possess one it is specific Address, contract code and account storage will be stored in the contract account.The behavior of intelligent contract is controlled by contract code, and The account storage (Storage) of intelligent contract then saves the state of contract.In other words, intelligent contract to produce on block chain The raw virtual account stored comprising contract code and account.
It is previously mentioned, the byte that can be the intelligence contract saved comprising creating the data field of transaction of intelligent contract Code.Bytecode is made of a series of byte, and each byte can identify an operation.It is more based on development efficiency, readability etc. From the aspect of, developer can not directly write bytecode, but select a high level language intelligence contract code.Example Such as, using high-level languages such as Solidity, Serpent, LLL language.For the intelligent contract using high level language Code can compile by compiler, generate the bytecode that can be deployed on block chain.
By taking Solidity language as an example, the contract write with it and class (Class) the very phase in Object-Oriented Programming Language Seemingly, a variety of members, including state variable, function, function modifier, event etc. can be stated in a contract.State variable It is the value being permanently stored in the account storage of intelligent contract, for saving the state of contract.
This specification be directed to it is a kind of build public good platform based on block chain, and by being disposed in block chain Intelligence contract relevant to public good project to promote the links such as the donations of public good project are handled and donations execute, Lai Tisheng automatically The solution of the transparency of public good project and the public to the degree of belief of public good project.
Realize when, the operator (such as charity) of public good project, can according to the project plan of public good project with And the specific implementation details of promotion of item, carry out developing intellectual resource contract, the intelligent contract that exploitation is completed then is distributed to block chain Carry out intelligent contract deployment.
On the one hand, it can state that donations processing logic relevant to the public good, and donations are executed and patrolled in intelligent contract Volume.
On the other hand, shopping list can also be stated in intelligent contract;It is based in the shopping list including public good project The public welfare forestry inventory to be purchased of the fund of whip-round, and unit price of procurement corresponding with these public welfare forestries.
And the management platform (such as trusteeship party of public good project) of public good project, it can be by all in the form of intelligent contract The public good project of deployment is pushed to the client of donor, is presented to donor in the form of bulleted list, so that donation Side can carry out selection target public good project from bulleted list, to complete to offer.
After donor has selected the target public good project for being desired with donation, client can be according to the tax of donor Object is given to construct donations transaction, and the node device that the donations transaction of building is sent in block chain, to be invoked at block The intelligent contract corresponding with the target public good project disposed on chain.
And the node device in block chain can respond the donation transaction, be invoked at disposed on block chain with the target public affairs The donations processing logic stated in the corresponding intelligent contract of beneficial project, is transferred to sound in intelligent contract for the donations object of donor Bright donations trusteeship party, and when determining that the target public good project meets preset whip-round completion condition, it can further call The donations stated in the intelligence contract execute logic, will solicit contributions the capital endowment completed and are transferred to by donations trusteeship party account The article buying side account corresponding with the target public good project stated in the intelligence contract, by the article buying side Public welfare forestry is purchased according to the acquisition inventory, and the public welfare forestry logistics transportation of buying is sent out to by the related data of donor On cloth to block chain.
Pass through above technical scheme, on the one hand, due to donor by be invoked at disposed on block chain with target public good The corresponding intelligent contract of project, so that it may complete to be directed to the operations such as the donations of target public good project are handled and donations execute;Public good The operator and management platform of project no longer intervene the links such as donations processing and the donations execution of the target public good project;Therefore, The transparency that public good project can be promoted and the public are to the degree of belief of public good project;
On the other hand, due to being stated in advance in the intelligent contract corresponding with target public good project disposed on block chain The shopping list of public welfare forestry;It can thus be avoided query of the public caused by shopping list item is opaque to public good project.
Fig. 2 is referred to, Fig. 2 is a kind of process for public good donation method based on block chain that an exemplary embodiment provides Figure.As shown in Fig. 2, this method is applied to the node device in block chain, wherein deployed on the block chain and target public good The corresponding intelligent contract of project;Shopping list is stated in the intelligence contract;The shopping list includes the target public good Project public welfare forestry to be purchased, and unit price of procurement corresponding with the public welfare forestry;It the described method comprises the following steps:
Step 202, the donations for target public good project that donor initiates are received to trade;The donations transaction includes contributing Give fund;
Step 204, it trades in response to the donations, the donations processing logic stated in the intelligent contract is called, by institute It states capital endowment and is transferred to the donations trusteeship party account stated in the intelligent contract;
Step 206, when determining that the target public good project meets preset whip-round completion condition, further described in calling The donations stated in intelligent contract execute logic, will solicit contributions the capital endowment completed and are transferred to institute by donations trusteeship party account The article buying side account corresponding with the target public good project stated in intelligent contract is stated, to be pressed by the article buying side Public welfare forestry is purchased according to the acquisition inventory, and the public welfare forestry logistics transportation of buying is issued to by the related data of donor Onto block chain.
Above-mentioned donations object may include contributor to the public good fund or public welfare forestry donated by contributor;Wherein, Above-mentioned public welfare forestry can be physical item, be also possible to virtual objects.Correspondingly, the whip-round object of above-mentioned public good project, it can To be public good fund, it is also possible to public welfare forestry.
For example, under a kind of whip-round scene shown, the whip-round object of public good project can be public welfare forestry, and contributor The donations object of donations can be public good fund.The operator of public good project, the public good fund that can use contributor's donations are come Buying needs the public welfare forestry solicited contributions, and then offers the public welfare forestry of buying to by contributor.
1) public good project is disposed in the form of intelligent contract
In the present specification, the operator (for example can be charity) of public good project is initiating a public good project When, the detailed project plan and the project plan can be specified to promote related specific implementation details based on actual demand;
For example, detail involved in the project plan of public good project, may include the Project Introduction of public good project, it is public The whip-round period of beneficial project, the acquisition side of the public welfare forestry of whip-round and shopping list, the total value of the public good fund of whip-round, are offered The details of people, trusteeship party's account solicit contributions completion condition, solicit contributions termination condition, etc..
The operator of public good project, can be thin according to the project plan of public good project and the specific implementation of promotion of item Section, carrys out developing intellectual resource contract, and trusteeship party's account, the details by contributor of public good project are stated in intelligent contract; And execution logic relevant to the public good project.For example, above-mentioned execution logic, specifically can be the operator of public good project Execution function based on high-level language exploitation.
Wherein, it should be noted that the execution logic relevant to public good project stated in above-mentioned intelligent contract, usually It may include donations processing logic, and donations execute logic.
Above-mentioned donations processing logic is executed, the donations object that contributor donates can be transferred to and to be stated in intelligent contract Donate trusteeship party;Above-mentioned donations trusteeship party, in particular to the trusted third party for being responsible for the donations Object Management group that management is solicited contributions.
It executes above-mentioned donations and executes logic, the donations object that the whip-round for donating trusteeship party's management is completed can be transferred to intelligence Can state in contract by donor.
In a kind of embodiment shown, in the above-mentioned intelligent contract that the operator of public good project is developed, in addition to can To state other than above-mentioned donations processing logic and above-mentioned donations processing logic, can also state relevant to above-mentioned public good project to sentence Disconnected logic and donations rollback logic, etc..
Wherein, above-mentioned decision logic can handle after logic is finished in above-mentioned donations and trigger execution.Intelligent contract The decision logic can be further executed, judges the public good item after the donations object of contributor to be transferred to donations trusteeship party Whether mesh meets preset whip-round completion condition and solicits contributions termination condition.
Correspondingly, above-mentioned donations execute logic, above-mentioned decision logic can be being executed, judge that above-mentioned public good project meets It triggers and executes after preset whip-round completion condition.Above-mentioned donations rollback logic, can be on executing above-mentioned decision logic, judging It states after public good project meets preset whip-round termination condition and triggers execution.The donations rollback logic is executed, can be completed soliciting contributions Donations object be retracted into corresponding donor respectively.
Wherein, above-mentioned whip-round completes condition and solicits contributions termination condition, can be by the operator of public good project according to specific Demand is customized.
In the present specification, if the whip-round object of public good project is public welfare forestry, and the donations object of contributor's donations It is public good fund;Under this public good scene, since the operator of public good project finally needs to provide using the public good that whip-round obtains Gold, to purchase corresponding public welfare forestry;Therefore, it in the above-mentioned intelligent contract that the operator of public good project is developed, can also wrap Include the article buying side of statement and the shopping list of public welfare forestry.It wherein, can also include wait purchase in the shopping list Public welfare forestry, and unit price of procurement corresponding with public welfare forestry to be purchased.
Due under this public good scene, if statement buying side and corresponding do not purchased clearly in advance in intelligent contract It is single, it not only results in buying side and specific shopping list is not transparent enough, can also can not may give the public one due to charity A clearly specific effect expectation, causes the public discontented to the desired effect of public good project;
For example, the public may have objection to public welfare forestry procurement price, the specified buying side of charity can be queried and deposited In Tunneling etc.;Moreover, the period of public good project is usually all long, the procurement price of public welfare forestry may in the meantime It fluctuates, the case where overspending or never running out occurs in the public good fund that the public may query whip-round.
Therefore, charity is clear by the intelligent contract of public good project, stating buying side and corresponding buying in advance It is single, allow charity to give the public one clearly specific effect expectation, can further promote the transparent of public good project The degree of belief of degree and the public to charity.
Correspondingly, in such a scenario, condition is completed in above-mentioned whip-round specifically can be, within the preset whip-round period, turn The public good fund for moving to donations trusteeship party's account, reaches the procurement payment total value in above-mentioned shopping list;And above-mentioned whip-round Termination condition specifically may is that within the preset whip-round period, is transferred to the public good fund of donations trusteeship party's account, does not reach To the procurement payment total value in above-mentioned shopping list.
In the present specification, after completing the exploitation of above-mentioned intelligent contract, the operator of public good project can create one Transaction comprising the intelligence contract, and send the transaction on the management platform of public good project.
Wherein, it should be noted that the management platform of the public good project of this specification description specifically can be one and be based on The distributed pipes platform that block chain technology is built.It may include that several nodes as in block chain are set in the management platform Standby service equipment;For example, server.
After node device in block chain receives the transaction, the EVM of node device can execute the transaction, and set in node The common recognition mechanism carried between standby by block chain, after reaching an agreement to the execution of the transaction (i.e. transaction common recognition passes through), It will appear a contract account corresponding with the intelligence contract on block chain, intelligence contract deployment at this time is completed.
Wherein, it should be noted that common recognition mechanism used by above-mentioned block chain, in the present specification without especially limiting It is fixed;
For example, can prove (Proof of using such as proof of work (Proof of Work, POW) and equity Stake, POS) etc. needs contention book keeping operation power common recognition algorithm, such as practical Byzantine failure tolerance (Practical can also be used Byzantine Fault Tolerance, PBFT) etc., what the node that there is book keeping operation to weigh had been agreed upon before epicycle book keeping operation is total to Know algorithm.
2) public good project is promoted by way of calling intelligent contract
In the present specification, the management platform of public good project can be deployed in block in the form of intelligent contract for all Public good project on chain generates corresponding bulleted list, then the bulleted list of generation is pushed to the client of donor, to Donor is presented.And donor can be by the public good project list that presents in the user interface of viewing client-side, to select Corresponding target public good project is selected, to participate in public good project.
Fig. 3 is referred to, Fig. 3 is a kind of schematic diagram that public good project list is presented by client shown in this specification.
As shown in figure 3, by taking above-mentioned management platform is the management platform that public good books solicit contributions project as an example, charity can be with The public good books for disposing various demands in the management platform by way of disposing contract solicit contributions project;For example, shown in Fig. 3 It includes " whip-round of popular science category books " and " whip-round of history class books " etc. that public good books, which solicit contributions project,.Above-mentioned management platform can will be public The various public good books of beneficial mechanism deployment solicit contributions project, are presented to contributor by client in the form of bulleted list, so that Contributor can select the whip-round project desired to participate in above-mentioned user interface.
In the present specification, after donor has selected the target public good project for being desired with donation, client may be used also The details interface of the target public good project to be further presented to donor;It wherein, may include the mesh in the details interface The relevant informations for several alternative donations objects that mark public good project needs to solicit contributions, so that contributor is from the details interface The middle corresponding donations object of selection completes donations.
Fig. 4 is referred to, Fig. 4 is a kind of showing for details interface that public good project is presented by client shown in this specification It is intended to.
As shown in figure 4, still by taking above-mentioned management platform is the management platform that public good books solicit contributions project as an example, it is assumed that donor " whip-round of popular science category books " project shown in Fig. 3 is selected, client can further be presented this " popular science category books are raised at this time The details interface of tax " project;For example, above-mentioned details interface shown in Fig. 4 specifically can be one " popular science category customization book list " Interface shows the shopping list that intelligent contract is stated in advance to contributor in the interface, contributor is adopted above-mentioned Corresponding books are selected in purchase inventory, the tax of public good fund is then completed according to the unit price for the books stated in shopping list It gives.
In the present specification, the relevant information for the donations object that client can be donated according to donor, is contributed to construct The node device given transaction, and the donations transaction of building is sent in block chain, come be invoked at disposed on block chain with this The corresponding intelligent contract of target public good project.
For example, can specifically carry the conjunction of intelligent contract corresponding with the target public good project in the transaction when realizing About address, the function name of the execution function in the called intelligence contract, and the above-mentioned donations pair as call parameters The relevant information of elephant.
And the node device in block chain, after receiving the transaction, the EVM of the node device can execute the transaction, and The common recognition mechanism carried between node device by block chain after reaching an agreement to the execution of the transaction, calls the intelligence to close The donations stated in about handle logic, and the donations object in the transaction is transferred to the donations trustship stated in the intelligence contract Side.
For example, by taking the donations object of the donor is public good fund as an example, by calling the tax stated in the intelligence contract Processing logic is given, the public good fund in the transaction can be transferred to the donations trusteeship party account stated in the intelligence contract.
In a kind of embodiment shown, stated in the donations object in the transaction to be transferred to the intelligent contract Donations trusteeship party after, can further call the decision logic, judge whether the target public good project meets preset raise It contributes completion condition and solicits contributions termination condition;
For example, above-mentioned decision logic can be further still called so that the donations object of the donor is public good fund as an example, Judge that above-mentioned target public good project within the preset whip-round period, is transferred to the public good fund of above-mentioned donations trusteeship party account, is The no procurement payment total value reached in the above-mentioned shopping list stated in the intelligence contract;If so, showing the target public good item Mesh meets preset whip-round completion condition;(for example project alreadys exceed and solicits contributions the period) if not, shows the target public good project Meet preset whip-round termination condition.
On the one hand, it if it is confirmed that the target public good project meets preset whip-round completion condition, can further call It states the donations stated in intelligent contract and executes logic, the donations object completed will be solicited contributions be transferred to and state in above-mentioned intelligence contract It is corresponding by donor with the target public good project.
In the present specification, by taking the whip-round object of above-mentioned target public good project is public welfare forestry as an example, if it is confirmed that the mesh Mark public good project meets preset whip-round completion condition, then the donations stated in above-mentioned intelligent contract can further be called to execute Logic, the public good fund that will solicit contributions completion are transferred to the article stated in above-mentioned intelligent contract by above-mentioned donations trusteeship party account and adopt Purchaser's account, and the shopping list stated in the intelligence contract is also sent to above-mentioned article buying side;And the article buying side The public good fund solicited contributions and completed can be used, public welfare forestry is purchased according to the shopping list, then by the public welfare forestry of buying Logistics transportation is to by donor;Alternatively, giving the public welfare forestry logistics transportation of buying towards providing the public good of service by donor Mechanism.
Wherein, above-mentioned article buying side, specifically can be the manufacturer of above-mentioned public welfare forestry;That is, above-mentioned by calling Donations processing logic, the public good fund that can will solicit contributions completion are directly transferred to above-mentioned intelligence by above-mentioned donations trusteeship party account and close The manufacturer for the public welfare forestry stated in about.
Due to transferring accounts public good fund to third-party buying side, adopted by third-party buying Fang Zaixiang manufacturer Purchase, the public still may can query buying side, and there are Tunnelings;Therefore, it is transferred accounts by will directly solicit contributions the public good fund completed To the manufacturer of public welfare forestry, can be purchased to avoid public good fund is transferred to incredible third party, so as to most Big degree gives up query of the public to public good project.
Certainly, in practical applications, if the public good fund of above-mentioned target public good project, confirming the target public good item When mesh meets preset whip-round completion condition, the donations stated in above-mentioned intelligent contract can further be called to execute logic, it will Solicit contributions the public good fund completed be transferred to stated in above-mentioned intelligent contract with by donor's account;Alternatively, being offered towards this Side provides service side's account of service.
For example, can be transferred accounts directly by the medical expense of whip-round for soliciting contributions medical expense to the sufferer of financial difficulties To the personal account of the sufferer;Alternatively, can also transfer accounts directly by the medical expense of whip-round and provide medical treatment clothes to towards the sufferer The account of the medical institutions of business.
On the other hand, if it is confirmed that the target public good project meets preset whip-round termination condition, (for example public good project is not Solicited contributions within the defined whip-round period and arrive enough public good funds), it can further call the tax stated in above-mentioned intelligent contract Rollback logic is given, the donations object completed will be solicited contributions and be retracted into corresponding donor respectively.
For example, the donations for donor record, can carry out depositing card on block chain.In turn, rollback link is being donated, It can be recorded based on the donations for depositing card on block chain, after being checked and write off to the public good fund that whip-round obtains by pen, whip-round is obtained Public good fund original donor is returned to by pen.
In this way, donor can utmostly be avoided when target public good project terminates for some reason Loss.
In the present specification, the case mechanism based on intelligent contract calls in intelligent contract in the transaction by initiating After executing logic, intelligent contract would generally trigger corresponding event, and the event that intelligent contract triggers is stored in block chain On;
For example, by taking ether mill as an example, the event of intelligent contract triggering, it will usually which write-in transaction (calls that of intelligent contract Transaction) execution journal (log), then by execution journal storage to the exchange block receipt (receipt) set In.The data tree uses MPT (Merkle Patricia Tree) tree, has recorded the exchange and owns within a block The receipt of transaction, and the hash value of the tree root of the receipt tree is recorded in the exchange in the area of block as receipt root In build.
And the node device in block chain, the thing that by intelligent contract is triggered of the monitor log on block chain can be passed through Part makes further event response to the event listened to.
Wherein, specific event response logic corresponding to the further event response made to the event listened to, In the present specification without being particularly limited to.
For example, the case mechanism based on intelligent contract, the thing that block chain can be written by monitoring intelligent contract in listener Part, further to be interacted with intelligent contract;For example, after certain event for listening to intelligent contract triggering, it can be into one It walks to intelligent contract and submits relevant parameter.Alternatively, the event that block chain can also be written by monitoring intelligent contract, Lai Jinyi Certain item of step triggering listener local runtime.
In the present specification, the event of above-mentioned intelligent contract triggering, can specifically include intelligent contract and contributes by contributor The donations object given is transferred to the donations processing completion event generated after above-mentioned donations trusteeship party;And intelligent contract will raise It contributes the donations object completed and is transferred to the donations execution completion event generated after donor.
In a kind of embodiment shown, if node device listens to the above-mentioned donations recorded on block chain and has handled At event, donations processing completion event can be responded, is generated and is corresponded to the donations of above-mentioned donor and record, and by the upper of generation Donations record is stated to be distributed to above-mentioned block chain and carry out depositing card;Wherein, above-mentioned donations record includes between donations object and donor Corresponding relationship;
That is, once by calling above-mentioned intelligent contract that the donations object that contributor donates successfully is transferred to above-mentioned donations After trusteeship party, can be immediately generated corresponding to the contributor donations record, and by the donations of generation record be distributed to it is above-mentioned Block chain carries out depositing card.
In a kind of embodiment shown, if node device listens to the above-mentioned donations recorded on block chain and has executed At event, the donations can be responded and execute completion event, above-mentioned target public good project is switched to whip-round completion status.
That is, once will solicit contributions the donations object completed by the above-mentioned intelligence contract of calling and be transferred to by donor, it can Above-mentioned target public good project is switched to whip-round completion status immediately.
In the present specification, if above-mentioned target public good project can not resist factor to need to terminate due to certain;For example, public good Article perhaps stops production procurement failure since raw manufacturer is out of stock or since price fluctuation causes the fund raised to be not enough to prop up Pay the expense of buying public welfare forestry, it has to terminate the situation of public good project;It can also be by the management of above-mentioned target public good project Side carrys out the above-mentioned target public good project of active termination;
In this case, above-mentioned target public good project can construct the termination transaction for the target public good project, and By the node device that is sent in block chain of donations transaction of building, come be invoked at disposed on block chain with the target public good item The corresponding intelligent contract of mesh.
And the node device in block chain, after receiving the transaction, the EVM of the node device can execute the transaction, and The common recognition mechanism carried between node device by block chain after reaching an agreement to the execution of the transaction, calls the intelligence to close The donations rollback logic stated in about will solicit contributions the donations object completed and be retracted into corresponding donor respectively.
Correspondingly, in this case, the event of intelligent contract triggering further includes corresponding to above-mentioned target public good project Termination event.The above-mentioned termination event that node device in block chain records on listening to block chain, can respond termination thing Above-mentioned target public good project is switched to project final state by part.
3) state-maintenance of public good project
In the present note, the status information generated for the links in above-mentioned target public good project, can be in area It carries out depositing card on block chain.The node device of block chain, can by monitor deposited on block chain card for the target public good project Execution feedback data, to track and safeguard the state of the target public good project.
Below using the whip-round object of above-mentioned target public good project as public good books, and the donations object of contributor's donations is public affairs It is illustrated for beneficial fund.
Under this public good scene, the corresponding project status of above-mentioned target public good project, may include solicit contributions completion status, Purchase completion status, logistics transportation state and project completion status etc..Correspondingly, deposited on block chain card for the target public good The execution feedback data of project may include that the procurement data for target public good project, logistics data and reception confirm data, Etc..
And the node device in block chain, can by monitor deposit on block chain card by above-mentioned target public good project The information of each side's publication is participated in, to complete corresponding project status switching.
Wherein, it should be noted that project status illustrated above is only schematical, in practical applications, this field Technical staff can be based on actual demand, flexibly be defined to the project status of above-mentioned target public good project;For example, can To be finely divided to some projects state therein on the basis of project status illustrated above;For example, above-mentioned logistics is transported Defeated state is further subdivided into " in transport " and states such as " transport are completed ", is no longer arranged one by one in the present specification It lifts.
In a kind of embodiment shown, shifted when the public good fund completed will be solicited contributions by above-mentioned donations trusteeship party account The purchase of books side's account (such as bibliogony quotient) stated into above-mentioned intelligent contract, and purchase of books side is provided using public good After gold completes the buying of public good books, the form that procurement data can be traded is distributed to block chain and carries out depositing card.
And the node device in block chain is deposited in listening to block chain and has demonstrate,proved buying number corresponding with above-mentioned public good books According to rear, buying completion status can be switched to immediately by above-mentioned target public good project by whip-round completion status.
In a kind of embodiment shown, when purchase of books side is by the public good books of buying, it is sent to logistics facility progress The logistics data of public good books can be distributed to block chain in the form of transaction and carry out depositing card by logistics transportation, the logistics facility.
And the node device in block chain is deposited in listening to block chain and has demonstrate,proved logistics number corresponding with above-mentioned public good books According to rear, logistics transportation state can be switched to immediately by above-mentioned target public good project by buying completion status.For example, the logistics Travel position specifically can be the state of " books delivery ".
In a kind of embodiment shown, after public good books are successfully sent to by donor by logistics facility, contributed The side of helping can also carry out reception confirmation to the public good books received, and relevant reception is confirmed data, be sent out in the form of transaction Cloth carries out depositing card to block chain.
And the node device in block chain is deposited to have demonstrate,proved in listening to block chain and be connect by donor to above-mentioned public good books After receiving confirmation message, project completion status can be switched to immediately by above-mentioned target public good project by logistics transportation state.Than Such as, the project completion status specifically can be the state of " books restocking ".
In the present specification, for donor, needle can be initiated by node device of the client into block chain Request is checked to the state of above-mentioned target public good project;Node device in block chain is being received to above-mentioned target public good project State is checked after request, can be responded the state and be checked request, and the current project status of the target public good project mark is returned To above-mentioned client, Xiang Shangshu donor is shown.
For example, realize when, in the details interface of above-mentioned target public good project, can provide one it is corresponding with the project Status tracking entrance;For example, the status tracking entrance can be the entrance option of one " executive plan and tracking ";Donor The entrance option can be triggered by the modes such as clicking on the client, the node device into block chain is initiated for should The state of target public good project checks request.
As shown in figure 3, the shape current when the target public good project that client receives the return of the node device in block chain When state, relevant item can be marked on the corresponding position of target public good project in public good project list as shown in Figure 3 Mesh state;For example, " whip-round of popular science category books " project shown in Fig. 3, is switched to state " in transport ";Shown in Fig. 3 " whip-round of history class books " project, is switched to state " in raising money ".
4) feedback mechanism of public good project
Due to the propulsion of traditional public good project, it is generally deficient of necessary feedback mechanism;Cause donor a certain in participation When public good project, usually can not timely and effectively it be fed back from the donations behavior of itself;Therefore, after caused by this situation Fruit is exactly that donor may be because the donations behavior of itself, there is no the return in emotion and in soul, just denies doing public good Meaning and value, gradually no longer join in and participate in public good project.
Based on this, in the present specification, the donation feedback mechanism by contributor to contributor can be introduced.
It in the present specification, specifically can also be with when the feedback information for the donations object donated by contributor for contributor Block chain is distributed in the form of transaction to carry out depositing card;
Wherein, the particular content for the feedback information for donating object donated by contributor for contributor, in this specification In without being particularly limited to;
In a kind of embodiment shown, it can specifically include by the feedback information that donor is directed to donations object following One of or a variety of combination shown:
Reception for donations object confirms data;
For the usage record information of donations object;
For the feedback information of donations object;
For the interaction feedback information of donor.
Still by taking above-mentioned donations object is public good books as an example, above-mentioned reception confirms data, can specifically include logistics machine Public good books are successfully sent to by after donor by structure, are generated when being carried out to the public good books received by donor and received and confirm Relevant information.
For example, in one implementation, by it is above-mentioned be also charity by donor for, can be on public good books Attaching rfid code, and the charity can dispose the intelligent bookshelf for being equipped with RFID scanner.When charity receives tax After the public good books given, public good books can be put into intelligent bookshelf and carry out public good books " restocking ";And intelligent bookshelf is scanning After the RFID code pasted on to the public good books for being put into intelligent bookshelf, the basic letter of the available public good books to " restocking " Breath, the essential information of the public good books of " restocking " that then will acquire confirm data as above-mentioned reception, in the form of transaction Block chain is distributed to carry out depositing card.
Above-mentioned usage record information can specifically include by donor when borrowing and giving back public good books, and generation is borrowed Read information;Wherein, above-mentioned to borrow information, it can specifically include the information of borrower, borrow duration, add up to borrow the letter such as number Breath.
For example, in one implementation, still by it is above-mentioned be also charity by donor for, can on public good books With attaching rfid code, and the charity can dispose the intelligent bookshelf for being equipped with RFID scanner.It is being borrowed when by donor When with giving back public good books, intelligent bookshelf can scan the RFID code on public good books, and Lai Shengcheng borrows information, then will generate Borrow information and be distributed to block chain in the form traded and carry out depositing card.
Above-mentioned feedback information can specifically include the reader of public good books, for the content feed of public good books; For example, being directed to the feedback content of public good books, the reading to public good books that reader is uploaded by client can specifically include After feel.
Above-mentioned interaction feedback information, can specifically include the reader of public good books, mutual with the donor of public good books Dynamic content;Wherein, the interaction content of reader and donor are in the present specification without being particularly limited to, in practical applications, Any form of interaction content can feed back to donor in the form of interactive message between reader and donor;For example, The reader of public good books thumbs up the message information of donor, the reader of public good books to donor or public good books Behavior or the interaction content of other forms etc..
In the present specification, the node device in block chain, can monitor deposited in block chain card by donor for contribute The feedback information of object is given, and in the feedback information for being directed to donations object for depositing card on listening to block chain, it can be further Determine donor corresponding with donations object.
For example, having demonstrate,proved tax corresponding with donations object due to also depositing in block chain in a kind of embodiment shown Record is given, and donates the corresponding relationship being had recorded between donations object and donor in record;It therefore, can be by being based on area Block chain deposits the above-mentioned corresponding relationship that records in the donations record of card, to further determine that out donor corresponding with donations object.
After determining donor corresponding with donations object, the node device in block chain can be based further on monitoring To feedback information generate corresponding welfare donations feedback message, then the welfare donations feedback message of generation is sent to really The above-mentioned donor made.
Wherein, the type of message of the welfare donations feedback message of generation, can be specific interior with the feedback information listened to Hold corresponding;For example, in practical applications, each feedback information can be directed to, a kind of corresponding welfare donations feedback is defined The type of message of message.
By taking above-mentioned donations object is public good books as an example, it is assumed that the feedback information listened to, for the public good figure for donations The reception of book confirms data, and the welfare donations feedback message generated at this time based on above-mentioned reception confirmation data specifically can be one Item reminds the public good books of its donations of donor, has successfully been sent to by the reminder message of donor;
For example, referring to Fig. 5, based on the welfare donations feedback message that above-mentioned reception confirmation data generate, specifically can be The reminder message of one " the books restocking that you donate ".
Assuming that the feedback information listened to uses note based on above-mentioned at this time for the usage record information for public good books The welfare donations feedback message that information generates is recorded, one is specifically can be and the public good books of its donations of donor is reminded to be borrowed Reminder message;
For example, referring to Fig. 6, based on the welfare donations feedback message that above-mentioned usage record information generates, specifically can be The reminder message of one " and someone is by means of your book ";Donor can enter to correspond to and be somebody's turn to do by triggering the reminder message Public good books borrow record details interface, borrow record check the public good books.
Assuming that the feedback information listened to is used instead based on above-mentioned at this time for the feedback information for public good books The welfare donations feedback message that feedforward information generates specifically can be one and prompt reader for the anti-of public good books to donor Present the reminder message of content.
For example, referring to Fig. 7, based on the welfare donations feedback message that above-mentioned feedback information generates, specifically can be The reminder message of one " book that you donate receives reaction to an article again ";Donor can be entered by triggering the reminder message Corresponding to the reaction to an article interface of the public good books, to check that reader is directed to the reaction to an article of the public good books.
Assuming that the feedback information listened to is fed back based on above-mentioned interaction at this time for the interaction feedback information for donor The welfare donations feedback message that information generates specifically can be the interaction reminder message of a carrying interaction content;
For example, above-mentioned interaction feedback information, which specifically can be reader, thumbs up behavior to public good books.In such case Under, based on the above-mentioned welfare donations feedback message for making to interact feedback information generation, specifically can be one, " book that you donate is received again To thumbing up " reminder message.
By introducing by contributor to the donation feedback mechanism of contributor, so that donor is participating in public good project When a certain public good project, it can timely and effectively be fed back from the donations behavior of itself;For donor, pass through this Kind donation feedback mechanism, can obtain the return in emotion and in soul, can indirectly promote contributor to public good project Participate in enthusiasm.
Corresponding with above method embodiment, present invention also provides the embodiments of device.
Corresponding with above method embodiment, this specification additionally provides a kind of public good donation device based on block chain Embodiment.The embodiment of the public good donation device based on block chain of this specification can be using on an electronic device.Device is real Applying example can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, make It is by the processor of electronic equipment where it by meter corresponding in nonvolatile memory for the device on a logical meaning Calculation machine program instruction is read into memory what operation was formed.For hardware view, as shown in figure 8, for this specification based on A kind of hardware structure diagram of electronic equipment where the public good donation device of block chain, in addition to processor shown in Fig. 8, memory, net Except network interface and nonvolatile memory, the electronic equipment in embodiment where device is generally according to the electronic equipment Actual functional capability can also include other hardware, repeat no more to this.
Fig. 9 is a kind of block diagram of public good donation device based on block chain shown in one exemplary embodiment of this specification.
Referring to FIG. 9, the public good donation device 90 based on block chain can be applied and be set in aforementioned electronics shown in Fig. 8 In standby, described device 90 includes:
Receiving module 901 receives the donations for target public good project that donor initiates and trades;The donations transaction packet Include capital endowment;
Processing module 902, in response to the donations trade, call publication on the block chain with the target public good The donations processing logic stated in the corresponding intelligent contract of project, the capital endowment is transferred in the intelligent contract and is stated Donations trusteeship party account;
Execution module 903 is further called when determining that the target public good project meets preset whip-round completion condition The donations stated in the intelligence contract execute logic, will solicit contributions the capital endowment completed and are shifted by donations trusteeship party's account The article buying side account corresponding with the target public good project stated into the intelligent contract, to be purchased by the article Side purchases public welfare forestry according to the acquisition inventory stated in the intelligent contract, and by the public welfare forestry logistics transportation of buying to quilt The related data of donor is published on block chain;Wherein, the shopping list includes that the target public good project is to be purchased Public welfare forestry, and unit price of procurement corresponding with the public welfare forestry.
In the present embodiment, described device 90 further include:
Rollback module 904 (is not shown) in Fig. 9, is determining that the target public good project meets preset whip-round termination condition When, the donations rollback logic stated in the intelligent contract is further called, completion will be solicited contributions in the donations trustship account Capital endowment is retracted into corresponding donor respectively.
In the present embodiment, described device 90 further include:
Judgment module 905 (is not shown) in Fig. 9, the tax stated in the capital endowment to be transferred to the intelligent contract After giving trusteeship party's account, the decision logic stated in the intelligent contract is further called, judges the target public good project Whether meet preset whip-round completion condition and solicits contributions termination condition.
In the present embodiment, described device 90 further include:
It monitors module 906 (being not shown in Fig. 9), monitors the intelligent contract event generated by the intelligent contract;
Card module 907 (being not shown in Fig. 9) is deposited, in response to listening to by the intelligent contract by the capital endowment It is transferred to the donations processing completion event generated after donations trusteeship party's account, generates the donations note for corresponding to the donor Record, and the donations of generation record is distributed to the block chain and carries out depositing card;
Switching module 908 (is not shown) in Fig. 9, will solicit contributions the tax completed by the intelligent contract in response to what is listened to It gives fund and the donations generated after article buying side account execution completion event is transferred to by donations trusteeship party's account, it will The target public good project is switched to whip-round completion status.
In the present embodiment, the whip-round completion condition includes: to be transferred to the donations support within the preset whip-round period The capital endowment of pipe side's account reaches the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the tax of donations trusteeship party's account within the preset whip-round period Give fund, the procurement payment total value in the not up to described shopping list.
In the present embodiment, the article buying side is the manufacturer of the public welfare forestry.
In the present embodiment, the monitoring module 906 further,
Monitor the execution feedback data execution feedback data for the target public good project that card is deposited in the block chain;
The switching module 908 further,
The execution feedback data in response to depositing card in the block chain that listens to executes feedback data, by the mesh Mark public good project is switched to corresponding project status.
In the present embodiment, the switching module 908 further,
In response to depositing the procurement data corresponding with the public welfare forestry of card in the block chain that listens to, by the mesh Mark public good project is switched to buying completion status;
In response to depositing the logistics data corresponding with the public welfare forestry of card in the block chain that listens to, by the mesh Mark public good project is switched to logistics transportation state;
In response to depositing the described true by reception of the donation object to the public welfare forestry of card in the block chain that listens to Recognize data, the target public good project is switched to project completion status.
In the present embodiment, described device 90 further include:
Return module 909 (is not shown) in Fig. 9, receives the state for target public good project that the donor initiates and looks into See request;Request is checked in response to the state received, and the current project status of the target public good project mark is returned To the donor.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media), Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.

Claims (20)

1. a kind of welfare donations method based on block chain, which comprises
The donations for target public good project that donor initiates are received to trade;The donations transaction includes capital endowment;
It trades in response to the donations, with the target public good project corresponding intelligence of the publication on the block chain is called to close The donations stated in about handle logic, and the capital endowment is transferred to the donations trusteeship party account stated in the intelligent contract Family;And
When determining that the target public good project meets preset whip-round completion condition, sound in the intelligent contract is further called Bright donations execute logic, will solicit contributions the capital endowment completed and are transferred in the intelligent contract by donations trusteeship party account The article buying side account corresponding with the target public good project of statement, to be closed by the article buying side according to the intelligence The acquisition inventory stated in about purchases public welfare forestry, and by the public welfare forestry logistics transportation of buying to by the related data of donor It is published on block chain;Wherein, the shopping list includes target public good project public welfare forestry to be purchased, and with institute State the corresponding unit price of procurement of public welfare forestry.
2. according to the method described in claim 1, the method also includes:
When determining that the target public good project meets preset whip-round termination condition, sound in the intelligent contract is further called The capital endowment that completion is solicited contributions in the donations trustship account is retracted into corresponding donation by bright donations rollback logic respectively Side.
3. according to the method described in claim 1, the method also includes:
After the donations trusteeship party account stated in the capital endowment to be transferred to the intelligent contract, institute is further called The decision logic stated in intelligent contract is stated, judges whether the target public good project meets preset whip-round completion condition and raise Contribute termination condition.
4. according to the method described in claim 1, the method also includes:
Monitor the intelligent contract event generated by the intelligent contract;
It is raw after the capital endowment to be transferred to donations trusteeship party account by the intelligent contract in response to what is listened to At donations handle completion event, generate correspond to the donor donations record, and by the donations of generation record send out Cloth to the block chain carries out depositing card;
The capital endowment completed will solicited contributions by donations trusteeship party's account turn by the intelligent contract in response to what is listened to It moves to the donations generated after article buying side account and executes completion event, the target public good project is switched to and has been solicited contributions At state.
5. according to the method described in claim 1, the whip-round completion condition includes: to be transferred within the preset whip-round period The capital endowment of donations trusteeship party's account, reaches the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the donations money of donations trusteeship party's account within the preset whip-round period Gold, the procurement payment total value in the not up to described shopping list.
6. according to the method described in claim 5, the article buying side is the manufacturer of the public welfare forestry.
7. according to the method described in claim 4, further include:
Monitor the execution feedback data execution feedback data for the target public good project that card is deposited in the block chain;
The execution feedback data in response to depositing card in the block chain that listens to executes feedback data, and the target is public Beneficial project is switched to corresponding project status.
8. according to the method described in claim 7, the execution in response to depositing card in the block chain that listens to is anti- It presents data and executes feedback data, the target public good project is switched to corresponding project status, comprising:
It is in response to depositing the procurement data corresponding with the public welfare forestry of card in the block chain that listens to, the target is public Beneficial project is switched to buying completion status;
It is in response to depositing the logistics data corresponding with the public welfare forestry of card in the block chain that listens to, the target is public Beneficial project is switched to logistics transportation state;
Number is confirmed to the reception of the public welfare forestry by donation object in response to depositing the described of card in the block chain that listens to According to the target public good project is switched to project completion status.
9. according to the method described in claim 8, further include:
It receives the state for target public good project that the donor initiates and checks request;
Request is checked in response to the state received, and the current project status of the target public good project mark is returned into institute State donor.
10. a kind of welfare donations device based on block chain, wherein deployed on the block chain corresponding with target public good project Intelligent contract;Shopping list is stated in the intelligence contract;The shopping list includes that the target public good project waits adopting The public welfare forestry of purchase, and unit price of procurement corresponding with the public welfare forestry;Described device includes:
Receiving module receives the donations for target public good project that donor initiates and trades;The donations transaction includes donations Fund;
Processing module, in response to the donations trade, call publication on the block chain with the target public good project pair The capital endowment, is transferred to the donations stated in the intelligent contract by the donations processing logic stated in the intelligent contract answered Trusteeship party's account;
Execution module further calls the intelligence when determining that the target public good project meets preset whip-round completion condition The donations that can be stated in contract execute logic, will solicit contributions described in the capital endowment completed is transferred to by donations trusteeship party account The article buying side account corresponding with the target public good project stated in intelligent contract, with by the article buying side according to The acquisition inventory buying public welfare forestry stated in the intelligence contract, and by the public welfare forestry logistics transportation of buying to by donor Related data be published on block chain;Wherein, the shopping list includes target public good project public good object to be purchased Product, and unit price of procurement corresponding with the public welfare forestry.
11. device according to claim 10, further includes:
Rollback module further calls the intelligence when determining that the target public good project meets preset whip-round termination condition The capital endowment that completion is solicited contributions in the donations trustship account is retracted into pair by the donations rollback logic that can be stated in contract respectively The donor answered.
12. device according to claim 10, described device further include:
Judgment module, after the donations trusteeship party account stated in the capital endowment to be transferred to the intelligent contract, into The one step decision logic stated in the intelligent contract, judges whether the target public good project meets preset solicited contributions At condition and solicit contributions termination condition.
13. device according to claim 10, described device further include:
Module is monitored, the intelligent contract event generated by the intelligent contract is monitored;
Card module is deposited, the capital endowment is being transferred to the donations trusteeship party by the intelligent contract in response to what is listened to The donations processing completion event generated after account generates and corresponds to the donations of the donor and record, and by the tax of generation It gives record and is distributed to the block chain and carry out depositing card;
Switching module will solicit contributions the capital endowment completed by the donations trustship by the intelligent contract in response to what is listened to Square account is transferred to the donations generated after article buying side account and executes completion event, and the target public good project is switched To solicit contributions completion status.
14. device according to claim 10, the whip-round completion condition includes: the transfer within the preset whip-round period To the capital endowment of donations trusteeship party's account, reach the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the donations money of donations trusteeship party's account within the preset whip-round period Gold, the procurement payment total value in the not up to described shopping list.
15. device according to claim 14, the article buying side is the manufacturer of the public welfare forestry.
16. device according to claim 13, the monitoring module further,
Monitor the execution feedback data execution feedback data for the target public good project that card is deposited in the block chain;
The switching module further,
The execution feedback data in response to depositing card in the block chain that listens to executes feedback data, and the target is public Beneficial project is switched to corresponding project status.
17. device according to claim 16, the switching module further,
It is in response to depositing the procurement data corresponding with the public welfare forestry of card in the block chain that listens to, the target is public Beneficial project is switched to buying completion status;
It is in response to depositing the logistics data corresponding with the public welfare forestry of card in the block chain that listens to, the target is public Beneficial project is switched to logistics transportation state;
Number is confirmed to the reception of the public welfare forestry by donation object in response to depositing the described of card in the block chain that listens to According to the target public good project is switched to project completion status.
18. device according to claim 17, described device further include:
Return module receives the state for target public good project that the donor initiates and checks request;In response to receiving The state check request, the current project status of the target public good project mark is returned into the donor.
19. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize side as claimed in any one of claims 1-9 wherein Method.
20. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor It is realized when execution such as the step of any one of claim 1-9 the method.
CN201910209361.XA 2019-03-19 2019-03-19 Public good based on block chain offers method and device, electronic equipment Pending CN109949194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209361.XA CN109949194A (en) 2019-03-19 2019-03-19 Public good based on block chain offers method and device, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910209361.XA CN109949194A (en) 2019-03-19 2019-03-19 Public good based on block chain offers method and device, electronic equipment

Publications (1)

Publication Number Publication Date
CN109949194A true CN109949194A (en) 2019-06-28

Family

ID=67010271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209361.XA Pending CN109949194A (en) 2019-03-19 2019-03-19 Public good based on block chain offers method and device, electronic equipment

Country Status (1)

Country Link
CN (1) CN109949194A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain
CN111045568A (en) * 2019-12-20 2020-04-21 腾讯科技(深圳)有限公司 Virtual article processing method, device, equipment and storage medium based on block chain
CN111767097A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method and device for calling intelligent contract, electronic equipment and storage medium
US10937096B2 (en) 2019-07-15 2021-03-02 Advanced New Technologies Co., Ltd. Transaction processing in a service blockchain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110137785A1 (en) * 2009-12-04 2011-06-09 Lutnick Howard W Multicomputer distributed processing of trading information
CN109360135A (en) * 2018-08-31 2019-02-19 平安科技(深圳)有限公司 Server, public good data processing method and storage medium based on block chain
CN109359975A (en) * 2018-08-31 2019-02-19 杭州复杂美科技有限公司 A kind of public good record system and its fund monitoring method, equipment and storage equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110137785A1 (en) * 2009-12-04 2011-06-09 Lutnick Howard W Multicomputer distributed processing of trading information
CN109360135A (en) * 2018-08-31 2019-02-19 平安科技(深圳)有限公司 Server, public good data processing method and storage medium based on block chain
CN109359975A (en) * 2018-08-31 2019-02-19 杭州复杂美科技有限公司 A kind of public good record system and its fund monitoring method, equipment and storage equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain
US10931440B2 (en) 2019-07-15 2021-02-23 Advanced New Technologies Co., Ltd. Transaction processing in a service blockchain
US10937096B2 (en) 2019-07-15 2021-03-02 Advanced New Technologies Co., Ltd. Transaction processing in a service blockchain
CN111045568A (en) * 2019-12-20 2020-04-21 腾讯科技(深圳)有限公司 Virtual article processing method, device, equipment and storage medium based on block chain
CN111767097A (en) * 2020-08-31 2020-10-13 支付宝(杭州)信息技术有限公司 Method and device for calling intelligent contract, electronic equipment and storage medium
CN111767097B (en) * 2020-08-31 2020-12-11 支付宝(杭州)信息技术有限公司 Method and device for calling intelligent contract, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10713564B2 (en) Architectures, systems and methods for program defined state system
Chen Blockchain tokens and the potential democratization of entrepreneurship and innovation
Lee et al. Emergence of FinTech and the LASIC Principles
Turban et al. Electronic commerce 2018: a managerial and social networks perspective
Ozcan et al. The market that never was: Turf wars and failed alliances in mobile payments
Suri Mobile money
Kazan et al. Disentangling digital platform competition: The case of UK mobile payment platforms
Larios-Hernández Blockchain entrepreneurship opportunity in the practices of the unbanked
JP6032617B2 (en) Credit providing system and method
Ledgerwood et al. The new microfinance handbook: A financial market system perspective
Garratt et al. Bitcoin 1, bitcoin 2,....: An experiment in privately issued outside monies
US10990946B2 (en) Open ticket payment handling with offline mode
US8701991B2 (en) System and method for preventing fraud by generating new prepaid gift accounts
US10243743B1 (en) Tokens or crypto currency using smart contracts and blockchains
van Riel et al. Consumer perceptions of service constellations: implications for service innovation
Au et al. The economics of mobile payments: Understanding stakeholder issues for an emerging financial technology application
Morgan et al. Theories of international trade, foreign direct investment and firm internationalization: a critique
Maurer et al. ‘Bridges to cash’: Channelling agency in mobile money
Weinman Cloudonomics: The business value of cloud computing
Clemons et al. The impact of information technology on the organization of economic activity: The “move to the middle” hypothesis
Burn et al. E-business strategies for virtual organizations
Bichler The future of e-markets: multidimensional market mechanisms
Lim Inter-consortia battles in mobile payments standardisation
Zachariadis et al. The API economy and digital transformation in financial services: The case of open banking
US20190130484A1 (en) Asset cards for tracking divisible assets in a distributed ledger

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co., Ltd

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co., Ltd

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right