CN110413697A - A kind of public good goodness-sum date storage method and system based on block chain - Google Patents

A kind of public good goodness-sum date storage method and system based on block chain Download PDF

Info

Publication number
CN110413697A
CN110413697A CN201910711754.0A CN201910711754A CN110413697A CN 110413697 A CN110413697 A CN 110413697A CN 201910711754 A CN201910711754 A CN 201910711754A CN 110413697 A CN110413697 A CN 110413697A
Authority
CN
China
Prior art keywords
block chain
goodness
sum
node
charity
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.)
Granted
Application number
CN201910711754.0A
Other languages
Chinese (zh)
Other versions
CN110413697B (en
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.)
Foshan Shunde Parallel Internet Information Technology Co Ltd
Original Assignee
Foshan Shunde Parallel Internet Information Technology Co 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 Foshan Shunde Parallel Internet Information Technology Co Ltd filed Critical Foshan Shunde Parallel Internet Information Technology Co Ltd
Priority to CN201910711754.0A priority Critical patent/CN110413697B/en
Publication of CN110413697A publication Critical patent/CN110413697A/en
Application granted granted Critical
Publication of CN110413697B publication Critical patent/CN110413697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a kind of public good goodness-sum date storage methods and system based on block chain.The storage method includes: to build block chain node for each charity of current public good alliance, and set up block chain network;Each charity will obtain block chain private key after the essential information cochain of the charity;And goodness-sum block chain contract address is obtained after the goodness-sum information cochain for every goodness-sum for accepting the charity;The two dimensional code for carrying the corresponding goodness-sum block chain contract address of this goodness-sum is generated for every goodness-sum;Cochain after the goodness-sum circulation data that each charity handles it using its block chain private key are signed, while the goodness-sum circulation data after signature being recorded on the goodness-sum block chain contract address in the corresponding two dimensional code of this goodness-sum;Wherein, the copy for the block chain data that all block chain nodes in each block chain node storage current block chain network respectively record.Public good industry transparency is improved while the present invention can allow donor and the public to trust.

Description

