CN110060189A - 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
CN110060189A
CN110060189A CN201910209339.5A CN201910209339A CN110060189A CN 110060189 A CN110060189 A CN 110060189A CN 201910209339 A CN201910209339 A CN 201910209339A CN 110060189 A CN110060189 A CN 110060189A
Authority
CN
China
Prior art keywords
donations
public good
project
public
intelligent contract
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
CN201910209339.5A
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
Advantageous 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 CN201910209339.5A priority Critical patent/CN110060189A/en
Publication of CN110060189A publication Critical patent/CN110060189A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

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;The donations transaction includes donations object;It trades in response to the donations, the donations object is transferred to the donations trusteeship party stated in the intelligent contract by the donations processing logic for calling publication to state in the intelligent contract corresponding with the target public good project on block chain;And, when determining that the target public good project meets preset whip-round completion condition, further call the donations stated in the intelligent contract to execute logic, will solicit contributions the donations object completed be transferred in the intelligence contract state it is corresponding by donor with the target public good project.

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:
The donations for target public good project that donor initiates are received to trade;The donations transaction includes donations object;
It trades in response to the donations, with the target public good project corresponding intelligence of the publication on block chain is called to close The donations stated in about handle logic, and the donations object is transferred to the donations trusteeship party stated in the intelligent contract;With 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 donations object completed be transferred to it is stating with the target in the intelligence contract Public good project is corresponding by donor.
Optionally, further includes:
When determining that the target public good project meets preset whip-round termination condition, the intelligent contract is further called The donations rollback logic of middle statement will solicit contributions the donations object completed and be retracted into corresponding donor respectively.
Optionally, the method also includes:
After the donations object is transferred to the donations trusteeship party stated in 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.
Optionally, the method also includes:
Monitor the intelligent contract event generated by the intelligent contract;
It is raw after the donations object to be transferred to the donations trusteeship party 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;
In response to listen to by the intelligent contract will solicit contributions the donations object completed be transferred to it is described by donor The donations generated afterwards execute completion event, and the target public good project is switched to whip-round completion status.
Optionally, the donations object is public good fund;The whip-round object of the target public good project is public welfare forestry;
The object that will donate is transferred to the donations trusteeship party stated in the intelligent contract, comprising:
The public good fund is transferred accounts the donations trusteeship party account stated into the intelligent contract;
It is described will solicit contributions the donations object completed be transferred to it is stating with the target public good project in the intelligence contract It is corresponding by donor, comprising:
By solicit contributions the public good fund completed be transferred to by donations trusteeship party's account stated in the intelligent contract with The corresponding article buying side account of the target public good project, it is public to be purchased by the article buying side using the public good fund Beneficial article, and the public welfare forestry logistics transportation of buying is extremely published on block chain by the related data of donor.
Optionally, the shopping list corresponding to the public welfare forestry has been further stated in the intelligent contract;Wherein, described to adopt Purchasing inventory includes public welfare forestry to be purchased, and unit price of procurement corresponding with the public welfare forestry;
The method also includes:
The shopping list stated in the intelligent contract is sent to the article buying side, by the article buying side Public welfare forestry is purchased according to the shopping list.
Optionally, the whip-round completion condition includes: to be transferred to donations trusteeship party account within the preset whip-round period The public good fund at family reaches the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the public affairs of donations trusteeship party's account within the preset whip-round period Beneficial 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 for the target public good project that card is deposited in the block chain;
In response to depositing the execution feedback data of card in the block chain that listens to, the target public good project is cut It is changed to corresponding project status.
Optionally, the execution feedback data in response to depositing card in the block chain that listens to, by the mesh Mark 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;
The reception of the public welfare forestry is confirmed by donor in response to depositing the described of card in the block chain that listens to The target public good project is switched to project completion status by data.
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.
Optionally, the method also includes:
Receive the project termination transaction for target public good project that the manager of the target public good project initiates;
It terminates and trades in response to the project, call the donations rollback logic stated in the intelligent contract, will solicit contributions At donations object be retracted into corresponding donor respectively.
This specification also proposes a kind of public good donation device based on block chain, comprising:
Receiving module receives the donations for target public good project that donor initiates and trades;The donations are traded Donate object;
Processing module, in response to the donations trade, call publication on block chain with the target public good project pair The donations object, is transferred to the donations stated in the intelligent contract by the donations processing logic stated in the intelligent contract answered Trusteeship party;And
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 donations object completed will be solicited contributions be transferred to and state in the intelligence contract It is corresponding by donor with the target public good project.
Optionally, further includes:
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 donations object completed will be solicited contributions and be retracted into corresponding donor respectively.
Optionally, described device further include:
Judgment module, after the donations object is transferred to the donations trusteeship party stated in 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.
Optionally, described device further include:
Module is monitored, the intelligent contract event generated by the intelligent contract is monitored;
Card module is deposited, the donations object is being transferred to the donations support by the intelligent contract in response to what is listened to The donations that Guan Fanghou is generated handle completion event, generate and correspond 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, in response to listen to by the intelligent contract will solicit contributions the donations object completed be transferred to it is described The donations generated after donor execute completion event, and the target public good project is switched to whip-round completion status.
Optionally, the donations object is public good fund;The whip-round object of the target public good project is public welfare forestry;
The processing module further,
The public good fund is transferred accounts the donations trusteeship party account stated into the intelligent contract;
The execution module further,
By solicit contributions the public good fund completed be transferred to by donations trusteeship party's account stated in the intelligent contract with The corresponding article buying side account of the target public good project, it is public to be purchased by the article buying side using the public good fund Beneficial article, and the public welfare forestry logistics transportation of buying is extremely published on block chain by the related data of donor.
Optionally, the shopping list corresponding to the public welfare forestry has been further stated in the intelligent contract;Wherein, described to adopt Purchasing inventory includes public welfare forestry to be purchased, and unit price of procurement corresponding with the public welfare forestry;
The execution module further,
The shopping list stated in the intelligent contract is sent to the article buying side, by the article buying side Public welfare forestry is purchased according to the shopping list.
Optionally, the whip-round completion condition includes: to be transferred to donations trusteeship party account within the preset whip-round period The public good fund at family reaches the procurement payment total value in the shopping list;
The whip-round termination condition includes: to be transferred to the public affairs of donations trusteeship party's account within the preset whip-round period Beneficial 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 for the target public good project that card is deposited in the block chain;
The switching module further,
In response to depositing the execution feedback data of card in the block chain that listens to, the target public good project is cut It is changed 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;
The reception of the public welfare forestry is confirmed by donor in response to depositing the described of card in the block chain that listens to The target public good project is switched to project completion status by data.
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.
Optionally, the receiving module further,
Receive the project termination transaction for target public good project that the manager of the target public good project initiates;
The rollback module further,
It terminates and trades in response to the project, call the donations rollback logic stated in the intelligent contract, will solicit contributions At donations object be retracted into corresponding donor respectively.
By above technical scheme, due to donor by be invoked at disposed on block chain it is corresponding with target public good project Intelligent contract, so that it may complete for target public good project donations processing and donations execute etc. operation;The fortune of public good project Battalion side and management platform no longer intervene the links such as donations processing and the donations execution of the target public good project;Therefore, it can be promoted The degree of belief of the transparency of public good project and the public 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, is stated at donations relevant to the public good in intelligent contract Logic is managed, and donations execute logic, the intelligent contract that exploitation is completed then is distributed to block chain and carries out intelligent contract deployment.
The management platform (such as trusteeship party of public good project) of public good project, can be by all portions in the form of intelligent contract The public good project of administration is pushed to the client of donor, is presented to donor in the form of bulleted list, so that donor It 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, by solicit contributions the donations object completed be transferred to stated in the intelligence contract with The target public good project is corresponding by donor.
By above technical scheme, due to donor by be invoked at disposed on block chain it is corresponding with target public good project Intelligent contract, so that it may complete for target public good project donations processing and donations execute etc. operation;The fortune of public good project Battalion side and management platform no longer intervene the links such as donations processing and the donations execution of the target public good project;Therefore, it can be promoted The degree of belief of the transparency of public good project and the public 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, comprising 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 object;
Step 204, it trades in response to the donations, calls publication corresponding with the target public good project on block chain Intelligent contract in the donations processing logic stated, the donations object is transferred to the donations support stated in the intelligent contract Guan Fang;
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, by solicit contributions the donations object completed be transferred to stated in the intelligence contract with The target public good project is corresponding by donor.
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 donations object of the whip-round object and contributor of public good project, To be public good fund;In such a scenario, the operator of public good project can use donations trustship account and contribute to manage contributor The public good fund given, and after whip-round, the public good fund in trustship account will be donated, transferred accounts to by contributor's account;Or Person provides the charity account of service towards contributor.
For another example, under another whip-round scene shown, the whip-round object of public good project can be public welfare forestry, and offer The donations object of people's donations can be public good fund.The operator of public good project can use the public good fund of contributor's donations The public welfare forestry solicited contributions is needed to purchase, 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 a kind of embodiment shown, if the whip-round object of public good project is public welfare forestry, and contributor is donated Donations object be public good fund;Under this public good scene, since the operator of public good project finally needs to utilize to solicit contributions The public good fund arrived, to purchase corresponding public welfare forestry;Therefore, the above-mentioned intelligent contract that the operator of public good project is developed In, it can also include article buying side and the shopping list of public welfare forestry of statement.It wherein, can be in the shopping list Including public welfare forestry to be purchased, 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 a kind of embodiment shown, by taking the whip-round object of above-mentioned target public good project is public welfare forestry as an example, such as Fruit confirms that the target public good project meets preset whip-round completion condition, then can further call and state in above-mentioned intelligent contract Donations execute logic, the public good fund completed will be solicited contributions, sound in above-mentioned intelligent contract is transferred to by above-mentioned donations trusteeship party account Bright article buying side account, and the shopping list stated in the intelligence contract is also sent to above-mentioned article buying side;And it is somebody's turn to do The public good fund solicited contributions and completed can be used in article buying side, and public welfare forestry is purchased according to the shopping list, then will buying Public welfare forestry logistics transportation to by donor;Alternatively, giving the public welfare forestry logistics transportation of buying towards being provided by donor The charity of service.
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, the ginseng by above-mentioned target public good project of card can be deposited on block chain by monitoring The information issued with each side, 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, comprising:
Receiving module 901 receives the donations for target public good project that donor initiates and trades;The donations transaction packet Include donations object;
Processing module 902, in response to the donations trade, call publication on block chain with the target public good project The donations object, is transferred to the tax stated in the intelligent contract by the donations processing logic stated in corresponding intelligence contract Give trusteeship party;And
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, and the donations object for soliciting contributions completion is transferred in the intelligent contract and is stated It is corresponding by donor with the target public good project.
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, the donations object completed will be solicited contributions and be retracted into respectively Corresponding donor.
In the present embodiment, described device 90 further include:
Judgment module 905 (is not shown) in Fig. 9, and the donations object is being transferred to the tax stated in the intelligent contract After giving trusteeship party, the decision logic stated in the intelligent contract is further called, whether judges the target public good project 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 donations object It is transferred to the donations processing completion event generated after the donations trusteeship party, generates the donations record for corresponding to the donor, 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 object and is transferred to the donations execution completion event generated after donor, the target public good project is switched to whip-round Completion status.
In the present embodiment, the donations object is public good fund;The whip-round object of the target public good project is public good Article;
The processing module 902 further,
The public good fund is transferred accounts the donations trusteeship party account stated into the intelligent contract;
The execution module 903 further,
By solicit contributions the public good fund completed be transferred to by donations trusteeship party's account stated in the intelligent contract with The corresponding article buying side account of the target public good project, it is public to be purchased by the article buying side using the public good fund Beneficial article, and the public welfare forestry logistics transportation of buying is extremely published on block chain by the related data of donor.
In the present embodiment, the shopping list corresponding to the public welfare forestry has been further stated in the intelligent contract;Wherein, The shopping list includes public welfare forestry to be purchased, and unit price of procurement corresponding with the public welfare forestry;
The execution module 903 further,
The shopping list stated in the intelligent contract is sent to the article buying side, by the article buying side Public welfare forestry is purchased according to the shopping list.
In the present embodiment, the whip-round completion condition includes: to be transferred to the donations support within the preset whip-round period The public good fund 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 public affairs of donations trusteeship party's account within the preset whip-round period Beneficial 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 for the target public good project that card is deposited in the block chain;
The switching module 908 further,
In response to depositing the execution feedback data of card in the block chain that listens to, the target public good project is cut It is changed 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;
The reception of the public welfare forestry is confirmed by donor in response to depositing the described of card in the block chain that listens to The target public good project is switched to project completion status by data.
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.
In the present embodiment, the receiving module 901 further,
Receive the project termination transaction for target public good project that the manager of the target public good project initiates;
The rollback module 904 further,
It terminates and trades in response to the project, call the donations rollback logic stated in the intelligent contract, will solicit contributions At donations object be retracted into corresponding donor respectively.
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 (26)