A kind of public good goodness-sum date storage method and system based on block chain
Technical field
The present invention relates to block chain technical fields, and in particular to a kind of public good goodness-sum date storage method based on block chain And system.
Background technique
Currently, public good charity organization is using conventional center database purchase, this storage to the record of goodness-sum data Mode will cause data silo, without effectively common recognition, credit system is unsound, audit cost is high, data tampering possibility height etc. is asked Topic, these problems cannot trust on donor to public good charity organization.
Block chain is a kind of a kind of chain type number for being sequentially in time combined into data block in such a way that sequence is connected According to structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Block chain technology is to utilize block Linked data structure knows together algorithm with storing data, using distributed node and generates and more new data, utilize password to verify Mode guarantees the safety of data transmission and access, programs and grasp using the intelligent contract being made of automatized script code Make one kind of data completely new distributed basis framework and calculation.
Goodness-sum circulation process total is obtained according to being easy to be tampered, be difficult to trace, contribute money in order to be effectively improved public good charity organization People and the low problem of public trust degree, are compeled using the research and development that block chain technology stores public good goodness-sum data in eyebrow Eyelash.
Summary of the invention
For the defects in the prior art, the present invention provide a kind of public good goodness-sum date storage method based on block chain and System is easy to be tampered, is difficult to trace, contributor and public trust to solve charity in the data of goodness-sum circulation process The low problem of degree.
On the one hand, the storage method the following steps are included:
Block chain node is built for each charity of current public good alliance, and sets up block chain network;Wherein, block Block chain node in chain network, which is divided into, initiates node and multiple participation nodes, and each participation node needs when block chain network is added Other block chain nodes in current block chain network are wanted to be verified;
Each charity obtains after the essential information of the charity to be uploaded to the block chain node of the charity Block chain private key;And the goodness-sum information for every goodness-sum that the charity is accepted is uploaded to the block chain link of the charity Goodness-sum block chain contract address is obtained after point;
The two dimensional code for carrying the corresponding goodness-sum block chain contract address of this goodness-sum is generated for every goodness-sum;
The goodness-sum circulation data that each charity handles the charity using the block chain private key of the charity It is uploaded to the block chain node of the charity after being signed, while the pen is recorded in the goodness-sum circulation data after signature and is apt to On goodness-sum block chain contract address in the corresponding two dimensional code of money;
Wherein, the block that all block chain nodes in each block chain node storage current block chain network respectively record The copy of chain data.
Preferably, block chain network is set up by following steps:
Each charity of current public good alliance obtains down the block chain card of the block chain node of the charity online Book;
It initiates node and generates root zone block chain certificate, form initial block chain network;
It is raw to initiate node when block chain network is added in the block chain certificate request obtained under by line for each node that participates in At the copy of the block chain certificate of the participation node, and by the copies synchronized of the block chain certificate of the participation node to block link network Network;Other block chain nodes separately verify the copy of the block chain certificate of the participation node and the block chain certificate of the participation node It is whether consistent;If other block chain nodes are verified, allow the participation node that block chain network is added;If other blocks Chain node is not verified, then rejects the participation node.
Preferably, block chain node to be verified is synchronized belonging to the block chain node by following steps to block chain network The essential information of charity:
It is in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network The no copy having with the consistent block chain certificate of block chain certificate of block chain node to be verified;
If each block chain node in current block chain network is verified, allow block chain node to be verified same The essential information of charity belonging to the block chain node is walked to block chain network;
If each block chain node in current block chain network is not verified, forbid block chain node to be verified same The essential information of charity belonging to the block chain node is walked to block chain network.
Preferably, block chain node to be verified is synchronized belonging to the block chain node by following steps to block chain network The goodness-sum information for every goodness-sum that charity is accepted:
It is in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network The no copy having with the consistent block chain certificate of block chain certificate of block chain node to be verified;
If each block chain node in current block chain network is verified, allow block chain node to be verified same The goodness-sum information of every goodness-sum that charity belonging to the block chain node is accepted is walked to block chain network;
If each block chain node in current block chain network is not verified, forbid block chain node to be verified same The goodness-sum information of every goodness-sum that charity belonging to the block chain node is accepted is walked to block chain network.
Preferably, after block chain node to be verified synchronizes block chain node signature to block chain network by following steps Goodness-sum circulate data:
It is in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network The no copy having with the consistent block chain certificate of block chain certificate of block chain node to be verified;
If each block chain node in current block chain network is verified, each of current block chain network Whether have in the copy of each goodness-sum information of its storage of block chain node verification and is apt to after block chain node to be verified signature The copy for the consistent goodness-sum information of goodness-sum information that money circulation data link arrives;If each block chain in current block chain network Node is verified, then the goodness-sum circulation data after allowing block chain node to be verified to synchronize block chain node signature to area Block chain network;If each block chain node in current block chain network is not verified, forbid block chain node to be verified The goodness-sum circulation data after the block chain node is signed are synchronized to block chain network;
If each block chain node in current block chain network is not verified, forbid block chain node to be verified same The goodness-sum circulation data after the block chain node is signed are walked to block chain network.
Preferably, verify whether block chain data are tampered by following steps:
If the block chain data that the either block chain node in current block chain network stores are tampered, after distorting Block chain data are synchronized to block chain network;
Whether have in the copy of the block chain data of its storage of each block chain node verification in current block chain network With the copy of the consistent block chain data of block chain data after the distorting of block chain node to be verified;
If the verification result of each block chain node in current block chain network is inconsistent, it is determined that block to be verified Block chain data after the distorting of chain node have been tampered, and delete the block chain data after this is distorted.
Preferably, further comprising the steps of: to trace goodness-sum block chain contract address in the two dimensional code by scanning the two-dimensional code Goodness-sum information and goodness-sum the circulation data for this goodness-sum being linked to.
On the other hand, the storage system includes:
It is multi-party to participate in module, for building block chain node for each charity of current public good alliance, and set up area Block chain network;Wherein, the block chain node in block chain network, which is divided into, initiates node and multiple participation nodes, each participation node Other block chain nodes in current block chain network are needed to be verified when block chain network is added;
Data security module is connected with the multi-party participation module, is uploaded to the public affairs for receiving each charity The backward charity of the essential information of the charity of the block chain node of beneficial mechanism returns to block chain private key;And it receives After the goodness-sum information for every goodness-sum that the charity that the charity is uploaded to the block chain node of the charity is accepted Goodness-sum block chain contract address is returned to the charity;
Two-dimensional code generation module is connected with the data security module, kind for carrying the pen for every goodness-sum generation The two dimensional code of the corresponding goodness-sum block chain contract address of money;
Data recordin module is connected with the data security module and two-dimensional code generation module respectively, every for receiving The charity that a charity is uploaded to the block chain node of the charity utilizes the block chain private key of the charity Goodness-sum circulation data after the signature obtained after signing to the goodness-sum circulation data that the charity is handled, while will signature Goodness-sum circulation data afterwards are recorded on the goodness-sum block chain contract address in the corresponding two dimensional code of this goodness-sum;
Wherein, the block that all block chain nodes in each block chain node storage current block chain network respectively record The copy of chain data.
It preferably, further include authentication module, the authentication module includes:
The block chain data of synchronization unit, the either block chain node storage being used in current block chain network are usurped When changing, the block chain data after distorting are synchronized to block chain network;
Authentication unit is used to verify the block chain data of each block chain node storage in current block chain network Whether copy with block chain data consistent block chain data the distorting of to be verified block chain node after is had in copy;
Determination unit, it is inconsistent for being used for the verification result of each block chain node in current block chain network When, the block chain data after determining the distorting of block chain node to be verified have been tampered, and delete the block chain number after this is distorted According to.
Preferably, further includes: module of tracing to the source is used to that the two dimensional code to be decrypted, to trace in the two dimensional code Goodness-sum information and goodness-sum the circulation data for this goodness-sum that goodness-sum block chain contract address is linked to.
The beneficial effects of the present invention are embodied in: the present invention according to the block chain link of each charity of current public good alliance Point sets up block chain network, and each block chain node in block chain network is safeguarded the copy of a block chain data jointly, made The multi-party charity of current public good alliance participates in record public good goodness-sum data jointly, and donor and the public is allowed to mention while trusting High public good industry transparency.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element Or part is generally identified by similar appended drawing reference.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 is the flow chart of the public good goodness-sum date storage method based on block chain of the embodiment of the present invention one;
Fig. 2 is that each charity of the embodiment of the present invention one forms the schematic diagram of block chain network;
Fig. 3 is the goodness-sum fund of the embodiment of the present invention one in each link circulation schematic diagram of public good industry;
Fig. 4 is the overall schematic that the public good alliance of the embodiment of the present invention one participates in many ways;
Fig. 5 is the composition schematic diagram of the public good goodness-sum data-storage system based on block chain of the embodiment of the present invention two.
Specific embodiment
It is described in detail below in conjunction with embodiment of the attached drawing to technical solution of the present invention.Following embodiment is only used for Clearly illustrate technical solution of the present invention, therefore be only used as example, and cannot be used as a limitation and limit protection model of the invention It encloses.
It should be noted that unless otherwise indicated, technical term or scientific term used in this application should be this hair The ordinary meaning that bright one of ordinary skill in the art are understood.
Embodiment one
Fig. 1 is the flow chart of the public good goodness-sum date storage method based on block chain of the embodiment of the present invention one.Such as Fig. 1 institute Show, mainly includes the following steps that S1 to S4.
In step sl, block chain node is built for each charity of current public good alliance, and sets up block link network Network.Wherein, the block chain node in block chain network, which is divided into, initiates node and multiple participation nodes, and area is added in each participation node Other block chain nodes in current block chain network are needed to be verified when block chain network.
As shown in Fig. 2, public good alliance includes charitable federation, China, charitable supervision department, the network platform and each charitable Five charities such as tissue, each charity safeguard a block chain node.Five block chain nodes are built in network layer, Form a complete block chain network.Each block chain node corresponds to the data block of accumulation layer, will count sequentially in time It is combined into block chain in such a way that sequence is connected according to block, is used to memory block chain data.
In specific implementation, each charity in public good alliance obtains down the block chain node of the charity online Block chain certificate, which represents the authority identity of the charity.It initiates node and generates root zone block chain certificate, shape At initial block chain network.Each block chain certificate request addition block chain network for participating in node and being obtained under through line When, the copy that node generates the block chain certificate of the participation node is initiated, and by the copy of the block chain certificate of the participation node It is synchronized to block chain network.Other block chain nodes separately verify the copy and the participation section of the block chain certificate of the participation node Whether the block chain certificate of point is consistent.If other block chain nodes are verified, allow the participation node that block chain is added Network.If other block chain nodes are not verified, the participation node is rejected.
In step s 2, the essential information of the charity is uploaded to the block chain of the charity by each charity Block chain private key is obtained after node;And the goodness-sum information for every goodness-sum that the charity is accepted is uploaded to the charity Block chain node after obtain goodness-sum block chain contract address.
Specifically, by the essential information cochain of charity, the encrypted characters for being specific to current charity are obtained String, i.e. block chain private key, then synchronize to block chain network.The block chain private key of each charity by the charity voluntarily Keeping, this block chain private key represent identity of the charity in public good alliance.
Block chain node to be verified synchronizes public good machine belonging to the block chain node to block chain network by following steps The essential information of structure: the 1. pair of each block chain certificate of its storage of each block chain node verification in current block chain network Whether copy with the block chain certificate consistent block chain certificate of to be verified block chain node is had in this;2. if current block chain Each block chain node in network is verified, then block chain node to be verified is allowed to synchronize belonging to the block chain node The essential information of charity is to block chain network;3. if each block chain node in current block chain network do not verify it is logical It crosses, then block chain node to be verified is forbidden to synchronize the essential information of charity belonging to the block chain node to block link network Network.
Goodness-sum, will be in the goodness-sum information for this goodness-sum that accepted by whip-round side (network platform etc.) after contributor donates Chain namely goodness-sum then synchronize to block chain network in entire goodness-sum circulation section start cochain.Goodness-sum is believed in the network platform After breath uploads to block chain node, the encrypted characters string namely goodness-sum block chain that one is specific to current goodness-sum information can be returned Contract address.The goodness-sum block chain contract address represents this goodness-sum unique identities.
Block chain node to be verified synchronizes public good machine belonging to the block chain node to block chain network by following steps The goodness-sum information for every goodness-sum that structure is accepted: 1. its storage of each block chain node verification in current block chain network is each Whether copy with the block chain certificate consistent block chain certificate of to be verified block chain node is had in the copy of block chain certificate; 2. allowing block chain node to be verified to synchronize the area if each block chain node in current block chain network is verified The goodness-sum information for every goodness-sum that charity belonging to block chain node is accepted is to block chain network;3. if current block chain network In each block chain node it is not verified, then forbid block chain node to be verified to synchronize public good belonging to the block chain node The goodness-sum information for every goodness-sum that mechanism is accepted is to block chain network.
In step s3, the two dimension for carrying the corresponding goodness-sum block chain contract address of this goodness-sum is generated for every goodness-sum Code.
Specifically, it includes encrypted goodness-sum block chain contract address that the network platform is generated using traceability system related service Unique two dimensional code, this two dimensional code be inquire goodness-sum information entrance, need publicity in the public good project.
In step s 4, each charity is handled the charity using the block chain private key of the charity kind Money circulation data are uploaded to the block chain node of the charity after being signed, while the goodness-sum circulation data after signature being remembered It records on the goodness-sum block chain contract address in the corresponding two dimensional code of this goodness-sum.
As shown in figure 3, goodness-sum after whip-round can by multiple charities reach by contribute manpower in, during circulation, The charity of participation circulates data (comprising organization information, stream to the goodness-sum handled by the block chain private key of the charity Transfer the letter breath, the data such as timestamp) cochain after signature, so that goodness-sum is circulated data in block chain in the goodness-sum of fund flow links Upper persistence then synchronizes to block chain network, according to characteristics such as can not the distorting of block chain technology, timestamps, makes data With authenticity, reliability.And using traceability system related service by special algorithm to the QR code content of this goodness-sum into Row decryption obtains goodness-sum block chain contract address, and corresponding goodness-sum block chain contract address is recorded in goodness-sum circulation data On.
The block chain number that all block chain nodes in each block chain node storage current block chain network respectively record According to copy.The copy of block chain data includes: the block chain certificate of block chain node, the essential information of charity, goodness-sum The copy of information and goodness-sum circulation data.
Block chain node to be verified synchronizes the goodness-sum after the block chain node is signed to block chain network by following steps Circulate data:
1. in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network Whether copy with the block chain certificate consistent block chain certificate of to be verified block chain node is had;
2. every in current block chain network if each block chain node in current block chain network is verified Whether have after signing with block chain node to be verified in the copy of each goodness-sum information of its storage of a block chain node verification The copy for the consistent goodness-sum information of goodness-sum information that goodness-sum circulation data link arrives;If each block in current block chain network Chain node is verified, then the goodness-sum circulation data after allowing block chain node to be verified to synchronize block chain node signature arrive Block chain network;If each block chain node in current block chain network is not verified, forbid block chain link to be verified Point synchronizes the goodness-sum circulation data after the block chain node is signed to block chain network;
3. forbidding block chain node to be verified if each block chain node in current block chain network is not verified The goodness-sum circulation data after the block chain node is signed are synchronized to block chain network.
Block chain network identifies that uploading nodes, this technical solution make participation machine by the block chain certificate of block chain node Structure identity is more transparent, and charity uploads dirty data and can be identified by whole network, guarantees the authenticity of data in this way.
Verify whether block chain data are tampered by following steps: if the 1. either block chain in current block chain network The block chain data of node storage are tampered, then the block chain data after distorting are synchronized to block chain network;2. current block Whether have and block chain link to be verified in the copy of the block chain data of its storage of each block chain node verification in chain network Point distort after the consistent block chain data of block chain data copy;3. if each block chain in current block chain network The verification result of node is inconsistent, it is determined that the block chain data after the distorting of block chain node to be verified have been tampered, and Delete the block chain data after this is distorted.
When the block chain node altered data of some charity, the block chain node of other charities understands and itself The copies of the block chain data of preservation is proofreaded, and when block chain data exception, block chain network can abandon the data that malice uploads, and come Guarantee the integrality of block chain data and characteristic can not be distorted.
Donor or the public pass through the content for scanning the two-dimensional code and obtaining in the QR code content, by special algorithm to two Dimension digital content, which is decrypted, obtains goodness-sum block chain contract address, passes through the goodness-sum block chain contract address lookup goodness-sum block chain The goodness-sum information and goodness-sum of this goodness-sum that contract address is linked to circulate data, reach and trace to the source purpose to goodness-sum fund whereabouts, Improve users to trust degree and public good industry sunlight transparency.
In conclusion the public good goodness-sum date storage method provided in an embodiment of the present invention based on block chain, according to current The block chain node of each charity of public good alliance sets up block chain network, each block chain node in block chain network The common copy for safeguarding a block chain data, makes the multi-party charity of current public good alliance participate in record public good goodness-sum jointly Data, joint endorsement improve public good industry transparency while allowing donor and the public to trust.
Embodiment two
Based on the identical inventive concept of embodiment one, present embodiments provide a kind of public good goodness-sum number based on block chain According to storage system.As shown in figure 5, the storage system includes:
It is multi-party to participate in module 1, for building block chain node for each charity of current public good alliance, and set up area Block chain network;Wherein, the block chain node in block chain network, which is divided into, initiates node and multiple participation nodes, each participation node Other block chain nodes in current block chain network are needed to be verified when block chain network is added;
Data security module 2 is connected with the multi-party participation module, is uploaded to the public affairs for receiving each charity The backward charity of the essential information of the charity of the block chain node of beneficial mechanism returns to block chain private key;And it receives After the goodness-sum information for every goodness-sum that the charity that the charity is uploaded to the block chain node of the charity is accepted Goodness-sum block chain contract address is returned to the charity;
Two-dimensional code generation module 3 is connected with the data security module, kind for carrying the pen for every goodness-sum generation The two dimensional code of the corresponding goodness-sum block chain contract address of money;
Data recordin module 4 is connected with the data security module and two-dimensional code generation module respectively, every for receiving The charity that a charity is uploaded to the block chain node of the charity utilizes the block chain private key of the charity Goodness-sum circulation data after the signature obtained after signing to the goodness-sum circulation data that the charity is handled, while will signature Goodness-sum circulation data afterwards are recorded on the goodness-sum block chain contract address in the corresponding two dimensional code of this goodness-sum;
Wherein, the block that all block chain nodes in each block chain node storage current block chain network respectively record The copy of chain data.
It further, can also include authentication module, the authentication module includes:
The block chain data of synchronization unit, the either block chain node storage being used in current block chain network are usurped When changing, the block chain data after distorting are synchronized to block chain network;
Authentication unit is used to verify the block chain data of each block chain node storage in current block chain network Whether copy with block chain data consistent block chain data the distorting of to be verified block chain node after is had in copy;
Determination unit, it is inconsistent for being used for the verification result of each block chain node in current block chain network When, the block chain data after determining the distorting of block chain node to be verified have been tampered, and delete the block chain number after this is distorted According to.
Further, can also include: module of tracing to the source, be used to that the two dimensional code to be decrypted, thus trace this two The goodness-sum information and goodness-sum circulation data for this goodness-sum that goodness-sum block chain contract address is linked in dimension code.
In conclusion the public good goodness-sum data-storage system provided in an embodiment of the present invention based on block chain, according to current The block chain node of each charity of public good alliance sets up block chain network, each block chain node in block chain network The common copy for safeguarding a block chain data, makes the multi-party charity of current public good alliance participate in record public good goodness-sum jointly Data, joint endorsement improve public good industry transparency while allowing donor and the public to trust.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover within the scope of the claims and the description of the invention.

Claims (10)

1. a kind of public good goodness-sum date storage method based on block chain, which comprises the following steps:
Block chain node is built for each charity of current public good alliance, and sets up block chain network;Wherein, block link network Block chain node in network, which is divided into, initiates node and multiple participation nodes, needs to work as when block chain network is added in each participation node Other block chain nodes in preceding block chain network are verified;
Each charity obtains block after the essential information of the charity to be uploaded to the block chain node of the charity Chain private key;And after the goodness-sum information for every goodness-sum that the charity is accepted to be uploaded to the block chain node of the charity Obtain goodness-sum block chain contract address;
The two dimensional code for carrying the corresponding goodness-sum block chain contract address of this goodness-sum is generated for every goodness-sum;
Each charity carries out the goodness-sum circulation data that the charity is handled using the block chain private key of the charity It is uploaded to the block chain node of the charity after signature, while this goodness-sum pair is recorded in the goodness-sum circulation data after signature On goodness-sum block chain contract address in the two dimensional code answered;
Wherein, the block chain number that all block chain nodes in each block chain node storage current block chain network respectively record According to copy.
2. storage method according to claim 1, which is characterized in that set up block chain network by following steps:
Each charity of current public good alliance obtains down the block chain certificate of the block chain node of the charity online;
It initiates node and generates root zone block chain certificate, form initial block chain network;
For each node that participates in when block chain network is added in the block chain certificate request obtained under by line, initiating node generation should The copy of the block chain certificate of node is participated in, and by the copies synchronized of the block chain certificate of the participation node to block chain network; The block chain certificate of copy and the participation node that other block chain nodes separately verify the block chain certificate of the participation node is It is no consistent;If other block chain nodes are verified, allow the participation node that block chain network is added;If other block chains Node is not verified, then rejects the participation node.
3. storage method according to claim 1, which is characterized in that block chain node to be verified passes through following steps to area Block chain network synchronizes the essential information of charity belonging to the block chain node:
Whether have in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network With the copy of the consistent block chain certificate of block chain certificate of block chain node to be verified;
If each block chain node in current block chain network is verified, allow block chain node to be verified is synchronous should The essential information of charity belonging to block chain node is to block chain network;
If each block chain node in current block chain network is not verified, forbid block chain node to be verified is synchronous should The essential information of charity belonging to block chain node is to block chain network.
4. storage method according to claim 1, which is characterized in that block chain node to be verified passes through following steps to area Block chain network synchronizes the goodness-sum information for every goodness-sum that charity belonging to the block chain node is accepted:
Whether have in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network With the copy of the consistent block chain certificate of block chain certificate of block chain node to be verified;
If each block chain node in current block chain network is verified, allow block chain node to be verified is synchronous should The goodness-sum information for every goodness-sum that charity belonging to block chain node is accepted is to block chain network;
If each block chain node in current block chain network is not verified, forbid block chain node to be verified is synchronous should The goodness-sum information for every goodness-sum that charity belonging to block chain node is accepted is to block chain network.
5. storage method according to claim 1, which is characterized in that block chain node to be verified passes through following steps to area Block chain network synchronizes the goodness-sum circulation data after block chain node signature:
Whether have in the copy of each block chain certificate of its storage of each block chain node verification in current block chain network With the copy of the consistent block chain certificate of block chain certificate of block chain node to be verified;
If each block chain node in current block chain network is verified, each block in current block chain network Whether have in the copy of each goodness-sum information of its storage of chain node verification and the goodness-sum stream after block chain node to be verified signature The copy for the consistent goodness-sum information of goodness-sum information that revolution evidence is linked to;If each block chain node in current block chain network It is verified, then the goodness-sum circulation data after allowing block chain node to be verified to synchronize block chain node signature to block chain Network;If each block chain node in current block chain network is not verified, forbid block chain node to be verified synchronous Goodness-sum after block chain node signature circulates data to block chain network;
If each block chain node in current block chain network is not verified, forbid block chain node to be verified is synchronous should Goodness-sum after block chain node signature circulates data to block chain network.
6. storage method according to claim 1, which is characterized in that by following steps verify block chain data whether by It distorts:
If the block chain data that the either block chain node in current block chain network stores are tampered, by the block after distorting Chain data are synchronized to block chain network;
Whether have in the copy of the block chain data of its storage of each block chain node verification in current block chain network with to The copy of the consistent block chain data of block chain data after verifying the distorting of block chain node;
If the verification result of each block chain node in current block chain network is inconsistent, it is determined that block chain link to be verified Block chain data after the distorting of point have been tampered, and delete the block chain data after this is distorted.
7. storage method according to claim 1, which is characterized in that further comprising the steps of:
The goodness-sum information for this goodness-sum that goodness-sum block chain contract address is linked in the two dimensional code is traced by scanning the two-dimensional code With goodness-sum circulation data.
8. a kind of public good goodness-sum data-storage system based on block chain characterized by comprising
It is multi-party to participate in module, for building block chain node for each charity of current public good alliance, and set up block chain Network;Wherein, the block chain node in block chain network, which is divided into, initiates node and multiple participation nodes, and each participation node is added Other block chain nodes in current block chain network are needed to be verified when block chain network;
Data security module, is connected with the multi-party participation module, is uploaded to the public good machine for receiving each charity The backward charity of the essential information of the charity of the block chain node of structure returns to block chain private key;And receive the public affairs The goodness-sum information for every goodness-sum that the charity that beneficial mechanism is uploaded to the block chain node of the charity is accepted backward should Charity returns to goodness-sum block chain contract address;
Two-dimensional code generation module is connected with the data security module, carries this goodness-sum pair for generating for every goodness-sum The two dimensional code for the goodness-sum block chain contract address answered;
Data recordin module is connected with the data security module and two-dimensional code generation module respectively, for receiving each public affairs The charity that beneficial mechanism is uploaded to the block chain node of the charity utilizes the block chain private key of the charity to this Goodness-sum circulation data after the signature that the goodness-sum circulation data that charity is handled obtain after being signed, while will be after signature Goodness-sum circulation data are recorded on the goodness-sum block chain contract address in the corresponding two dimensional code of this goodness-sum;
Wherein, the block chain number that all block chain nodes in each block chain node storage current block chain network respectively record According to copy.
9. storage system according to claim 8, which is characterized in that further include authentication module, the authentication module includes:
The block chain data of synchronization unit, the either block chain node storage being used in current block chain network are tampered When, the block chain data after distorting are synchronized to block chain network;
Authentication unit is used to verify the copy of the block chain data of each block chain node storage in current block chain network In whether have copy with the consistent block chain data of block chain data after the distorting of block chain node to be verified;
Determination unit, be used for each block chain node in current block chain network verification result be it is inconsistent when, really Block chain data after the distorting of fixed block chain node to be verified have been tampered, and delete the block chain data after this is distorted.
10. storage system according to claim 8, which is characterized in that further include:
It traces to the source module, is used to that the two dimensional code to be decrypted, to trace goodness-sum block chain contract address in the two dimensional code Goodness-sum information and goodness-sum the circulation data for this goodness-sum being linked to.
CN201910711754.0A 2019-08-02 2019-08-02 Public welfare data storage method and system based on block chain Active CN110413697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910711754.0A CN110413697B (en) 2019-08-02 2019-08-02 Public welfare data storage method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910711754.0A CN110413697B (en) 2019-08-02 2019-08-02 Public welfare data storage method and system based on block chain