1. a kind of public good based on block chain offers method, comprising:
The donations for target public good project that donor initiates are received to trade;The donations transaction includes donations object;
It trades in response to the donations, calls publication in the intelligent contract corresponding with the target public good project on block chain The donations of statement handle logic, and the donations object is transferred to the donations trusteeship party stated in the intelligent contract;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 donations object completed be transferred to it is stating with the target public good in the intelligence contract Project is corresponding by donor.
2. according to the method described in claim 1, further include:
When determining that the target public good project meets preset whip-round termination condition, sound in the intelligent contract is further called Bright donations rollback logic will solicit contributions the donations object completed and be retracted into corresponding donor respectively.
3. according to the method described in claim 1, the method also includes:
After the donations object is transferred to the donations trusteeship party stated in the intelligent contract, the intelligence is further called The decision logic stated in energy contract, judges whether the target public good project meets preset whip-round completion condition and solicit contributions eventually Only 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 generated after the donations object is transferred to the donations trusteeship party in response to listening to by the intelligent contract Donations processing completion event generates the donations record for corresponding to the donor, and the donations of generation record is distributed to The block chain carries out depositing card;
In response to listen to by the intelligent contract will solicit contributions the donations object completed be transferred to it is described by donor after it is raw At donations execute completion event, the target public good project is switched to whip-round completion status.
5. according to the method described in claim 1, the donations object is public good fund;The whip-round pair of the target public good project As for public welfare forestry;
The object that will donate is transferred to the donations trusteeship party stated in the intelligent contract, comprising:
The public good fund is transferred accounts the donations trusteeship party account stated into the intelligent contract;
It is described by solicit contributions complete donations object be transferred to it is described intelligence contract in state it is corresponding with the target public good project By donor, comprising:
By solicit contributions the public good fund completed be transferred to by donations trusteeship party's account stated in the intelligent contract with it is described The corresponding article buying side account of target public good project, to purchase public good object using the public good fund by the article buying side Product, and the public welfare forestry logistics transportation of buying is extremely published on block chain by the related data of donor.
6. according to the method described in claim 5, the buying corresponding to the public welfare forestry has been further stated in the intelligence contract Inventory;Wherein, the shopping list includes public welfare forestry to be purchased, and unit price of procurement corresponding with the public welfare forestry;
The method also includes:
The shopping list stated in the intelligent contract is sent to the article buying side, with by the article buying side according to The shopping list purchases public welfare forestry.
7. according to the method described in claim 6, the whip-round completion condition includes: to be transferred within the preset whip-round period The public good fund 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 public good 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.
8. according to the method described in claim 6, the article buying side is the manufacturer of the public welfare forestry.
9. according to the method described in claim 4, further include:
Monitor the execution feedback data for the target public good project that card is deposited in the block chain;
In response to depositing the execution feedback data of card in the block chain that listens to, the target public good project is switched to Corresponding project status.
10. according to the method described in claim 9, the execution in response to depositing card in the block chain that listens to is anti- Data are presented, 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;
Data are confirmed to the reception of the public welfare forestry by donor in response to depositing the described of card in the block chain that listens to, The target public good project is switched to project completion status.
11. according to the method described in claim 10, 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.
12. according to the method described in claim 2, the method also includes:
Receive the project termination transaction for target public good project that the manager of the target public good project initiates;
It terminates and trades in response to the project, call the donations rollback logic stated in the intelligent contract, whip-round is completed Donations object is retracted into corresponding donor respectively.
13. a kind of public good based on block chain offers device, comprising:
Receiving module receives the donations for target public good project that donor initiates and trades;The donations transaction includes donations Object;
Processing module is traded in response to the donations, calls publication corresponding with the target public good project on block chain The donations object, is transferred to the donations trustship stated in the intelligent contract by the donations processing logic stated in intelligent contract Side;And
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, by solicit contributions the donations object completed be transferred to stated in the intelligence contract with institute It is corresponding by donor to state target public good project.
14. device according to claim 13, described device further include:
Rollback module further calls the intelligence when determining that the target public good project meets preset whip-round termination condition The donations rollback logic stated in energy contract will solicit contributions the donations object completed and be retracted into corresponding donor respectively.
15. device according to claim 13, described device further include:
Judgment module, after the donations object is transferred to the donations trusteeship party stated in the intelligent contract, further The decision logic stated in the intelligent contract is called, judges whether the target public good project meets preset whip-round and complete item Part and whip-round termination condition.
16. device according to claim 13, described device further include:
Module is monitored, the intelligent contract event generated by the intelligent contract is monitored;
Card module is deposited, the donations object 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 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 donations object for soliciting contributions completion is being transferred to described contributed by the intelligent contract in response to what is listened to by switching module The donations generated behind the side of helping execute completion event, and the target public good project is switched to whip-round completion status.
17. device according to claim 13, the donations object is public good fund;The whip-round of the target public good project Object is public welfare forestry;
The processing module further,
The public good fund is transferred accounts the donations trusteeship party account stated into the intelligent contract;
The execution module further,
By solicit contributions the public good fund completed be transferred to by donations trusteeship party's account stated in the intelligent contract with it is described The corresponding article buying side account of target public good project, to purchase public good object using the public good fund by the article buying side Product, and the public welfare forestry logistics transportation of buying is extremely published on block chain by the related data of donor.
18. device according to claim 17, adopting corresponding to the public welfare forestry has been further stated in the intelligence contract Purchase inventory;Wherein, the shopping list includes public welfare forestry to be purchased, and buying order corresponding with the public welfare forestry Valence;
The execution module further,
The shopping list stated in the intelligent contract is sent to the article buying side, with by the article buying side according to The shopping list purchases public welfare forestry.
19. device according to claim 18, the whip-round completion condition includes: the transfer within the preset whip-round period To the public good fund 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 public good 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.
20. device according to claim 18, the article buying side is the manufacturer of the public welfare forestry.
21. device according to claim 16, the monitoring module further,
Monitor the execution feedback data for the target public good project that card is deposited in the block chain;
The switching module further,
In response to depositing the execution feedback data of card in the block chain that listens to, the target public good project is switched to Corresponding project status.
22. according to the method for claim 21, 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;
Data are confirmed to the reception of the public welfare forestry by donor in response to depositing the described of card in the block chain that listens to, The target public good project is switched to project completion status.
23. device according to claim 22, 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.
24. device according to claim 14, the receiving module further,
Receive the project termination transaction for target public good project that the manager of the target public good project initiates;
The rollback module further,
It terminates and trades in response to the project, call the donations rollback logic stated in the intelligent contract, whip-round is completed Donations object is retracted into corresponding donor respectively.
25. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize such as side of any of claims 1-12 Method.
26. 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-12 the method.
CN201910209339.5A 2019-03-19 2019-03-19 Public good based on block chain offers method and device, electronic equipment Pending CN110060189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209339.5A CN110060189A (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
CN201910209339.5A CN110060189A (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
CN110060189A true CN110060189A (en) 2019-07-26

Family

ID=67317227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209339.5A Pending CN110060189A (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) CN110060189A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473081A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Based on the electronic bill method of charging out and device of block chain, electronic equipment
CN111539688A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Information management method and device based on block chain
WO2021042811A1 (en) * 2019-09-05 2021-03-11 创新先进技术有限公司 Blockchain-based asset screening method, apparatus, and electronic device
WO2021042809A1 (en) * 2019-09-05 2021-03-11 创新先进技术有限公司 Asset purchase method and apparatus based on blockchain, and electronic device
US10963854B2 (en) 2019-07-31 2021-03-30 Advanced New Technologies Co., Ltd. Blockchain-based electronic bill reimbursement method, apparatus, and electronic device
EP3961453A1 (en) * 2020-08-31 2022-03-02 Alipay (Hangzhou) Information Technology Co., Ltd. Method and apparatus for invoking smart contract, electronic device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182585A (en) * 2018-01-25 2018-06-19 北京正众信源传媒科技有限公司 New retail anti-counterfeiting system and method based on block chain technology
CN108520463A (en) * 2018-04-16 2018-09-11 安徽中科智链信息科技有限公司 A kind of data order transaction system and method based on block chain technology
CN109190400A (en) * 2018-09-06 2019-01-11 郑州云海信息技术有限公司 A kind of public good management method, platform, terminal and storage medium based on block chain
CN109242477A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Charitable donation method, system and storage medium based on block chain
CN109360135A (en) * 2018-08-31 2019-02-19 平安科技(深圳)有限公司 Server, public good data processing method and storage medium based on block chain
CN109472158A (en) * 2018-11-14 2019-03-15 福建酷酷电子商务有限公司 Data processing method and device based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182585A (en) * 2018-01-25 2018-06-19 北京正众信源传媒科技有限公司 New retail anti-counterfeiting system and method based on block chain technology
CN108520463A (en) * 2018-04-16 2018-09-11 安徽中科智链信息科技有限公司 A kind of data order transaction system and method based on block chain technology
CN109242477A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 Charitable donation method, system and storage medium based on block chain
CN109360135A (en) * 2018-08-31 2019-02-19 平安科技(深圳)有限公司 Server, public good data processing method and storage medium based on block chain
CN109190400A (en) * 2018-09-06 2019-01-11 郑州云海信息技术有限公司 A kind of public good management method, platform, terminal and storage medium based on block chain
CN109472158A (en) * 2018-11-14 2019-03-15 福建酷酷电子商务有限公司 Data processing method and device based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李奕 等: "区块链在社会公益领域的应用实践", 《信息技术与标准化》 *
李琪 等: "基于区块链技术的慈善应用模式与平台", 《计算机应用》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110473081A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Based on the electronic bill method of charging out and device of block chain, electronic equipment
US10963854B2 (en) 2019-07-31 2021-03-30 Advanced New Technologies Co., Ltd. Blockchain-based electronic bill reimbursement method, apparatus, and electronic device
WO2021042811A1 (en) * 2019-09-05 2021-03-11 创新先进技术有限公司 Blockchain-based asset screening method, apparatus, and electronic device
WO2021042809A1 (en) * 2019-09-05 2021-03-11 创新先进技术有限公司 Asset purchase method and apparatus based on blockchain, and electronic device
CN111539688A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Information management method and device based on block chain
EP3961453A1 (en) * 2020-08-31 2022-03-02 Alipay (Hangzhou) Information Technology Co., Ltd. Method and apparatus for invoking smart contract, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN109949194A (en) Public good based on block chain offers method and device, electronic equipment
CN110009495A (en) Based on the welfare donations method and device of block chain, electronic equipment, storage medium
CN110020979A (en) Public good based on block chain offers method and device, electronic equipment
CN110060189A (en) Public good based on block chain offers method and device, electronic equipment
Singh et al. Blockchain technology for decentralized autonomous organizations
CN110706114B (en) Block chain-based default asset processing method and device and electronic equipment
CN109993657A (en) Public welfare forestry based on block chain offers method and device, electronic equipment
TWI707290B (en) Block chain-based business processing method and device, and electronic equipment
US20230186255A1 (en) Methods for exchanging and evaluating virtual currency
CN110765200B (en) Asset procurement method and device based on block chain and electronic equipment
CN109872137A (en) A kind of electronic trade method, node and storage medium
WO2021017437A1 (en) Blockchain-based note verification method and apparatus, electronic device, and storage medium
CN108335179A (en) Staple commodities method of commerce, apparatus and system
CN110738566A (en) asset screening method and device based on block chain and electronic equipment
CN111383117A (en) Asset management method and device based on block chain and electronic equipment
CN112767163B (en) Block chain-based digital commodity transaction method and device
CN110020936A (en) Assets management method and device, electronic equipment based on block chain
CN111383119A (en) Asset management method and device based on block chain and electronic equipment
WO2021042810A1 (en) Asset settlement method and apparatus employing blockchain, and electronic device
CN111383122A (en) Asset management method and device based on block chain and electronic equipment
CN111553695B (en) Cross-region payment method and device and electronic equipment
CN111383120A (en) Asset management method and device based on block chain and electronic equipment
CN111383118A (en) Asset management method and device based on block chain and electronic equipment
CN116739767A (en) Method and system for implementing E-commerce transaction by using decentralised intelligent contract
Hardy et al. Regional resilience and global production networks in China: An open political economy perspective

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40011031

Country of ref document: HK

TA01 Transfer of patent application right
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.