Publications (2)

Publication Number Publication Date
CN110413697A true CN110413697A (en) 2019-11-05
CN110413697B CN110413697B (en) 2022-09-13

Family

ID=68365475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910711754.0A Active CN110413697B (en) 2019-08-02 2019-08-02 Public welfare data storage method and system based on block chain

Country Status (1)

Country Link
CN (1) CN110413697B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368283A (en) * 2020-02-27 2020-07-03 苏州市星际云通区块链科技有限公司 Public welfare data storage method and system based on block chain
CN112765622A (en) * 2021-01-13 2021-05-07 中国外运股份有限公司 Digital certificate management method, device, equipment and medium for electronic bill of lading

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
CN108647960A (en) * 2018-04-09 2018-10-12 刘竹松 A kind of donation fund management method and system based on block chain technology
CN109034832A (en) * 2018-06-13 2018-12-18 湖南搜云网络科技股份有限公司 The information processing method and device of block chain, information processing node and storage medium
CN109376541A (en) * 2018-09-21 2019-02-22 上海点融信息科技有限责任公司 For running the method, apparatus and computer storage medium of intelligent contract
CN109389541A (en) * 2018-08-21 2019-02-26 广东工业大学 Public good fund management method based on alliance's chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
CN108647960A (en) * 2018-04-09 2018-10-12 刘竹松 A kind of donation fund management method and system based on block chain technology
CN109034832A (en) * 2018-06-13 2018-12-18 湖南搜云网络科技股份有限公司 The information processing method and device of block chain, information processing node and storage medium
CN109389541A (en) * 2018-08-21 2019-02-26 广东工业大学 Public good fund management method based on alliance's chain
CN109376541A (en) * 2018-09-21 2019-02-22 上海点融信息科技有限责任公司 For running the method, apparatus and computer storage medium of intelligent contract

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘海峰、王优优: "区块链技术在公益事业中的应用", 《中国管理信息化》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111368283A (en) * 2020-02-27 2020-07-03 苏州市星际云通区块链科技有限公司 Public welfare data storage method and system based on block chain
CN112765622A (en) * 2021-01-13 2021-05-07 中国外运股份有限公司 Digital certificate management method, device, equipment and medium for electronic bill of lading
CN112765622B (en) * 2021-01-13 2024-04-16 中国外运股份有限公司 Digital certificate management method, device, equipment and medium for electronic bill of lading

Also Published As

Publication number Publication date
CN110413697B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN110309634B (en) Credible advertisement data management system based on block chain
CN108629564B (en) A kind of Management in Large Scale Project system and method based on block chain technology
CN109034833A (en) A kind of product back-tracing information management system and method based on block chain
CN109450638A (en) Electronic component data management system and method based on block chain
CN109191003A (en) Fruits and vegetables agricultural product quality safety traceability system based on block chain
CN107682308A (en) The electronic evidence preservation system for Channel Technology of being dived based on block chain
CN109063426A (en) A kind of copyright based on alliance's block chain deposits card sharing method and system
CN109710823A (en) Archive management method, file administration network and electronic equipment based on block chain
CN108646983A (en) The treating method and apparatus of storage service data on block chain
CN110278462A (en) A kind of mobile film projection authorization management method based on block chain
CN108615194A (en) The method and readable medium of carbon emission reduction data assessment and transaction based on block
CN112073440B (en) Internet of things information recording method and system
CN110046894A (en) A kind of restructural block chain method for building up of grouping based on correcting and eleting codes
CN108009445A (en) A kind of trust data management system of half centralization
CN112149073B (en) Cone blockchain management method and system
CN110413697A (en) A kind of public good goodness-sum date storage method and system based on block chain
CN109754226A (en) Data managing method, equipment and storage medium
CN114205136A (en) Traffic data resource sharing method and system based on block chain technology
CN115049398A (en) Complete data asset trusted management and value transfer system and method
CN112800464A (en) Anti-counterfeiting tracing method and system based on block chain
CN111061982A (en) News information publishing and managing system based on block chain
CN115270145A (en) User electricity stealing behavior detection method and system based on alliance chain and federal learning
CN111368283A (en) Public welfare data storage method and system based on block chain
CN115208628B (en) Data integrity verification method based on block chain
CN108733783A (en) A kind of student status information management system based on privately owned block chain

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
GR01 Patent grant
GR01 Patent grant