CN112001663B - Material donation data processing method based on block chain and related equipment - Google Patents

Material donation data processing method based on block chain and related equipment Download PDF

Info

Publication number
CN112001663B
CN112001663B CN202011186298.1A CN202011186298A CN112001663B CN 112001663 B CN112001663 B CN 112001663B CN 202011186298 A CN202011186298 A CN 202011186298A CN 112001663 B CN112001663 B CN 112001663B
Authority
CN
China
Prior art keywords
data
information
party
donor
donated
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.)
Active
Application number
CN202011186298.1A
Other languages
Chinese (zh)
Other versions
CN112001663A (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.)
Tencent Technology (Shenzhen) Co Ltd
Original Assignee
Tencent Technology (Shenzhen) 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 Tencent Technology (Shenzhen) Co Ltd filed Critical Tencent Technology (Shenzhen) Co Ltd
Priority to CN202011186298.1A priority Critical patent/CN112001663B/en
Publication of CN112001663A publication Critical patent/CN112001663A/en
Application granted granted Critical
Publication of CN112001663B publication Critical patent/CN112001663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06Q—INFORMATION 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/00—Administration; Management
    • G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60—Protecting data
    • G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10—Services
    • G06Q50/26—Government or public services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Primary Health Care (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure provides a material donation data processing method based on a block chain and related equipment. The method comprises the following steps: receiving donor data sent by a donor node and public service organization data sent by a public service organization node through a common node of a target alliance chain; successfully verifying the data of the donator and the data of the public welfare institution through the consensus node to generate a material voucher, and storing the material voucher into a target public welfare chain shared account book; receiving material distribution data sent by a material issuing mechanism node through a consensus node of a target alliance chain, wherein the material distribution data are generated according to a material certificate; receiving donated data sent by a donated node; and successfully verifying the material distribution data and the donated party data through the consensus node, executing logout operation on the material certificate, and recording the logout operation on a target public welfare chain shared account book. According to the scheme provided by the embodiment of the disclosure, the processing of the material donation data is realized through the alliance chain technology, and the security and the credibility of data transmission are ensured.

Description

Material donation data processing method based on block chain and related equipment
Technical Field
The present disclosure relates to the field of computer and communication technologies, and in particular, to a method and an apparatus for processing data donation based on a block chain, a computer-readable storage medium, and an electronic device.
Background
The public welfare organization is a voluntary social intermediary organization that addresses social public welfare and solves various social problems. When sudden disasters happen in one place, people can donate materials through public welfare organizations, and then the collected donated materials are distributed to needed hands through the public welfare organizations.
In the related technology, a centralized material donation data processing system is adopted, on one hand, material donation data cannot be prevented from being tampered, the credibility of the material donation data recorded in the system is reduced, participants of donation parties cannot effectively supervise the data, supervision holes are easily caused, even inconsistency of the material donation data occurs, when the recorded material donation data is inconsistent, the source cannot be traced, and the data of the parties cannot be confirmed to be correct; on the other hand, the processing of the material donation data relates to a plurality of organizations, and in the cooperation process of the plurality of organizations, the authenticity of the data uploaded by each party is not convenient to confirm, and the sharing and safe and reliable transmission of the material donation data are not convenient, so that the material donation data are not shared timely, and the emergency situation when a disaster happens cannot be responded timely.
Therefore, when public welfare organizations collect a large amount of donated materials, how to do the data processing work of the donated materials so that the donated material data is transparent, data sharing and effective supervision are facilitated, the consistency of each data is ensured, the public trust of the public welfare organizations is improved, and the technical problem to be solved urgently is formed.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for processing material donation data based on a block chain, a computer-readable storage medium and an electronic device, which can solve the technical problem that the material donation data cannot be reliably recorded and the data cannot be shared in time by adopting a centralized material donation data processing method in the related art.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
The embodiment of the disclosure provides a material donation data processing method based on a block chain, which comprises the following steps: receiving donor data sent by a donor node of a target alliance chain and public institution data sent by a public institution node of the target alliance chain through a common node of the target alliance chain; successfully verifying the donor data and the public institution data through the consensus node of the target alliance chain to generate a material certificate, and storing the material certificate into a target public institution shared account book of the target alliance chain so that the material issuing institution node of the target alliance chain can obtain the material certificate; receiving material distribution data sent by a material issuing mechanism node of the target alliance chain through a consensus node of the target alliance chain, wherein the material distribution data are generated according to the material certificate; receiving donated data sent by a donated node of the target federation chain; and successfully verifying the material distribution data and the donated data through the consensus node of the target alliance chain, executing logout operation on the material certificate, and recording the logout operation on the target public welfare chain shared account book.
The embodiment of the present disclosure provides a data processing device donates goods and materials based on a block chain, where the device includes: the donation data receiving unit is used for receiving donator data sent by a donator node of a target alliance chain and public institution data sent by a public institution node of the target alliance chain through a common node of the target alliance chain; the material certificate generating unit is used for successfully verifying the donor data and the public welfare agency data through the consensus node of the target alliance chain, generating a material certificate, and storing the material certificate into a target public welfare chain shared account book of the target alliance chain, so that the material issuing agency node of the target alliance chain can obtain the material certificate; the distribution data receiving unit is used for receiving material distribution data sent by a material distribution mechanism node of the target alliance chain through a consensus node of the target alliance chain, and the material distribution data are generated according to the material certificate; a donated data receiving unit, configured to receive donated data sent by the donated node of the target federation chain; and the material certificate logout unit is used for successfully verifying the material distribution data and the donated party data through the consensus node of the target alliance chain, executing logout operation on the material certificate, and recording the logout operation on the target public service chain shared account book.
In some exemplary embodiments of the present disclosure, the donor data includes donor information, donor donation material information, and donor signature, and the public institution data includes public institution information, public institution donation material information, and public institution signature. Wherein, material voucher generation unit includes: a first signature verification unit, configured to verify the donor signature and the public welfare agency signature through a consensus node of the target federation chain; a first cross-validation unit, configured to cross-validate the donor information, the public welfare agency information, the donor donated material information, and the public welfare agency donated material information if the donor signature and the public welfare agency signature are validated; and the first data verification unit is used for judging that the data of the donator and the data of the public institution are successfully verified if the information of the donator and the information of the public institution, the information of the donator and the information of the public institution and the information of the donated materials are consistent.
In some exemplary embodiments of the present disclosure, the donor data includes donor information, donor donation material information, and donor signature, the public institution data includes charitable organization data, logistics party data, and warehousing party data, and the public institution nodes of the target federation chain include charitable organization nodes, logistics party nodes, and warehousing party nodes of the target federation chain. Wherein the donation data receiving unit includes: a charitable organization data receiving unit, configured to receive, by a consensus node of the target federation chain, the charitable organization data sent by the charitable organization node of the target federation chain, where the charitable organization data includes charitable organization information, charitable organization donation material information, and a charitable organization signature; the logistics party data receiving unit is used for receiving the logistics party data sent by the logistics party node of the target alliance chain through the consensus node of the target alliance chain, and the logistics party data comprises logistics party information, logistics party donation material information and a logistics party signature; and the warehousing party data receiving unit is used for receiving the warehousing party data sent by the warehousing party node of the target alliance chain through the consensus node of the target alliance chain, and the warehousing party data comprises warehousing party information, warehousing party donation material information and a warehousing party signature.
In some exemplary embodiments of the present disclosure, the material voucher generating unit includes: a second signature verification unit, configured to verify the donor signature, the charitable organization signature, the logistic party signature, and the warehousing party signature through a consensus node of the target federation chain; a second cross-validation unit, configured to cross-validate the donor information, the charitable organization information, the logistics party information, the warehousing party information, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information if the donor signature, the charitable organization signature, the logistics party signature, and the warehousing party signature validate; and the second data verification unit is used for judging that the donor data and the public welfare agency data are successfully verified if the donor information, the charitable organization information, the logistics party information and the warehousing party information, the donor donation material information, the charitable organization donation material information, the logistics party donation material information and the warehousing party donation material information are consistent.
In some exemplary embodiments of the present disclosure, the apparatus further comprises: a first block storage unit, configured to sort the donor data, the charitable organization data, the logistics party data, and the warehousing party data according to timestamps of the donor data, the charitable organization data, the logistics party data, and the warehousing party data after the donor data and the public welfare agency data are successfully verified by a consensus node of the target federation chain; packaging the sorted donor data, charitable organization data, logistics party data and warehousing party data into a first block; and storing the first block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the first block.
In some exemplary embodiments of the present disclosure, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information each include a donation material identification. Wherein: the first block comprises a first key and a first key value, the first key comprises a donor identifier, and the first key value comprises the donor identifier, the donor information, the donor signature and a donor certificate corresponding to the donor signature; the first block comprises a second key and a second key value, the second key comprises a charitable organization identifier, and the second key comprises the donation material identifier, the charitable organization information, a logistics party identifier, a warehousing party identifier, the charitable organization signature and a charitable organization certificate corresponding to the charitable organization signature; the first block comprises a third key and a third key value, the third key comprises the logistics party identifier, and the third key value comprises the donation goods and materials identifier, the logistics party information, the logistics party signature and a logistics party certificate corresponding to the logistics party signature; the first block comprises a fourth key and a fourth key value, the fourth key comprises the warehousing party identification, and the fourth key value comprises the donation material identification, the warehousing party information, the warehousing party signature and a warehousing party certificate corresponding to the warehousing party signature.
In some exemplary embodiments of the present disclosure, the material voucher generation unit includes a second block storage unit for sorting the donor data, the charitable organization data, the logistics party data, the warehousing party data, and the material voucher according to the time stamps of the donor data, the charitable organization data, the logistics party data, the warehousing party data, and the material voucher; packaging the sorted donor data, charitable organization data, logistics party data, warehousing party data and material vouchers into a second block; and storing the second block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the second block.
In some exemplary embodiments of the present disclosure, the material voucher includes a plurality of material vouchers. The material voucher generating unit comprises a third block storage unit, and the third block storage unit is used for sequencing the material vouchers according to the timestamps of the material vouchers; packaging the sequenced material certificates into a third block; and storing the third block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the third block.
In some exemplary embodiments of the present disclosure, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information each include a donation material identification. The material voucher comprises a fifth key and a fifth key value, the fifth key comprises a monitoring material identifier, and the fifth key comprises the donation material identifier, donation material information, donator identifier in the donator information, donator identifier, charitable organization identifier in the charitable organization information, logistics party identifier in the logistics party information, warehousing party identifier in the warehousing party information, logistics party material distribution information, warehousing party material distribution information, a monitoring authority signature and a monitoring authority certificate corresponding to the monitoring authority signature. Wherein the donation material information is determined according to the donation material information of the donator, the charitable organization donation material information, the donation material information of the logistics party and the donation material information of the warehousing party.
In some exemplary embodiments of the present disclosure, the apparatus further comprises: and the target public welfare chain shared account book uploading unit is used for uploading the target public welfare chain shared account book to a consensus node of a public welfare alliance chain, and the public welfare alliance chain comprises the target alliance chain.
The disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the blockchain-based material donation data processing method as described in the above embodiments.
An embodiment of the present disclosure provides an electronic device, including: at least one processor; a storage device configured to store at least one program that, when executed by the at least one processor, causes the at least one processor to implement the blockchain-based donation data processing method as described in the above embodiments.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the embodiments described above.
In some embodiments of the present disclosure, a target alliance chain is established by using alliance chain technology in block chain technology, where the target alliance chain includes a consensus node, a donor node, a public welfare agency node, a material issuing agency node and a donor node, and on one hand, the common identification node of the target alliance chain receives donator data sent by the donator node of the target alliance chain and public-interest institution data sent by the public-interest institution node of the target alliance chain, and also can receive material distribution data sent by the material issuing institution node of the target alliance chain and donator data sent by the donator node of the target alliance chain, so that the data reporting main body of each link participating in material donation can be guaranteed to leave a trace on the confirmation of the data right, the reporting process can be traced, the data can be prevented from being tampered, and the credibility of the data is ensured; on the other hand, when the data of the donator and the data of the public institution are successfully verified through the consensus node of the target alliance chain, a material certificate is generated and stored in the target public institution chain shared account book of the target alliance chain, so that the data of the donation of the material can be shared between institutions or users participating in each link of the donation of the material in time, the transparency of the data of the donation of the material is improved, the data of the donation of the material can be effectively monitored, and the data of the donation of the material can be used for realizing the cooperation between large-scale institutions and organizations.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 schematically shows a structural schematic diagram of a blockchain system according to an embodiment of the present disclosure.
Fig. 2 schematically shows a Block Structure (Block Structure) according to an embodiment of the present disclosure.
Fig. 3 schematically shows a flow chart of a block chain-based material donation data processing method according to an embodiment of the present disclosure.
Fig. 4 is an application scenario diagram of the method for processing data donation based on block chains according to the embodiment of the present disclosure.
Fig. 5 schematically shows an interaction diagram of a block chain-based material donation data processing method according to an embodiment of the present disclosure.
Fig. 6 schematically shows a flow diagram of a block chain-based material donation data processing method according to an embodiment of the present disclosure.
Fig. 7 schematically shows a schematic diagram of an on-chain data structure according to an embodiment of the present disclosure.
Fig. 8 schematically shows a block diagram of a blockchain-based donation data processing apparatus according to an embodiment of the present disclosure.
FIG. 9 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
The described features, structures, or characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in at least one hardware module or integrated circuit, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and steps, nor do they necessarily have to be performed in the order described. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In this specification, the terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of at least one element/component/etc.; the terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first," "second," and "third," etc. are used merely as labels, and are not limiting on the number of their objects.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
The system related to the embodiment of the present disclosure may be a blockchain system formed by connecting a client, a plurality of nodes (any form of computing devices in an access network, such as servers and terminals) through a network communication mode.
Taking a distributed blockchain system as an example, referring To fig. 1, fig. 1 is an optional structural schematic diagram of a blockchain system 100 provided in the embodiment of the present disclosure, and is formed by a plurality of nodes 200 (any form of computing devices in an access network, such as servers and terminals) and a client 300, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes 200, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a blockchain system, any machine, such as a server, a terminal, can join to become a node 200, and the node 200 includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to fig. 1, the functions of each node 200 in the blockchain system 100 are shown, and the functions involved include:
1) routing, a basic function that node 200 has, is used to support communication between nodes 200.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the electronic money remaining in the electronic money address.
And 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 2, fig. 2 is an optional schematic diagram of a Block Structure (Block Structure) provided in the embodiment of the present disclosure, where each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
Based on the technical problems in the related art, the embodiments of the present disclosure provide a method for processing donation data based on a block chain, so as to at least partially solve the above problems. The method provided by the embodiments of the present disclosure may be executed by any electronic device, for example, a server, or any one or more of terminals, or an interaction between a server and a terminal, which is not limited by the present disclosure.
When the embodiment of the present disclosure is implemented by using a Cloud technology (Cloud technology), the server may also be a Cloud server that provides basic Cloud computing services such as a Cloud service, a Cloud database, Cloud computing, a Cloud function, Cloud storage, a Network service, Cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform.
The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied in the cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-like websites and more web portals. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
Fig. 3 schematically shows a flow chart of a block chain-based material donation data processing method according to an embodiment of the present disclosure. As shown in fig. 3, the method provided by the embodiment of the present disclosure may include the following steps.
In step S310, donor data sent by a donor node of a target federation chain and public institution data sent by a public institution node of the target federation chain are received by a consensus node of the target federation chain.
In conjunction with fig. 1 and 4, the block chain system 100 shown in fig. 1 may include a plurality of federation chains, and any one of the plurality of federation chains may be used as the target federation chain 100-1. The alliance chain only allows authorized nodes to join a network aiming at members of a certain group and limited third parties, information can be viewed according to authority, the alliance chain is often used for a block chain among organizations, a plurality of preselected nodes are designated as bookkeepers in the block chain, and generation of each block is determined by all the preselected nodes together.
In the embodiment of the present disclosure, the target federation chain 100-1 is applied to the processing of material donation data, which authorizes a node of a public interest participant in a certain region to join the network of the target federation chain 100-1, for example, assuming that each federation chain is divided into regions with a certain level of administration, such as a donator, charitable organization, logistics party, warehousing party, regulatory agency in a certain province or a certain city, and the like, is authorized to join the target federation chain 100-1. The blockchain system that includes the target federation chain 100-1 can be referred to as a public interest federation chain.
In the following description, it is exemplified that each alliance chain in a public welfare alliance chain is divided at provincial level, that is, a supervising and supervising function for data donation can be implemented by taking a supervising and supervising authority in each province, for example, a civil office in each province as a common node in an alliance chain corresponding to the province, each alliance chain corresponding to each province has its own relatively independent public welfare chain shared account book, for example, a target alliance chain has a target public welfare chain shared account book, each donator, common node, public welfare agency node (for example, may further include charity organization node, logistics node, warehousing party node, etc.), a material issuing agency node, donator node, etc., can only obtain the target public welfare chain shared account book corresponding to the target alliance chain, but cannot obtain the public welfare chain shared account book of another province, therefore, the hierarchical processing of the material donation data is realized, namely, the sharing of the material donation data in the same alliance chain is realized, the independence of the material donation data in different alliance chains is realized, and the confidentiality and the safety of the material donation data are guaranteed.
In the above example, although each federation chain is divided by provinces, the geographical locations of the donor node, the public institution node, the material issuing institution node, the donor node, and the like in each federation chain are not limited to the provinces of the corresponding federation chain. For example, a province alliance chain is constructed by taking a civil office of province a as an consensus node, and the consensus node of the province alliance chain is used for performing consensus on the material donation data in province a and sharing the common earnings to the public welfare chain in province a. The charitable organization of province A authorizes and joins the alliance chain network of province A to become one charitable organization node, the charitable organization of province A can select the logistics party and the warehousing party of province B to serve as the cooperative logistics party and the cooperative warehousing party, so that the charitable organization of province A transports and stores the received donated materials to a certain warehouse of province B, and the logistics party and the warehousing party of province B can be authorized and joined into the alliance chain of province A to become the logistics party node and the warehousing party node of province A. Each node in province a can only read and view the material donation data on the public welfare chain shared ledger in province a.
Similarly, the donor and the recipient in the same federation chain may be in different provinces, i.e., cross-domain interworking may be achieved.
For example, as shown in fig. 4, taking target federation chain 100-1 as an example, assume that a regulatory agency in the province (such as a civil hall in the province, but the disclosure is not limited thereto) maps to a consensus node 200-5 in the target federation chain 100-1 through its corresponding server 400 (illustrated here as a server, but a terminal may also be used in practice).
The donor (which may be an individual or an enterprise or public institution, etc.) inputs donor data through a client (which may be any client capable of realizing material donation) 300-1 installed on a terminal of the donor, transmits the input donor data to the donor node 200-1 mapped in the target federation chain 100-1 through the terminal of the donor, and the donor node 200-1 transmits the received donor data to the consensus node 200-5 in the target federation chain 100-1.
In the embodiment of the present disclosure, the donor data may include donor information, donor donation material information, and donor signature.
If the donor is an individual, the donor information may include any one or more of the name, contact address (e.g., mobile phone number, email address, and residence address), identification number, and the like of the donor. If the donor is an enterprise, the donor information may include, for example, any one or more of a unit name, an organization code, a corporate representative, a business license, etc. of the donor.
The donator material information refers to donation material related data reported by the donator, for example, related data such as the type, name, quantity, volume, size, function and usage of donated materials may be donated, and the donator material information may further include which public welfare institution the donated materials are donated to, that is, public welfare institution information.
It is understood that the donation materials mentioned in the embodiments of the present disclosure may be physical materials, such as clothes of an entity, books of the entity, and the like, or virtual materials, such as money, virtual commodities, and the like, and the present disclosure does not limit the present disclosure.
In the embodiment of the present disclosure, in order to obtain authorization to enter the target federation chain 100-1 network, a donor may apply a digital Certificate to an Authority CA (Certificate Authority) to identify the identity of the donor, which is referred to as a donor Certificate.
When the donor reports the donor data through the client 300-1, the donor can sign the donor information and the donor donation material information of the uplink (to be written into the target alliance chain) with the private key information corresponding to the donor certificate, generate a donor signature, and send the donor information, the donor donation material information and the donor signature together as the donor data to the consensus node 200-5.
In an exemplary embodiment, the public institution data may include public institution information, public institution donation material information, and public institution signatures.
The public service institution information may include any data related to the public service institution, such as a name, a code, and the like of the public service institution. The donation material information of the public institution may include any data related to donation materials reported by the public institution after receiving the donation materials from the donator, for example, related data such as the type, name, quantity, volume, size, function and usage of the donation materials received by the public institution. To gain authorization to access the target federation chain 100-1 network, the public institution may apply a digital Certificate, referred to as a public institution Certificate, to an authoritative CA (Certificate Authority) for identifying the identity of the public institution. When the public welfare agency reports the public welfare agency data through the client of the public welfare agency, the public welfare agency information and the public welfare agency donation material information which are to be linked (the public welfare agency data are to be written into a target alliance chain) can be signed by using the private key information corresponding to the public welfare agency certificate, a public welfare agency signature is generated, and the public welfare agency information, the public welfare agency donation material information and the public welfare agency signature are used as public welfare agency data to be sent to the common recognition node 200-5.
When the donated materials are received as physical objects, especially when a large number of physical objects are received, the public institution generally needs to jointly implement services such as receiving, transporting, storing and the like of the donated materials by means of logistics and warehousing. Therefore, in the following description, the public institution including the corresponding charitable organization, the logistics party (which may be referred to as the determined cooperative logistics party) and the warehousing party (which may be referred to as the determined cooperative warehousing party) is taken as an example for illustration, but the disclosure is not limited thereto, and in some cases, the donated materials may be directly distributed to the donated persons by the public institution such as the charitable organization itself, or the donated materials may be distributed to the donated persons by the charitable organization and the cooperative logistics party, or the donated materials may be distributed to the donated persons by the charitable organization and the cooperative warehousing party, which is not limited by the disclosure.
Taking the example of a public welfare agency including a charitable organization, a corresponding logistics party (a partner logistics party), and a corresponding warehousing party (a partner warehousing party), the public welfare agency data may include charitable organization data, logistics party data, and warehousing party data, and the public welfare agency nodes of the target federation chain 100-1 may include the charitable organization nodes 200-2, the logistics party nodes 200-3, and the warehousing party nodes 200-4 of the target federation chain 100-1.
Receiving, by the consensus node of the target federation chain 100-1, the public welfare agency data sent by the public welfare agency node of the target federation chain may include: receiving, by a consensus node of the target federation chain, the charitable organization data sent by a charitable organization node of the target federation chain, the charitable organization data comprising charitable organization information, charitable organization donation material information, and a charitable organization signature; receiving the logistics party data sent by the logistics party node of the target alliance chain through the consensus node of the target alliance chain, wherein the logistics party data comprises logistics party information, logistics party donation material information and a logistics party signature; and receiving the warehousing party data sent by the warehousing party node of the target alliance chain through the consensus node of the target alliance chain, wherein the warehousing party data comprises warehousing party information, warehousing party donation material information and warehousing party signature.
Specifically, the charitable organization inputs charitable organization data through a client 300-2 installed on its terminal, and by sending the input charitable organization data to the charitable organization node 200-2 mapped in the target federation chain 100-1, the charitable organization node 200-2 sends the received charitable organization data to the consensus node 200-5 in the target federation chain 100-1.
The charitable organization information may include, for example, a name, a code, and any other data of the charitable organization related to the charitable organization. The charitable organization donation material information refers to donation material related data reported by the charitable organization, and may include, for example, the type, name, quantity, volume, size, function, and usage of donation materials received by the charitable organization from a donor, or the donation materials received from which donor, that is, the donation party information.
In the disclosed embodiment, to gain authorization to access the target federation chain 100-1 network, a charitable organization may apply a digital Certificate, referred to as a charitable organization Certificate, to an authoritative CA (Certificate Authority) for identifying the identity of the charitable organization.
When the charitable organization reports the charitable organization data through the client 300-2, the charitable organization can sign the charitable organization information and the charitable organization donation material information of the uplink (preparation for writing the charitable organization data into the target alliance chain) with the private key information corresponding to the charitable organization certificate, generate a charitable organization signature, and send the charitable organization information, the charitable organization donation material information and the charitable organization signature together as the charitable organization data to the consensus node 200-5.
For another example, the charitable organization may select a partner logistics party that transports the currently received donated material from the logistics parties, the selected partner logistics party inputs logistics party data through a client 300-3 installed on a terminal thereof, and the logistics party node 200-3 transmits the received logistics party data to the consensus node 200-5 in the target federation chain 100-1 by transmitting the input logistics party data to the logistics party node 200-3 mapped in the target federation chain 100-1.
The logistics party information may include, for example, a name, a code, and any other data related to the cooperating logistics party. The logistics party donation material information refers to donation material related data reported by the cooperative logistics party, and may include, for example, the type, name, quantity, volume, size, function, and usage of donation materials received by the cooperative logistics party from a charitable organization, or may include donation materials received from which charitable organization (i.e., the cooperative charitable organization of the cooperative logistics party), that is, information of the charitable organization of the cooperative charitable organization.
In the embodiment of the present disclosure, in order to obtain an authorization to enter the target federation chain 100-1 network, the partner physical distribution party may apply a digital Certificate to an Authority CA (Certificate Authority) to identify the identity of the partner physical distribution party, which is referred to as a physical distribution party Certificate.
When the cooperative logistics party reports the logistics party data through the client 300-3, the cooperative logistics party can sign the logistics party information and the logistics party donation material information of the pending chain (to write the logistics party data into the target alliance chain) by using the private key information corresponding to the logistics party certificate, generate a logistics party signature, and send the logistics party information, the logistics party donation material information and the logistics party signature together as the logistics party data to the consensus node 200-5.
For another example, the charitable organization or the aforementioned cooperating logistics party may also select a cooperating warehousing party that transports the currently received donated materials from a plurality of warehousing parties, the selected cooperating warehousing party inputs warehousing party data through a client 300-4 installed on a terminal thereof, the warehousing party node 200-4 transmits the input warehousing party data to the warehousing party node 200-4 mapped in the target federation chain 100-1, and the warehousing party node 200-4 transmits the received warehousing party data to the consensus node 200-5 in the target federation chain 100-1.
The warehousing party information may include, for example, names, codes, and other arbitrary data of the cooperating warehousing party related to the cooperating warehousing party. The warehousing party donation material information refers to donation material related data reported by the cooperative warehousing party, and may include, for example, the type, name, quantity, volume, size, function, and usage of donation materials received by the cooperative warehousing party from the cooperative logistics party, or may include donation materials received from which logistics party (for the cooperative warehousing party, that is, the cooperative logistics party), that is, may include logistics party information.
In the embodiment of the present disclosure, in order to obtain an authorization to enter the target federation chain 100-1 network, the cooperating warehousing party may apply a digital Certificate to an Authority CA (Certificate Authority) to identify the identity of the cooperating warehousing party, which is referred to as a warehousing party Certificate.
When the cooperative warehousing party reports the warehousing party data through the client 300-4, the cooperative warehousing party can sign the warehousing party information and the warehousing party donation material information of the to-be-linked chain (to write the warehousing party data into the target alliance chain) by using the private key information corresponding to the warehousing party certificate, generate a warehousing party signature, and send the warehousing party information, the warehousing party donation material information and the warehousing party signature together as warehousing party data to the consensus node 200-5.
In step S320, the donor data and the public welfare agency data are successfully verified by the consensus node of the target alliance chain, a material certificate is generated, and the material certificate is stored in the target public welfare chain shared account book of the target alliance chain, so that the material issuing agency node of the target alliance chain obtains the material certificate.
In an exemplary embodiment, successfully verifying the donor data and the public institution data by the consensus node of the target federation chain may include: verifying, by a consensus node of the target federation chain, the donor signature and the public welfare agency signature; if the donor signature and the public institution signature pass the verification, cross-verifying the donor information and the public institution information, the donor donation material information and the public institution donation material information; and if the donor information is consistent with the public welfare institution information, the donor donation material information is consistent with the public welfare institution donation material information, judging that the donor data and the public welfare institution data are successfully verified.
In the embodiment of the present disclosure, after the consensus node 200-5 of the target federation chain 100-1 receives the donor data sent by the donor node 200-1 and the public institution data sent by the public institution node, the signature of the donor may be verified by using the donor certificate (the public key of the donor), and the signature of the public institution may be verified by using the public institution certificate. If either the donor signature or the public institution signature fails to verify, the donor data and the public institution data are linked in failure, i.e. the donor data and the public institution data are not stored in the target public institution shared account book.
If the signature verification of both the donor signature and the public institution signature is successful, cross-verifying the donor information and the public institution information, the donor donated material information and the public institution donated material information, for example, judging whether the public institution information included in the donated material information is consistent with the public institution information in the public institution data, that is, which public institution the donated material is given to by the donor and whether the public institution information reported by the public institution is the same public institution; judging whether the donor information in the donation material information of the public institution is consistent with the donor information in the donation data, namely whether the donor reported by the public institution is consistent with the real donor of the donation material; and judging whether the donation material information of the public institution is consistent with the donation material information of the donator, namely judging whether the type, the quantity and the like of the donation material received by the public institution and reported by the public institution are consistent with the type, the quantity and the like of the donation material given to the public institution and reported by the donator. And if at least one item in the cross verification is inconsistent, judging that the verification of the data of the donor and the data of the public institution fails, and failing to uplink the data of the donor and the data of the public institution. If the signature verification is successful and the cross verification is successful, the donor data and the public institution data are judged to be successfully verified, and at the moment, the donor data and the public institution data can be linked, namely, stored in a target public institution chain shared account book.
In an exemplary embodiment, successfully verifying the donor data and the public institution data by the consensus node of the target federation chain may include: verifying, by a consensus node of the target federation chain, the donor signature, the charitable organization signature, the logistic party signature, and the warehousing party signature; if the donor signature, the charitable organization signature, the logistics party signature and the warehousing party signature pass verification, cross-verifying the donor information, the charitable organization information, the logistics party information and the warehousing party information, the donor donation material information, the charitable organization donation material information, the logistics party donation material information and the warehousing party donation material information; and if the donator information, the charitable organization information, the logistics party information and the warehousing party information, the donator donated material information, the charitable organization donated material information, the logistics party donated material information and the warehousing party donated material information are consistent, judging that the donator data and the public welfare agency data are successfully verified.
In the embodiment of the disclosure, when the public institution nodes include the charitable organization node 200-2, the logistics party node 200-3 and the warehousing party node 200-4, after the consensus node 200-5 of the target alliance chain 100-1 receives the donor data sent by the donor node 200-1, the charitable organization data sent by the charitable organization node 200-2, the logistics party data sent by the logistics party node 200-3 and the warehousing party data sent by the warehousing party node 200-4, the donor signature can be verified by using the donor certificate, the charitable organization signature can be verified by using the charitable organization certificate, the logistics party signature can be verified by using the logistics party certificate, and the warehousing party signature can be verified by using the warehousing party certificate. If any one of the donor signature, the charitable organization signature, the logistics party signature or the warehousing party signature fails to verify, the donor data, the charitable organization data, the logistics party data and the warehousing party data fails to link, and the data cannot be stored in the target public welfare chain shared account book.
If the signature verification of the donor signature, the charitable organization signature, the logistics party signature and the warehousing party signature is successful, cross-verifying whether the charitable organization information included in the donor donated material information is consistent with the charitable organization information in the charitable organization data, namely, which charitable organization the donated material is given to by the donor and whether the charitable organization information reported by the charitable organization is the same charitable organization; whether the donor information in the charitable organization donation material information is consistent with the donor information in the donor data, namely whether the donor reported by the charitable organization is consistent with the real donor of the donation material; whether the donation material information of the charitable organization is consistent with the donation material information of the donator or is judged, namely whether the type, the quantity and the like of the donation material received by the charitable organization reported by the charitable organization are consistent with the type, the quantity and the like of the donation material given to the charitable organization reported by the donator; whether the information of the cooperative logistics party in the charitable organization donation material information is consistent with the information of the logistics party in the logistics party data, whether the information of the cooperative warehousing party in the charitable organization donation material information is consistent with the information of the warehousing party in the warehousing party data, and whether the information of the cooperative warehousing party in the logistics party data is consistent with the information of the warehousing party in the warehousing party data. If at least one item in the cross verification is inconsistent, judging that the verification of the data of the donor, the data of the charitable organization, the data of the logistics party and the data of the warehousing party fails, and determining that the chaining of the data of the donor, the data of the charitable organization, the data of the logistics party and the data of the warehousing party fails. If the signature verification is successful and the cross verification is successful, the data of the donator, the charitable organization data, the data of the logistics party and the data of the warehousing party are judged to be successfully verified, and at the moment, the data of the donator, the charitable organization data, the data of the logistics party and the data of the warehousing party can be linked up, namely stored to the target public welfare chain to share the account book.
In an exemplary embodiment, after successfully verifying the donor data and the public institution data by the consensus node of the target federation chain, the method may further include: sorting the donor data, the charitable organization data, the logistics party data and the warehousing party data according to timestamps of the donor data, the charitable organization data, the logistics party data and the warehousing party data; packaging the sorted donor data, charitable organization data, logistics party data and warehousing party data into a first block; and storing the first block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the first block.
In an exemplary embodiment, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information each include a donation material identification. Wherein the first block comprises a first key and a first key value, the first key comprises a donor identifier, and the first key value comprises the donor asset identifier, the donor information, the donor signature, and a donor certificate corresponding to the donor signature; the first block comprises a second key and a second key value, the second key comprises a charitable organization identifier, and the second key comprises the donation material identifier, the charitable organization information, a logistics party identifier, a warehousing party identifier, the charitable organization signature and a charitable organization certificate corresponding to the charitable organization signature; the first block comprises a third key and a third key value, the third key comprises the logistics party identifier, and the third key value comprises the donation goods and materials identifier, the logistics party information, the logistics party signature and a logistics party certificate corresponding to the logistics party signature; the first block comprises a fourth key and a fourth key value, the fourth key comprises the warehousing party identification, and the fourth key value comprises the donation material identification, the warehousing party information, the warehousing party signature and a warehousing party certificate corresponding to the warehousing party signature.
In the embodiment of the present disclosure, in order to obtain authorization to join the target federation chain 100-1 network, the donor, the charitable organization, the partner logistics party, the partner warehousing party, and the donor may register with the target federation chain 100-1, and the target federation chain 100-1 assigns an ID (identification) for uniquely distinguishing the identities of the donor, the charitable organization, the partner logistics party, the partner warehousing party, and the donor, respectively, to the donor, the charitable organization, the partner logistics party, the partner warehousing party, and the donor, respectively, which are referred to as the donor ID, the charitable organization ID, the logistics party ID, the warehousing party ID, and the donor ID.
For example, the donor data, the charitable organization data, the logistics data and the warehousing data which pass the signature verification and the cross verification can be sorted by time, packaged into a first block, and written into the target public welfare chain shared ledger, so that each node on the target alliance chain can share the first block. The on-chain data structure of the target public welfare chain shared book may be as shown in fig. 7, the donor data is stored as a first KEY (KEY) as a donor ID, and a first KEY Value (Value) of the on-chain data structure may include a material ID for uniquely distinguishing a donor material currently donated by the donor, donor information and a donor certificate and a donor signature in the donor data.
With continued reference to fig. 7, the charitable organization data is stored with the second KEY (KEY) being a charitable organization ID, whose second KEY Value (Value) may include a material ID for uniquely distinguishing donated materials currently received by the charitable organization, charitable organization information in the charitable organization data, a warehousing party ID of its selected partner included in the charitable organization donated material information, a logistics party ID of its selected partner, a charitable organization certificate, and a charitable organization signature.
In the embodiment of fig. 7, the logistics party data is stored as a third KEY (KEY) as the logistics party ID, and the third KEY (Value) may include a material ID for uniquely distinguishing the donated material currently received by the cooperating logistics party, logistics party information in the logistics party data, charitable organization ID of the charitable organization included in the logistics party donated material information, warehousing party ID of the cooperating warehousing party, logistics party certificate, and logistics party signature.
In the embodiment of fig. 7, the warehouse data is stored as a fourth KEY (KEY) as a warehouse ID, and the fourth KEY (Value) may include a material ID for uniquely distinguishing the donated material currently received by the cooperating warehouse, warehouse information in the warehouse data, charitable organization ID of the charitable organization included in the warehouse donated material information, logistics party ID of the cooperating logistics party, warehouse certificate, and warehouse signature.
In an exemplary embodiment, storing the material certificate in a target public welfare chain shared ledger of the target federation chain may include: sorting the donor data, the charitable organization data, the logistics party data, the warehousing party data and the material voucher according to the time stamps of the donor data, the charitable organization data, the logistics party data, the warehousing party data and the material voucher; packaging the sorted donor data, charitable organization data, logistics party data, warehousing party data and material vouchers into a second block; and storing the second block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the second block.
In the embodiment of the present disclosure, the donator data, the charitable organization data, the logistics party data, the warehousing party data, and the generated material voucher may also be placed in the same second block after being sorted, and then written into the target public welfare chain shared account book, so that each node in the target alliance chain can obtain the material voucher through the second block.
In an exemplary embodiment, the material voucher includes a plurality of material vouchers; wherein, store the material voucher to the target public welfare chain shared account book of the target alliance chain, including: sequencing the plurality of material certificates according to the timestamps of the plurality of material certificates; packaging the sequenced material certificates into a third block; and storing the third block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the third block.
In this embodiment of the disclosure, a plurality of material certificates may be sorted and then packed into the same third block, and then written into the target public service chain shared account book, so that each node in the target alliance chain can acquire the plurality of material certificates through the third block.
It should be noted that how to store the donator data, the charitable organization data, the logistics party data, the warehousing party data and the generated material evidence that pass the signature verification and the cross verification into the target public welfare chain shared account book is not limited to the three manners illustrated above, and the consensus node of the target alliance chain may pack the data that pass the consensus into blocks according to any suitable manner and store the blocks into the target public welfare chain shared account book.
In an exemplary embodiment, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information may each include a donation material identification (i.e., material ID). The material voucher may include a fifth key and a fifth key value, the fifth key includes a monitoring material identifier, and the fifth key includes the donation material identifier, donation material information, donator identifier in the donator information, donator identifier, charitable organization identifier in the charitable organization information, logistics identifier in the logistics information, warehousing identifier in the warehousing information, logistics resource distribution information, warehousing material distribution information, a monitoring authority signature, and a monitoring authority certificate corresponding to the monitoring authority signature. Wherein the donation material information is determined according to the donation material information of the donator, the charitable organization donation material information, the donation material information of the logistics party and the donation material information of the warehousing party.
For example, the data structure of the material voucher on the target public welfare chain shared account may be as shown in fig. 7, a supervisory material ID is assigned to the material voucher, as a fifth KEY (KEY), a corresponding fifth KEY (Value) may include the material ID, information such as the material type and quantity of the donated material, the donator ID, the charitable organization ID, the logistics party ID, and the warehousing party ID, and may further include logistics party material assignment information of the donated material transported by the multiple cooperating logistics parties respectively if the donated material is assigned to multiple cooperating logistics parties, and may further include logistics party material assignment information of the donated material stored by the multiple cooperating warehousing parties respectively if the donated material is assigned to multiple warehousing parties, and further may include a regulatory agency certificate, and the uplink material voucher is signed by using a private KEY corresponding to the regulatory agency certificate, a regulatory agency signature is generated.
In step S330, receiving, by the consensus node of the target alliance chain, material distribution data sent by the material issuing mechanism node of the target alliance chain, where the material distribution data is generated according to the material certificate.
In the embodiment of the present disclosure, the material issuing authority node in the target alliance chain 100-1 may be a government department in the province, or may be a charitable organization node corresponding to the same charitable organization that receives the donated material, which is not limited in this disclosure. In the following description, the material issuing organization node is taken as the charity organization node 200-2 as an example.
The charitable organization node 200-2 can obtain the material voucher from the target public welfare chain shared account, and according to the material voucher, the charitable organization node 200-2 can determine the donated party node according to the donated party ID in the material voucher, and then distribute donated materials to corresponding donated parties through the cooperative storage party and the cooperative logistics party.
In the embodiment of the present disclosure, the material allocation data may include information such as a charitable organization ID of a charitable organization, a material ID, a warehousing party ID of a collaborative warehousing party, a logistics party ID of a collaborative logistics party, a kind and an amount of donated materials distributed to a donated person, and related data such as a donated person ID distributed to which donated person, a charitable organization certificate, and a charitable organization signature.
In step S340, donor data sent by the donor node of the target federation chain is received.
In the embodiment of the present disclosure, the target federation chain 100-1 may further include a donated node (not shown in fig. 4), to which the donated node may be mapped by a client installed on a terminal of the donated node, and after the donated material donated by the donator is received by the donated party through a charitable organization, the donated data may be reported by the donated party.
The donated data may include, among other things, a donated party ID, a material ID, donated party information, a donated party certificate, and a donated party signature. If the donated party is an individual, the information of the donated party may include related information such as name, contact address, etc. of the donated party, and if the donated party is an enterprise, the information of the donated party may include related information such as name, organization code, contact address, office address, etc. of the donated party.
In step S350, the material distribution data and the donated data are successfully verified by the consensus node of the target alliance chain, a logout operation is performed on the material certificate, and the logout operation is recorded to the target public welfare chain shared account book.
In the embodiment of the present disclosure, after receiving the material distribution data and the donated data, the consensus node 200-5 of the target federation chain 100-1 may verify a charitable organization signature in the material distribution data, verify a donated party signature in the donated data, further perform cross verification on the material distribution data and the donated data if both signatures pass verification, and determine that the material distribution data and the donated data are successfully verified if information of charitable organization, which donated party is distributed, what is distributed, and how much donated material is given to the donated party, which partner logistics party transports the donated material, which partner warehouse obtains the donated material, and the like in the material distribution data can be consistent with data reported by the donated party.
As shown in fig. 7, after the donated data is successfully verified, the donated data may be linked, that is, the common nodes of the target federation chain are sorted according to the time stamp of the donated data and then packed into a certain block, and then stored into the target public welfare chain shared account book, where the data structure on the chain may include a sixth key and a sixth key value, the sixth key may be the donated party ID, and the sixth key value may include the material ID, the donated party information, the donated party certificate, and the donated party signature.
At this time, the process of donating the material this time is completed completely, the consensus node may execute an operation of deregistering the corresponding material credential, and record the deregistration operation on the target commonweal chain shared ledger, so that each node in the target alliance chain 100-1 knows that the donation of the material this time has been completed successfully, for example, the state of the material credential originally stored in the target commonweal chain shared ledger may be updated, and the state is marked as "deregistered".
In an exemplary embodiment, the method may further include: uploading the target public welfare chain shared account to a consensus node of a public welfare alliance chain, wherein the public welfare alliance chain comprises the target alliance chain.
As shown in fig. 5, the public welfare alliance chain constructed in the embodiment of the present disclosure may further include a national-level department of civil affairs as a core regulatory agency, where the core regulatory agency serves as a consensus node of the public welfare alliance chain and may receive public welfare chain shared accounts uploaded by the consensus nodes in the alliance chains from various provinces, including the target public welfare chain shared accounts uploaded by the target alliance chain. Like this, the public welfare chain sharing account book of each province can be gathered to the formula node of the core regulatory agency of national level, has guaranteed the privacy nature of data is donated to the goods and materials promptly, also can realize unified supervision.
The method for processing data donation of goods and materials based on block chain provided by the embodiment of the present disclosure builds a target alliance chain by adopting an alliance chain technology in the block chain technology, wherein the target alliance chain comprises a consensus node, a donor node, a public institution node, a goods and materials issuing institution node and a donated node, on one hand, the consensus node of the target alliance chain receives the donor data sent by the donor node of the target alliance chain and the public institution data sent by the public institution node of the target alliance chain, and also can receive the goods and materials distribution data sent by the goods and materials issuing institution node of the target alliance chain and the donated data sent by the donated node of the target alliance chain, so as to ensure that the data reporting main body of each link participating in the goods and materials donation leaves a mark on the right of the data ownership thereof, so that the reporting process can be traced and the data can be prevented from being tampered, the credibility of the data is ensured; on the other hand, when the data of the donator and the data of the public institution are successfully verified through the consensus node of the target alliance chain, a material certificate is generated and stored in the target public institution chain shared account book of the target alliance chain, so that the data of the donation of the material can be shared between institutions or users participating in each link of the donation of the material in time, the transparency of the data of the donation of the material is improved, the data of the donation of the material can be effectively monitored, and the data of the donation of the material can be used for realizing the cooperation between large-scale institutions and organizations.
Fig. 5 schematically shows an interaction diagram of a block chain-based material donation data processing method according to an embodiment of the present disclosure.
As shown in fig. 5, a public welfare alliance chain network in which each supervising authority and each local donor, charity, warehouse, logistics and donator are interconnected and intercommunicated across domains is constructed by using Fabric of hyperleeder (hyper book) as a network bottom engine of a block chain system. The method is constructed by using a Fabric network under the Kafka consensus algorithm.
For example, the commonweal participant nodes of the target federation chain are assumed to include a donor, a charitable organization, a logistics party (a partner logistics party), a warehousing party (a partner warehousing party), and a donor recipient. The donator, the charitable organization, the logistics party, the warehouse party and the donator call corresponding donator nodes, charitable organization nodes, logistics party nodes, warehouse party nodes and donator nodes on the target alliance chain through clients installed on respective terminals, the donator data, the charitable organization data, the logistics party data, the warehouse party data and the donator data are reported to common nodes (assumed to correspond to the monitoring organization 1) of the target alliance chain, and the common nodes corresponding to the monitoring organization 1 (such as a civil hall in a certain province) perform signature verification and cross verification on the donator data, the charitable organization data, the logistics party data, the warehouse party data and the donator data.
After the signature verification and the cross verification of the above donor data, charitable organization data, logistics party data, warehousing party data and donated party data are successful, the consensus nodes of the target alliance chain can be sorted according to the time stamps of the donor data, the charitable organization data, the logistics party data, the warehousing party data and the donated party data, and then packaged into blocks to be stored in the target public welfare chain shared account book.
Similarly, suppose that the monitoring authority 2 and the monitoring authority 3 … correspond to the civil administration halls of different provinces respectively, construct a federation chain corresponding to the province, the federation chain corresponding to the province includes public benefit participant nodes corresponding to the federation chain, and link donor data, charitable organization data, logistics party data, warehouse party data and donated party data corresponding to the province to the public benefit chain shared account book corresponding to the province, so as to implement cross-domain interconnection between nodes in the federation chains of the provinces, and implement data sharing and data supervision and supervision in the federation chains.
The union chains corresponding to each province can collect the public service chain shared accounts to the public service union chain common nodes corresponding to the national core regulatory agencies through the common nodes, and therefore unified supervision of national material donation data is achieved.
In the embodiment of fig. 5, each province may further include a plurality of monitoring entities, for example, the civil administration of the city, county, or district below each province, these civil administration and the civil hall of the province may be used as the monitoring nodes of the province, and the civil hall of the province may be selected as the core monitoring node of the monitoring nodes of the province, i.e., the consensus node of the province, to perform consensus on the material donation data of the province. The consensus nodes of each province are used for uploading data with the consensus nodes of the national level, and therefore, the consensus nodes can also be called public service chain data nodes.
In the embodiment of fig. 5, a cluster composed of a plurality of distributed block link nodes may be inside the consensus node of each province and the consensus node of the entire public service alliance chain, which may adopt a Kafka consensus mechanism supported by Fabric under hyper ledger (hyper ledger), sort the consensus nodes according to timestamps of data, package the consensus nodes into blocks, and synchronize the blocks to the nodes of the corresponding alliance chain, so as to store the data in a manner that the public service chain shares the ledger, which may specifically refer to a network node communication mechanism of Fabric.
Where Kafka is a message queue through which producers can deliver messages to consumers, Kafka guarantees ordering of messages and not loss. Kafka is a distributed system, but it is itself centrally managed and relies on Zookeeper (a distributed, open source distributed application coordination service).
In the embodiment of the disclosure, cross-domain interconnection and interworking may be achieved by deploying each node in a target federation chain in different regions, and when Fabric uses Kafka, Security and authentication of data transmitted during cross-domain interconnection and interworking may be ensured by configuring TLS (Transport Layer Security) encryption and authentication.
The public welfare alliance chain visualization operation management platform on the right side of fig. 5 is a visualization for business applications, and may include a blockchain service platform, an identity authentication platform, an integrated management platform, a business audit platform, and a trusted computing platform. The block chain service platform management chain, the identity of a participant on the identity authentication platform management chain, the integrated management platform is used for butting a local reporting system and a block chain system, the service auditing platform is used for service analysis and auditing of reported data and is visual, and the trusted computing platform is another system for protecting the privacy data matched with the block chain in consideration of privacy data exchange in the future.
The target public welfare chain shared ledger in fig. 5 can be generated by each node of the target federation chain as shown in fig. 6 after the material confirmation flow is uplink, which may include information of each party concerned in the public welfare federation chain, such as registration, right confirmation, logout, release, and the like of the material, as shown in fig. 6 in detail.
In a specific implementation aspect, the donor and the recipient, whether individual or organization, may make donation reports of donated materials and donation confirmations of donated materials through charitable organizations, and the organization on the chain may include: charitable organizations, partner logistics parties, partner warehousing parties and corresponding regulatory agencies, which together build a target federation chain network as shown in fig. 4 and 5. Each public interest participant applies for a digital certificate from the authority CA to identify the identity of each public interest participant. Each public interest participant signs the information of the chain by using the private key information corresponding to the identity of the public interest participant, and the related donated material information can be chain only on the premise that the signature information is correct. The specific process of reporting the material donation data is shown in fig. 6.
In fig. 6, registration/check-out is performed first, which may include signature registration of donation declaration of donated materials by the donator, transportation and check of received donated materials by the charitable organization, the cooperative logistics party and the cooperative warehousing party, and if the test of the charitable organization and the cooperative warehousing party is correct, material registration may be initiated to the consensus node corresponding to the monitoring organization.
Specifically, the donor fills in donor data through a client installed on the terminal of the donor, signs the donor data by using a private key corresponding to the donor certificate, generates a donor signature, and sends the signed donor data to a consensus node of a target alliance chain, so that the donor data is reported. Then, the donor sends the corresponding donated materials to a charitable organization; after the charitable organization receives the donated materials, corresponding cooperative logistics parties and cooperative warehousing parties are determined, then the related information of the donated materials, the information of the determined cooperative logistics parties and cooperative warehousing parties and the information of the charitable organization are signed by a private key corresponding to a charitable organization certificate to generate a charitable organization signature, and the signed charitable organization data is sent to a consensus node of a target alliance chain through a corresponding client side of the charitable organization data to realize the report of the charitable organization data; after receiving donated materials from charitable organizations, the cooperative logistics party signs the information related to the donated materials, the determined information of the cooperative storage party and the information of the logistics party by using a private key corresponding to a logistics party certificate to generate a logistics party signature, and sends the signed logistics party data to a consensus node of a target alliance chain through a corresponding client side of the logistics party signature to realize the report of the logistics party data; after receiving the donated materials from the cooperative logistics party, the cooperative warehousing party signs the information of the transportation party transporting the donated materials, the information of the warehousing party and the like by using a private key corresponding to the warehousing party certificate to generate a warehousing party signature, and sends the signed warehousing party data to the consensus node of the target alliance chain through the corresponding client side of the warehousing party signature to realize the report of the warehousing party data.
When the common identification node of the target alliance chain receives the data reported by each node, signature verification is carried out on the common identification node, and if the signature verification of one reported data fails, the uplink fails; if the signatures pass the verification, the consensus node of the target alliance chain performs cross verification on the data uploaded by each party to see whether the data are consistent, and if the data are inconsistent, for example, if the number of donated materials reported by the cooperative warehousing party and the charitable organization are inconsistent, the chaining fails.
For example, during the process of donating materials and transporting and storing the donated materials to the cooperative warehousing department of the charitable organization, the donator, the cooperative warehousing department, and the cooperative logistics department will register and chain the donated material information, as shown in fig. 7, each KEY is the ID of each organization, the Value includes the material ID and the corresponding information including the amount of donated materials and the timestamp, and the digital signature certificate of each organization and the signature of the private KEY corresponding to the certificate on the Value, if the target public welfare chain shares the block of the same material ID already in the account (for the sake of uniqueness) or does not reach the consensus in the above cross-validation process, the chain fails. At the same time, it will check if the signature is correct, and if the signature is wrong, the uplink will fail.
If the signature verification and the cross verification are passed, the supervision authority of the target alliance chain initiates registration right-confirming operation on material declaration information, transportation material lists, warehousing check information and the like so as to generate block chain material certificates (namely the material certificates) at the common identification nodes of the target alliance chain.
The supervising authority will register the registered donated materials as block chain material voucher, as shown in fig. 7, KEY is the ID of the supervised materials, and Value contains the information of the type, name and quantity of the materials, including the information of the confirmed donator/donator and the information of which charitable organization, the cooperative logistics party and the cooperative warehousing party carry and store the donated materials, and the materials voucher is linked up after registration. If the asset ID is found to already exist, the uplink fails (here, the uniqueness of the asset ID on the chain is guaranteed).
And all the participant nodes of the target alliance chain can inquire related information according to the goods ID, and the information is transparent and sharable. At this time, the charitable organization or the government organization performs the material allocation, and the supervision organization allocates the donated materials received according to each party under the supervision material ID, records the material allocation data again for uplink, and performs the offline material distribution/transportation operation.
When the donated material is received by the donated party, there is an operation of registering confirmation of acceptance and recording the uplink. Meanwhile, the charitable organization, the cooperative warehousing party and the cooperative logistics party initiate the action of canceling the material voucher, and the supervision mechanism initiates the action of canceling the right confirmation so as to complete the closed loop on the chain of material donation.
After all parties cross-verify that the supervised material ID is issued for transportation, the supervision authority logs off the material certificate and signs with a private key corresponding to the supervision authority certificate to confirm the consensus result of all parties. If the inquired material ID information is inconsistent under the ID information of each public welfare participant corresponding to the supervised material ID, the cross validation fails, the result content is reported to the supervision authority and is synchronized to each public welfare participant, and evidence can be provided for further investigation.
According to the method for processing the material donation data based on the block chain, provided by the embodiment of the disclosure, the block chain network ecology of large-scale multi-chain multi-organization cooperation is realized through a block chain cross-domain interconnection technology. On one hand, the material donation data is linked up through a block chain technology, the data is reported to a main reporting party (including a donator, a charitable organization, a cooperative logistics party, a cooperative warehousing party and a donator) of each link to confirm the data right, and the reporting process can be traced; and a safe and credible data base is established for the whole material donation field by using a data encryption algorithm of the block chain distributed account book. Meanwhile, through the consensus processing process of block chain data storage, mutual trust of authenticity and effectiveness of all nodes added into the chain on the data is technically guaranteed, and the data on the chain has public trust on all public interest participants. On the other hand, by utilizing the sharing characteristic of the block chain distributed account book, timely and credible sharing of data among all institutions in the alliance chain is achieved, the data transparency is improved, furthermore, all public welfare participants can use the data to conduct statistics and analysis in an authorized range, for example, a monitoring institution can be in butt joint with a local data statistics and analysis system through the reported data, and the results of the statistics and analysis are displayed. In addition, the monitoring mechanism can also realize penetrating monitoring on the material donation data, and is favorable for realizing data interconnection and sharing of large-scale cooperation among organizations.
Fig. 8 schematically shows a block diagram of a blockchain-based donation data processing apparatus according to an embodiment of the present disclosure. As shown in fig. 8, the block chain-based material donation data processing apparatus 800 provided by the embodiment of the present disclosure may include a donation data receiving unit 810, a material credential generating unit 820, an allocation data receiving unit 830, a donated data receiving unit 840, and a material credential deregistration unit 850.
In this embodiment of the disclosure, the donation data receiving unit 810 may be configured to receive, by a consensus node of a target federation chain, donator data sent by a donator node of the target federation chain and public institution data sent by a public institution node of the target federation chain. The material certificate generating unit 820 may be configured to successfully verify the donor data and the public institution data through the consensus node of the target alliance chain, generate a material certificate, and store the material certificate in a target public institution shared ledger of the target alliance chain, so that the material issuing institution node of the target alliance chain obtains the material certificate. The distribution data receiving unit 830 may be configured to receive, by the consensus node of the target alliance chain, material distribution data sent by the material issuing mechanism node of the target alliance chain, where the material distribution data is generated according to the material certificate. Donated data receiving unit 840 may be configured to receive donated data sent by the donated nodes of the target federation chain. The material voucher logout unit 850 may be configured to successfully verify the material distribution data and the donated data through the consensus node of the target alliance chain, perform logout operation on the material voucher, and record the logout operation on the target public welfare chain shared ledger.
The device for processing material donation data based on block chains, provided by the embodiments of the present disclosure, builds a target alliance chain by using an alliance chain technology in the block chain technology, where the target alliance chain includes a consensus node, a donor node, a public institution node, a material issuing institution node and a donated node, and on one hand, receives the donor data sent by the donor node of the target alliance chain and the public institution data sent by the public institution node of the target alliance chain through the consensus node of the target alliance chain, and can also receive the material distribution data sent by the material issuing institution node of the target alliance chain and the donated data sent by the donated node of the target alliance chain, so as to ensure that the data reporting main body of each link participating in material donation leaves a trace on the right of the data ownership of the data, so that the reporting process can be traced, and data tampering can be prevented, the credibility of the data is ensured; on the other hand, when the data of the donator and the data of the public institution are successfully verified through the consensus node of the target alliance chain, a material certificate is generated and stored in the target public institution chain shared account book of the target alliance chain, so that the data of the donation of the material can be shared between institutions or users participating in each link of the donation of the material in time, the transparency of the data of the donation of the material is improved, the data of the donation of the material can be effectively monitored, and the data of the donation of the material can be used for realizing the cooperation between large-scale institutions and organizations.
In an exemplary embodiment, the donor data may include donor information, donor donation material information, and donor signature, and the public institution data may include public institution information, public institution donation material information, and public institution signature. The material voucher generating unit 820 may include: a first signature verification unit operable to verify the donor signature and the public welfare agency signature by a consensus node of the target federation chain; a first cross-validation unit, configured to cross-validate the donor information, the public institution information, the donor donation material information, and the public institution donation material information if the donor signature and the public institution signature are validated; the first data verification unit may be configured to determine that the donor data and the public institution data are successfully verified if the donor information is consistent with the public institution information, the donor donation material information is consistent with the public institution donation material information.
In an exemplary embodiment, the donor data may include donor information, donor donation material information, and donor signature, the public institution data may include charitable organization data, logistics party data, and warehousing party data, and the public institution node of the target federation chain may include charitable organization node, logistics party node, and warehousing party node of the target federation chain. The donation data receiving unit 810 may include: a charitable organization data receiving unit, which may be configured to receive, through a consensus node of the target federation chain, the charitable organization data sent by the charitable organization node of the target federation chain, where the charitable organization data may include charitable organization information, charitable organization donation material information, and a charitable organization signature; the logistics party data receiving unit may be configured to receive, by the consensus node of the target alliance chain, the logistics party data sent by the logistics party node of the target alliance chain, where the logistics party data may include logistics party information, logistics party donation material information, and a logistics party signature; the warehousing party data receiving unit may be configured to receive, by the consensus node of the target alliance chain, the warehousing party data sent by the warehousing party node of the target alliance chain, where the warehousing party data includes warehousing party information, warehousing party donation material information, and a warehousing party signature.
In an exemplary embodiment, the material voucher generating unit 820 may include: a second signature verification unit operable to verify the donor signature, the charitable organization signature, the logistic party signature, and the warehousing party signature by a consensus node of the target federation chain; a second cross-validation unit, configured to cross-validate the donor information, the charitable organization information, the logistics party information, the warehousing party information, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information if the donor signature, the charitable organization signature, the logistics party signature, and the warehousing party signature validate; the second data verification unit may be configured to determine that the donor data and the public welfare agency data are successfully verified if the donor information, the charitable organization information, the logistics party information, the warehousing party information, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information are consistent.
In an exemplary embodiment, the block chain-based material donation data processing apparatus 800 may further include: a first block storage unit, configured to sort the donor data, the charitable organization data, the logistics party data, and the warehousing party data according to timestamps of the donor data, the charitable organization data, the logistics party data, and the warehousing party data after the donor data and the public welfare agency data are successfully verified by a consensus node of the target federation chain; packaging the sorted donor data, charitable organization data, logistics party data and warehousing party data into a first block; and storing the first block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the first block.
In an exemplary embodiment, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information may each include a donation material identification. Wherein: a first key and a first key value can be included in the first block, the first key can include a donor identifier, the first key can include the donor asset identifier, the donor information, the donor signature, and a donor certificate corresponding to the donor signature; a second key and a second key value can be included in the first block, the second key can include a charitable organization identifier, and the second key can include the donation material identifier, the charitable organization information, a logistics party identifier, a warehousing party identifier, the charitable organization signature, and a charitable organization certificate corresponding to the charitable organization signature; a third key and a third key value can be included in the first block, the third key can include the logistics party identifier, and the third key value can include the donation material identifier, the logistics party information, the logistics party signature, and a logistics party certificate corresponding to the logistics party signature; the first block may include a fourth key and a fourth key value, the fourth key may include the warehousing party identifier, and the fourth key value may include the donation material identifier, the warehousing party information, the warehousing party signature, and a warehousing party certificate corresponding to the warehousing party signature.
In an exemplary embodiment, the material voucher generation unit 820 may include a second block storage unit, and the second block storage unit may be configured to sort the donor data, the charitable organization data, the logistic data, the warehousing data, and the material voucher according to the time stamps of the donor data, the charitable organization data, the logistic data, the warehousing data, and the material voucher; packaging the sorted donor data, charitable organization data, logistics party data, warehousing party data and material vouchers into a second block; and storing the second block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the second block.
In an exemplary embodiment, the material voucher may include a plurality of material vouchers. The material voucher generating unit 820 may include a third block storage unit, and the third block storage unit may be configured to sort the plurality of material vouchers according to timestamps of the plurality of material vouchers; packaging the sequenced material certificates into a third block; and storing the third block to the target public welfare chain shared account book so that the donor node, the charitable organization node, the logistics party node and the warehousing party node of the target alliance chain can acquire the third block.
In an exemplary embodiment, the donor donation material information, the charitable organization donation material information, the logistics party donation material information, and the warehousing party donation material information may each include a donation material identification. The material voucher may include a fifth key and a fifth key value, the fifth key may include a monitoring material identifier, and the fifth key may include the donation material identifier, donation material information, a donator identifier in the donator information, a donate identifier, a charitable organization identifier in the charitable organization information, a logistics party identifier in the logistics party information, a warehousing party identifier in the warehousing party information, logistics party material distribution information, warehousing party material distribution information, a monitoring authority signature, and a monitoring authority certificate corresponding to the monitoring authority signature. Wherein the donation material information is determined according to the donation material information of the donator, the charitable organization donation material information, the donation material information of the logistics party and the donation material information of the warehousing party.
In an exemplary embodiment, the block chain-based donation data processing apparatus 800 further includes: the target public welfare chain shared account book uploading unit may be configured to upload the target public welfare chain shared account book to a consensus node of a public welfare alliance chain, where the public welfare alliance chain includes the target alliance chain.
Other contents of the block chain-based material donation data processing apparatus according to the embodiments of the present disclosure may refer to the above-described embodiments.
It should be noted that although in the above detailed description several units of the device for action execution are mentioned, this division is not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Reference is now made to fig. 9, which illustrates a schematic diagram of an electronic device suitable for use in implementing embodiments of the present application. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
Referring to fig. 9, an electronic device provided in an embodiment of the present disclosure may include: a processor 901, a communication interface 902, a memory 903, and a communication bus 904.
Wherein the processor 901, the communication interface 902 and the memory 903 are in communication with each other via a communication bus 904.
Alternatively, the communication interface 902 may be an interface of a communication module, such as an interface of a GSM (Global System for Mobile communications) module. The processor 901 is used to execute programs. The memory 903 is used for storing programs. The program may comprise a computer program comprising computer operating instructions. Wherein, can include in the procedure: and (5) a program of the video client.
The processor 901 may be a central processing unit CPU, or an application Specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present disclosure.
The memory 903 may include a Random Access Memory (RAM) memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
Among them, the procedure can be specifically used for: receiving donor data sent by a donor node of a target alliance chain and public institution data sent by a public institution node of the target alliance chain through a common node of the target alliance chain; successfully verifying the donor data and the public institution data through the consensus node of the target alliance chain to generate a material certificate, and storing the material certificate into a target public institution shared account book of the target alliance chain so that the material issuing institution node of the target alliance chain can obtain the material certificate; receiving material distribution data sent by a material issuing mechanism node of the target alliance chain through a consensus node of the target alliance chain, wherein the material distribution data are generated according to the material certificate; receiving donated data sent by a donated node of the target federation chain; and successfully verifying the material distribution data and the donated data through the consensus node of the target alliance chain, executing logout operation on the material certificate, and recording the logout operation on the target public welfare chain shared account book.
It is to be understood that any number of elements in the drawings of the present disclosure are by way of example and not by way of limitation, and any nomenclature is used for differentiation only and not by way of limitation.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

1.一种基于区块链的物资捐赠数据处理方法,其特征在于,区块链系统中包括多个联盟链,每个联盟链包括对应行政划分区域内的公益参与方节点,所述公益参与方节点包括捐赠方节点、公益机构节点、物资发放机构节点和受捐方节点,每个联盟链具有其各自相对独立的公益链共享账本,以实现同一联盟链内的物资捐赠数据的共享,同时实现不同联盟链内的物资捐赠数据的独立,所述多个联盟链中包括目标联盟链,所述目标联盟链具有目标公益链共享账本,将包括所述目标联盟链的区块链系统称之为公益联盟链,其中,所述方法包括:1. A blockchain-based material donation data processing method, characterized in that the blockchain system includes a plurality of alliance chains, and each alliance chain includes a public welfare participant node in a corresponding administrative division area, and the public welfare participation Party nodes include donor nodes, public welfare organization nodes, material distribution organization nodes and donor nodes. Each alliance chain has its own relatively independent public welfare chain shared ledger to realize the sharing of material donation data within the same alliance chain, and at the same time Realize the independence of material donation data in different alliance chains. The multiple alliance chains include the target alliance chain, and the target alliance chain has the shared ledger of the target public welfare chain. The blockchain system including the target alliance chain is called is a public welfare alliance chain, wherein the method includes: 通过所述目标联盟链的共识节点接收所述目标联盟链的捐赠方节点发送的捐赠方数据和所述目标联盟链的公益机构节点发送的公益机构数据;Receive the donor data sent by the donor node of the target alliance chain and the public welfare organization data sent by the public welfare organization node of the target alliance chain through the consensus node of the target alliance chain; 通过所述目标联盟链的共识节点成功验证所述捐赠方数据和所述公益机构数据,生成物资凭证,并将所述物资凭证存储至所述目标联盟链的目标公益链共享账本中,以便所述目标联盟链的物资发放机构节点获取到所述物资凭证;Successfully verify the donor data and the public welfare organization data through the consensus node of the target alliance chain, generate material vouchers, and store the material vouchers in the target public welfare chain shared ledger of the target alliance chain, so that all The material issuing agency node of the target alliance chain obtains the material certificate; 通过所述目标联盟链的共识节点接收所述目标联盟链的物资发放机构节点发送的物资分配数据,所述物资分配数据是根据所述物资凭证生成的;Receive, through the consensus node of the target alliance chain, material distribution data sent by the material distribution agency node of the target alliance chain, where the material distribution data is generated according to the material certificate; 接收所述目标联盟链的受捐方节点发送的受捐方数据;Receive the recipient data sent by the recipient node of the target consortium chain; 通过所述目标联盟链的共识节点成功验证所述物资分配数据和所述受捐方数据,对所述物资凭证执行注销操作,并将其记录至所述目标公益链共享账本上;Successfully verify the material distribution data and the donor data through the consensus node of the target alliance chain, perform a cancellation operation on the material certificate, and record it on the target public welfare chain shared ledger; 将所述目标公益链共享账本上传至所述公益联盟链的共识节点。Upload the shared ledger of the target public welfare chain to the consensus node of the public welfare alliance chain. 2.根据权利要求1所述的方法,其特征在于,所述捐赠方数据包括捐赠方信息、捐赠方捐赠物资信息和捐赠方签名,所述公益机构数据包括公益机构信息、公益机构捐赠物资信息和公益机构签名;其中,通过所述目标联盟链的共识节点成功验证所述捐赠方数据和所述公益机构数据,包括:2. The method according to claim 1, wherein the donor data includes donor information, donated material information and donor signature, and the public welfare organization data includes public welfare organization information and public welfare organization donated material information. and the public welfare organization signature; wherein, the donor data and the public welfare organization data are successfully verified through the consensus node of the target alliance chain, including: 通过所述目标联盟链的共识节点验证所述捐赠方签名和所述公益机构签名;Verify the signature of the donor and the signature of the public welfare organization through the consensus node of the target alliance chain; 若所述捐赠方签名和所述公益机构签名验证通过,则交叉验证所述捐赠方信息和所述公益机构信息、所述捐赠方捐赠物资信息和所述公益机构捐赠物资信息;If the verification of the signature of the donor and the signature of the public welfare organization is passed, cross-verify the information of the donor and the information of the public welfare organization, the information of the materials donated by the donor and the information of the materials donated by the public welfare organization; 若所述捐赠方信息和所述公益机构信息、所述捐赠方捐赠物资信息和所述公益机构捐赠物资信息一致,则判定所述捐赠方数据和所述公益机构数据成功验证。If the donor information is consistent with the public welfare organization information, the donated material information and the public welfare organization information, it is determined that the donor data and the public welfare organization data are successfully verified. 3.根据权利要求1所述的方法,其特征在于,所述捐赠方数据包括捐赠方信息、捐赠方捐赠物资信息和捐赠方签名,所述公益机构数据包括慈善组织数据、物流方数据和仓储方数据,所述目标联盟链的公益机构节点包括所述目标联盟链的慈善组织节点、物流方节点和仓储方节点;其中,通过目标联盟链的共识节点接收所述目标联盟链的公益机构节点发送的公益机构数据,包括:3. The method according to claim 1, wherein the donor data includes donor information, donor material information and donor signature, and the public welfare organization data includes charitable organization data, logistics party data and warehousing. Party data, the public welfare institution nodes of the target alliance chain include charity organization nodes, logistics side nodes and warehousing side nodes of the target alliance chain; wherein, the public welfare institution nodes of the target alliance chain are received through the consensus node of the target alliance chain Nonprofit data sent, including: 通过所述目标联盟链的共识节点接收所述目标联盟链的慈善组织节点发送的所述慈善组织数据,所述慈善组织数据包括慈善组织信息、慈善组织捐赠物资信息和慈善组织签名;Receive the charitable organization data sent by the charitable organization node of the target consortium chain through the consensus node of the target consortium chain, where the charitable organization data includes charitable organization information, information on materials donated by charitable organizations, and charitable organization signatures; 通过所述目标联盟链的共识节点接收所述目标联盟链的物流方节点发送的所述物流方数据,所述物流方数据包括物流方信息、物流方捐赠物资信息和物流方签名;Receive, through the consensus node of the target consortium chain, the logistics party data sent by the logistics party node of the target consortium chain, where the logistics party data includes logistics party information, logistics party donated material information, and logistics party signature; 通过所述目标联盟链的共识节点接收所述目标联盟链的仓储方节点发送的所述仓储方数据,所述仓储方数据包括仓储方信息、仓储方捐赠物资信息和仓储方签名。The warehousing party data sent by the warehousing party node of the target consortium chain is received through the consensus node of the target consortium chain, and the warehousing party data includes the warehousing party information, the donated material information of the warehousing party, and the warehousing party's signature. 4.根据权利要求3所述的方法,其特征在于,通过所述目标联盟链的共识节点成功验证所述捐赠方数据和所述公益机构数据,包括:4. The method according to claim 3, characterized in that, successfully verifying the donor data and the public welfare organization data through a consensus node of the target alliance chain, comprising: 通过所述目标联盟链的共识节点验证所述捐赠方签名、所述慈善组织签名、所述物流方签名和所述仓储方签名;Verify the signature of the donor, the signature of the charitable organization, the signature of the logistics party and the signature of the warehousing party through the consensus node of the target alliance chain; 若所述捐赠方签名、所述慈善组织签名、所述物流方签名和所述仓储方签名验证通过,则交叉验证所述捐赠方信息、所述慈善组织信息、所述物流方信息和所述仓储方信息、所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息;If the signature of the donor, the signature of the charitable organization, the signature of the logistics party and the signature of the warehousing party are verified, cross-verify the information of the donor, the information of the charity organization, the information of the logistics party and the Information on the warehouse, information on materials donated by the donor, information on materials donated by the charitable organization, information on materials donated by the logistics party, and information on materials donated by the warehouse; 若所述捐赠方信息、所述慈善组织信息、所述物流方信息和所述仓储方信息、所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息一致,则判定所述捐赠方数据和所述公益机构数据成功验证。If the information of the donor, the information of the charitable organization, the information of the logistics party and the information of the warehousing party, the information of the materials donated by the donor, the information of the materials donated by the charitable organization, the information of the materials donated by the logistics party and the If the information on the materials donated by the warehouse is consistent, it is determined that the donor data and the public welfare organization data are successfully verified. 5.根据权利要求4所述的方法,其特征在于,通过所述目标联盟链的共识节点成功验证所述捐赠方数据和所述公益机构数据后,所述方法还包括:5. The method according to claim 4, wherein after successfully verifying the donor data and the public welfare organization data through the consensus node of the target alliance chain, the method further comprises: 按照所述捐赠方数据、所述慈善组织数据、所述物流方数据和所述仓储方数据的时间戳,对所述捐赠方数据、所述慈善组织数据、所述物流方数据和所述仓储方数据进行排序;According to the timestamps of the donor data, the charitable organization data, the logistics party data and the warehousing party data, compare the donor data, the charitable organization data, the logistics party data and the warehouse Sort the square data; 将排序后的所述捐赠方数据、所述慈善组织数据、所述物流方数据和所述仓储方数据打包进第一区块;Packing the sorted donor data, the charitable organization data, the logistics data and the warehousing data into the first block; 将所述第一区块存储至所述目标公益链共享账本,以便所述目标联盟链的捐赠方节点、慈善组织节点、物流方节点和仓储方节点均能够获取到所述第一区块。The first block is stored in the target public welfare chain shared ledger, so that the donor node, charitable organization node, logistics node and warehousing node of the target alliance chain can all obtain the first block. 6.根据权利要求5所述的方法,其特征在于,所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息均包括捐赠物资标识,其中:6. The method according to claim 5, wherein the donated material information of the donor, the donated material information of the charitable organization, the donated material information of the logistics party and the donated material information of the warehousing party all include donated materials. identification, where: 所述第一区块中包括第一键和第一键值,所述第一键包括捐赠方标识,所述第一键值包括所述捐赠物资标识、所述捐赠方信息、所述捐赠方签名及与所述捐赠方签名对应的捐赠方证书;The first block includes a first key and a first key value, the first key includes a donor identifier, and the first key value includes the donation material identifier, the donor information, the donor The signature and the donor certificate corresponding to the donor's signature; 所述第一区块中包括第二键和第二键值,所述第二键包括慈善组织标识,所述第二键值包括所述捐赠物资标识、所述慈善组织信息、物流方标识、仓储方标识、所述慈善组织签名及与所述慈善组织签名对应的慈善组织证书;The first block includes a second key and a second key value, the second key includes a charity organization identification, and the second key value includes the donated material identification, the charity organization information, the logistics party identification, The identity of the warehousing party, the signature of the charitable organization, and the charitable organization certificate corresponding to the signature of the charitable organization; 所述第一区块中包括第三键和第三键值,所述第三键包括所述物流方标识,所述第三键值包括所述捐赠物资标识、所述物流方信息、所述物流方签名和与所述物流方签名对应的物流方证书;The first block includes a third key and a third key value, the third key includes the logistics party identifier, and the third key value includes the donated material identification, the logistics party information, the The logistics party's signature and the logistics party's certificate corresponding to the logistics party's signature; 所述第一区块中包括第四键和第四键值,所述第四键包括所述仓储方标识,所述第四键值包括所述捐赠物资标识、所述仓储方信息、所述仓储方签名和与所述仓储方签名对应的仓储方证书。The first block includes a fourth key and a fourth key value, the fourth key includes the storage party identifier, and the fourth key value includes the donated material identification, the storage party information, the The warehouse party's signature and the warehouse party's certificate corresponding to the warehouse party's signature. 7.根据权利要求3所述的方法,其特征在于,将所述物资凭证存储至所述目标联盟链的目标公益链共享账本中,包括:7. The method according to claim 3, wherein storing the material certificate in the target public welfare chain shared ledger of the target alliance chain, comprising: 按照所述捐赠方数据、所述慈善组织数据、所述物流方数据、所述仓储方数据和所述物资凭证的时间戳,对所述捐赠方数据、所述慈善组织数据、所述物流方数据、所述仓储方数据和所述物资凭证进行排序;According to the donor data, the charitable organization data, the logistics party data, the warehousing party data, and the timestamp of the material voucher, the donor data, the charitable organization data, the logistics party data Sorting the data, the warehousing party data and the material voucher; 将排序后的所述捐赠方数据、所述慈善组织数据、所述物流方数据、所述仓储方数据和所述物资凭证打包进第二区块;Packing the sorted donor data, the charitable organization data, the logistics party data, the warehousing party data and the material voucher into the second block; 将所述第二区块存储至所述目标公益链共享账本,以便所述目标联盟链的捐赠方节点、所述慈善组织节点、所述物流方节点和所述仓储方节点均能够获取到所述第二区块。Store the second block in the shared ledger of the target public welfare chain, so that the donor node, the charity organization node, the logistics party node and the warehousing party node of the target alliance chain can obtain all the information. the second block. 8.根据权利要求3所述的方法,其特征在于,所述物资凭证包括多个物资凭证;其中,将所述物资凭证存储至所述目标联盟链的目标公益链共享账本中,包括:8. The method according to claim 3, wherein the material certificate comprises a plurality of material certificates; wherein, storing the material certificate in the target public welfare chain shared ledger of the target alliance chain comprises: 按照多个物资凭证的时间戳,对多个物资凭证进行排序;Sort multiple material documents according to their timestamps; 将排序后的多个物资凭证打包进第三区块;Pack the sorted multiple material vouchers into the third block; 将所述第三区块存储至所述目标公益链共享账本,以便所述目标联盟链的捐赠方节点、慈善组织节点、物流方节点和仓储方节点均能够获取到所述第三区块。The third block is stored in the target public welfare chain shared ledger, so that the donor node, charitable organization node, logistics node and warehousing node of the target alliance chain can all obtain the third block. 9.根据权利要求7或8所述的方法,其特征在于,所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息均包括捐赠物资标识;其中,9. The method according to claim 7 or 8, wherein the information on materials donated by the donor, the information on materials donated by the charitable organization, the information on materials donated by the logistics party, and the information on materials donated by the warehousing party include: Donation material identification; of which, 所述物资凭证包括第五键和第五键值,所述第五键包括监管物资标识,所述第五键值包括所述捐赠物资标识、捐赠物资信息、所述捐赠方信息中的捐赠方标识、受捐方标识、所述慈善组织信息中的慈善组织标识、所述物流方信息中的物流方标识、所述仓储方信息中的仓储方标识、物流方物资分配信息、仓储方物资分配信息、监管机构签名及与所述监管机构签名对应的监管机构证书;The material certificate includes a fifth key and a fifth key value, the fifth key includes a supervision material identifier, and the fifth key value includes the donated material identifier, donated material information, and the donor in the donor information. ID, ID of the recipient, ID of the charitable organization in the information of the charitable organization, ID of the logistics party in the information of the logistics party, ID of the storage party in the information of the storage party, material distribution information of the logistics party, material distribution of the storage party information, the signature of the supervisory authority, and the supervisory authority certificate corresponding to the signature of the supervisory authority; 其中,所述捐赠物资信息根据所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息确定的。The donated material information is determined according to the donated material information of the donor, the donated material information of the charitable organization, the donated material information of the logistics party, and the donated material information of the warehousing party. 10.一种基于区块链的物资捐赠数据处理装置,其特征在于,区块链系统中包括多个联盟链,每个联盟链包括对应行政划分区域内的公益参与方节点,所述公益参与方节点包括捐赠方节点、公益机构节点、物资发放机构节点和受捐方节点,每个联盟链具有其各自相对独立的公益链共享账本,以实现同一联盟链内的物资捐赠数据的共享,同时实现不同联盟链内的物资捐赠数据的独立,所述多个联盟链中包括目标联盟链,所述目标联盟链具有目标公益链共享账本,将包括所述目标联盟链的区块链系统称之为公益联盟链,其中,所述装置包括:10. A block chain-based material donation data processing device, characterized in that the block chain system includes a plurality of consortium chains, each consortium chain includes a public welfare participant node in a corresponding administrative division area, and the public welfare participation Party nodes include donor nodes, public welfare organization nodes, material distribution organization nodes and donor nodes. Each alliance chain has its own relatively independent public welfare chain shared ledger to realize the sharing of material donation data within the same alliance chain, and at the same time Realize the independence of material donation data in different alliance chains. The multiple alliance chains include the target alliance chain, and the target alliance chain has the shared ledger of the target public welfare chain. The blockchain system including the target alliance chain is called is a public welfare alliance chain, wherein the device includes: 捐赠数据接收单元,用于通过所述目标联盟链的共识节点接收所述目标联盟链的捐赠方节点发送的捐赠方数据和所述目标联盟链的公益机构节点发送的公益机构数据;A donation data receiving unit, configured to receive, through the consensus node of the target alliance chain, the donor data sent by the donor node of the target alliance chain and the public welfare organization data sent by the public welfare organization node of the target alliance chain; 物资凭证生成单元,用于通过所述目标联盟链的共识节点成功验证所述捐赠方数据和所述公益机构数据,生成物资凭证,并将所述物资凭证存储至所述目标联盟链的目标公益链共享账本中,以便所述目标联盟链的物资发放机构节点获取到所述物资凭证;A material certificate generation unit, used to successfully verify the donor data and the public welfare organization data through the consensus node of the target alliance chain, generate material certificates, and store the material certificates in the target public welfare of the target alliance chain. In the chain shared ledger, so that the material issuing agency node of the target alliance chain can obtain the material certificate; 分配数据接收单元,用于通过所述目标联盟链的共识节点接收所述目标联盟链的物资发放机构节点发送的物资分配数据,所述物资分配数据是根据所述物资凭证生成的;an allocation data receiving unit, configured to receive, through the consensus node of the target alliance chain, material allocation data sent by the material distribution agency node of the target alliance chain, where the material allocation data is generated according to the material certificate; 受捐数据接收单元,用于接收所述目标联盟链的受捐方节点发送的受捐方数据;a donated data receiving unit, configured to receive the recipient data sent by the recipient node of the target alliance chain; 物资凭证注销单元,用于通过所述目标联盟链的共识节点成功验证所述物资分配数据和所述受捐方数据,对所述物资凭证执行注销操作,并将其记录至所述目标公益链共享账本上;The material certificate cancellation unit is used to successfully verify the material distribution data and the donor data through the consensus node of the target alliance chain, perform a cancellation operation on the material certificate, and record it to the target public welfare chain on the shared ledger; 目标公益链共享账本上传单元,用于将所述目标公益链共享账本上传至所述公益联盟链的共识节点。The target public welfare chain shared account book uploading unit is used to upload the target public welfare chain shared account book to the consensus node of the public welfare alliance chain. 11.根据权利要求10所述的装置,其特征在于,所述捐赠方数据包括捐赠方信息、捐赠方捐赠物资信息和捐赠方签名,所述公益机构数据包括公益机构信息、公益机构捐赠物资信息和公益机构签名;其中,所述物资凭证生成单元包括:11. The device according to claim 10, wherein the donor data includes donor information, donated material information and donor signature, and the public welfare organization data includes public welfare organization information and public welfare organization donated material information. and the public welfare organization; wherein, the material voucher generating unit includes: 第一签名验证单元,用于通过所述目标联盟链的共识节点验证所述捐赠方签名和所述公益机构签名;a first signature verification unit, configured to verify the signature of the donor and the signature of the public welfare organization through the consensus node of the target alliance chain; 第一交叉验证单元,用于若所述捐赠方签名和所述公益机构签名验证通过,则交叉验证所述捐赠方信息和所述公益机构信息、所述捐赠方捐赠物资信息和所述公益机构捐赠物资信息;a first cross-verification unit, configured to cross-verify the donor information and the public welfare institution information, the donated material information of the donor and the public welfare institution if the verification of the donor's signature and the public welfare organization's signature is passed donated material information; 第一数据验证单元,用于若所述捐赠方信息和所述公益机构信息、所述捐赠方捐赠物资信息和所述公益机构捐赠物资信息一致,则判定所述捐赠方数据和所述公益机构数据成功验证。A first data verification unit, configured to determine that the donor data and the public welfare organization are consistent with the information on the donor and the public welfare organization, and the information on the materials donated by the donor and the information on the materials donated by the public welfare organization Data successfully validated. 12.根据权利要求10所述的装置,其特征在于,所述捐赠方数据包括捐赠方信息、捐赠方捐赠物资信息和捐赠方签名,所述公益机构数据包括慈善组织数据、物流方数据和仓储方数据,所述目标联盟链的公益机构节点包括所述目标联盟链的慈善组织节点、物流方节点和仓储方节点;其中,所述捐赠数据接收单元包括:12. The device according to claim 10, wherein the donor data includes donor information, donated material information and donor signature, and the public welfare organization data includes charitable organization data, logistics party data and warehousing. Party data, the public welfare institution nodes of the target alliance chain include the charity organization nodes, logistics side nodes and warehousing side nodes of the target alliance chain; wherein, the donation data receiving unit includes: 慈善组织数据接收单元,用于通过所述目标联盟链的共识节点接收所述目标联盟链的慈善组织节点发送的所述慈善组织数据,所述慈善组织数据包括慈善组织信息、慈善组织捐赠物资信息和慈善组织签名;A charitable organization data receiving unit, configured to receive the charitable organization data sent by the charitable organization node of the target consortium chain through the consensus node of the target consortium chain, where the charitable organization data includes information on charitable organizations and information on materials donated by charitable organizations and charitable organizations; 物流方数据接收单元,用于通过所述目标联盟链的共识节点接收所述目标联盟链的物流方节点发送的所述物流方数据,所述物流方数据包括物流方信息、物流方捐赠物资信息和物流方签名;A logistics party data receiving unit, configured to receive the logistics party data sent by the logistics party node of the target consortium chain through the consensus node of the target consortium chain, where the logistics party data includes the logistics party information and the donated material information of the logistics party and the logistics party's signature; 仓储方数据接收单元,用于通过所述目标联盟链的共识节点接收所述目标联盟链的仓储方节点发送的所述仓储方数据,所述仓储方数据包括仓储方信息、仓储方捐赠物资信息和仓储方签名。A storage-side data receiving unit, configured to receive the storage-side data sent by the storage-side node of the target alliance chain through the consensus node of the target alliance chain, where the storage-side data includes storage-side information and information on donated materials by the storage-side signed with the warehousing party. 13.根据权利要求12所述的装置,其特征在于,所述物资凭证生成单元包括:13. The apparatus according to claim 12, wherein the material voucher generating unit comprises: 第二签名验证单元,用于通过所述目标联盟链的共识节点验证所述捐赠方签名、所述慈善组织签名、所述物流方签名和所述仓储方签名;a second signature verification unit, configured to verify the signature of the donor, the signature of the charitable organization, the signature of the logistics party and the signature of the warehousing party through the consensus node of the target alliance chain; 第二交叉验证单元,用于若所述捐赠方签名、所述慈善组织签名、所述物流方签名和所述仓储方签名验证通过,则交叉验证所述捐赠方信息、所述慈善组织信息、所述物流方信息和所述仓储方信息、所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息;A second cross-verification unit, configured to cross-verify the donor's information, the charitable organization's information, the information of the logistics party and the information of the storage party, the information of the donated materials by the donor, the information of the materials donated by the charitable organization, the information of the materials donated by the logistics party and the information of the materials donated by the storage party; 第二数据验证单元,用于若所述捐赠方信息、所述慈善组织信息、所述物流方信息和所述仓储方信息、所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息一致,则判定所述捐赠方数据和所述公益机构数据成功验证。The second data verification unit is used for if the donor information, the charitable organization information, the logistics party information and the warehousing party information, the donated material information of the donor, the donated material information of the charitable organization, the If the information on materials donated by the logistics party is consistent with the information on materials donated by the warehousing party, it is determined that the donor data and the public welfare organization data are successfully verified. 14.根据权利要求13所述的装置,其特征在于,所述装置还包括:14. The apparatus of claim 13, wherein the apparatus further comprises: 第一区块存储单元,用于通过所述目标联盟链的共识节点成功验证所述捐赠方数据和所述公益机构数据后,按照所述捐赠方数据、所述慈善组织数据、所述物流方数据和所述仓储方数据的时间戳,对所述捐赠方数据、所述慈善组织数据、所述物流方数据和所述仓储方数据进行排序;将排序后的所述捐赠方数据、所述慈善组织数据、所述物流方数据和所述仓储方数据打包进第一区块;将所述第一区块存储至所述目标公益链共享账本,以便所述目标联盟链的捐赠方节点、慈善组织节点、物流方节点和仓储方节点均能够获取到所述第一区块。The first block storage unit is used for successfully verifying the donor data and the public welfare organization data through the consensus node of the target alliance chain, according to the donor data, the charitable organization data, the logistics party data and the timestamp of the warehousing party data, sort the donor party data, the charitable organization data, the logistics party data and the warehousing party data; The charitable organization data, the logistics party data and the warehousing party data are packaged into the first block; the first block is stored in the target public welfare chain shared ledger, so that the donor node of the target alliance chain, The charitable organization node, the logistics side node, and the warehousing side node can all obtain the first block. 15.根据权利要求14所述的装置,其特征在于,所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息均包括捐赠物资标识,其中:15 . The device according to claim 14 , wherein the information on materials donated by the donor, the information on materials donated by the charitable organization, the information on materials donated by the logistics party, and the information on materials donated by the warehousing party all include donated materials. 16 . identification, where: 所述第一区块中包括第一键和第一键值,所述第一键包括捐赠方标识,所述第一键值包括所述捐赠物资标识、所述捐赠方信息、所述捐赠方签名及与所述捐赠方签名对应的捐赠方证书;The first block includes a first key and a first key value, the first key includes a donor identifier, and the first key value includes the donation material identifier, the donor information, the donor The signature and the donor certificate corresponding to the donor's signature; 所述第一区块中包括第二键和第二键值,所述第二键包括慈善组织标识,所述第二键值包括所述捐赠物资标识、所述慈善组织信息、物流方标识、仓储方标识、所述慈善组织签名及与所述慈善组织签名对应的慈善组织证书;The first block includes a second key and a second key value, the second key includes a charity organization identification, and the second key value includes the donated material identification, the charity organization information, the logistics party identification, The identity of the warehousing party, the signature of the charitable organization, and the charitable organization certificate corresponding to the signature of the charitable organization; 所述第一区块中包括第三键和第三键值,所述第三键包括所述物流方标识,所述第三键值包括所述捐赠物资标识、所述物流方信息、所述物流方签名和与所述物流方签名对应的物流方证书;The first block includes a third key and a third key value, the third key includes the logistics party identifier, and the third key value includes the donated material identification, the logistics party information, the The logistics party's signature and the logistics party's certificate corresponding to the logistics party's signature; 所述第一区块中包括第四键和第四键值,所述第四键包括所述仓储方标识,所述第四键值包括所述捐赠物资标识、所述仓储方信息、所述仓储方签名和与所述仓储方签名对应的仓储方证书。The first block includes a fourth key and a fourth key value, the fourth key includes the storage party identifier, and the fourth key value includes the donated material identification, the storage party information, the The warehouse party's signature and the warehouse party's certificate corresponding to the warehouse party's signature. 16.根据权利要求12所述的装置,其特征在于,所述物资凭证生成单元包括:16. The apparatus according to claim 12, wherein the material voucher generating unit comprises: 第二区块存储单元,用于按照所述捐赠方数据、所述慈善组织数据、所述物流方数据、所述仓储方数据和所述物资凭证的时间戳,对所述捐赠方数据、所述慈善组织数据、所述物流方数据、所述仓储方数据和所述物资凭证进行排序;将排序后的所述捐赠方数据、所述慈善组织数据、所述物流方数据、所述仓储方数据和所述物资凭证打包进第二区块;将所述第二区块存储至所述目标公益链共享账本,以便所述目标联盟链的捐赠方节点、所述慈善组织节点、所述物流方节点和所述仓储方节点均能够获取到所述第二区块。The second block storage unit is used for storing the data on the donor, the data on the donor, the data on the logistics, the data on the warehousing, and the time stamp of the material certificate according to the data on the donor, the data on the charity organization, the data on the logistics party, and the data on the The charitable organization data, the logistics party data, the warehousing party data and the material vouchers are sorted; the sorted donor party data, the charitable organization data, the logistics party data, the warehousing party data The data and the material certificate are packaged into the second block; the second block is stored in the shared ledger of the target public welfare chain, so that the donor node of the target alliance chain, the charity organization node, the logistics Both the party node and the repository party node can obtain the second block. 17.根据权利要求12所述的装置,其特征在于,所述物资凭证包括多个物资凭证;其中,所述物资凭证生成单元包括:17. The apparatus according to claim 12, wherein the material certificate comprises a plurality of material certificates; wherein the material certificate generating unit comprises: 第三区块存储单元,用于按照多个物资凭证的时间戳,对多个物资凭证进行排序;将排序后的多个物资凭证打包进第三区块;将所述第三区块存储至所述目标公益链共享账本,以便所述目标联盟链的捐赠方节点、慈善组织节点、物流方节点和仓储方节点均能够获取到所述第三区块。The third block storage unit is used to sort the multiple material certificates according to the timestamps of the multiple material certificates; package the sorted multiple material certificates into the third block; store the third block in the The target public welfare chain shares the ledger, so that the donor node, charitable organization node, logistics party node and warehousing party node of the target alliance chain can all obtain the third block. 18.根据权利要求16或17所述的装置,其特征在于,所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息均包括捐赠物资标识;其中,18. The device according to claim 16 or 17, wherein the information on materials donated by the donor, the information on materials donated by the charitable organization, the information on materials donated by the logistics party, and the information on materials donated by the warehousing party all include: Donation material identification; of which, 所述物资凭证包括第五键和第五键值,所述第五键包括监管物资标识,所述第五键值包括所述捐赠物资标识、捐赠物资信息、所述捐赠方信息中的捐赠方标识、受捐方标识、所述慈善组织信息中的慈善组织标识、所述物流方信息中的物流方标识、所述仓储方信息中的仓储方标识、物流方物资分配信息、仓储方物资分配信息、监管机构签名及与所述监管机构签名对应的监管机构证书;The material certificate includes a fifth key and a fifth key value, the fifth key includes a supervision material identifier, and the fifth key value includes the donated material identifier, donated material information, and the donor in the donor information. ID, ID of the recipient, ID of the charitable organization in the information of the charitable organization, ID of the logistics party in the information of the logistics party, ID of the storage party in the information of the storage party, material distribution information of the logistics party, material distribution of the storage party information, the signature of the supervisory authority, and the supervisory authority certificate corresponding to the signature of the supervisory authority; 其中,所述捐赠物资信息根据所述捐赠方捐赠物资信息、所述慈善组织捐赠物资信息、所述物流方捐赠物资信息和所述仓储方捐赠物资信息确定的。The donated material information is determined according to the donated material information of the donor, the donated material information of the charitable organization, the donated material information of the logistics party, and the donated material information of the warehousing party. 19.一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述程序被处理器执行时实现如权利要求1至9任一项所述的方法。19. A computer-readable storage medium, characterized in that a computer program is stored thereon, and when the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented. 20.一种电子设备,其特征在于,包括:20. An electronic device, characterized in that, comprising: 至少一个处理器;at least one processor; 存储装置,配置为存储至少一个程序,当所述至少一个程序被所述至少一个处理器执行时,使得所述至少一个处理器实现如权利要求1至9中任一项所述的方法。A storage device configured to store at least one program which, when executed by the at least one processor, causes the at least one processor to implement the method of any one of claims 1 to 9.
CN202011186298.1A 2020-10-30 2020-10-30 Material donation data processing method based on block chain and related equipment Active CN112001663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011186298.1A CN112001663B (en) 2020-10-30 2020-10-30 Material donation data processing method based on block chain and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011186298.1A CN112001663B (en) 2020-10-30 2020-10-30 Material donation data processing method based on block chain and related equipment

Publications (2)

Publication Number Publication Date
CN112001663A CN112001663A (en) 2020-11-27
CN112001663B true CN112001663B (en) 2021-02-12

Family

ID=73475290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011186298.1A Active CN112001663B (en) 2020-10-30 2020-10-30 Material donation data processing method based on block chain and related equipment

Country Status (1)

Country Link
CN (1) CN112001663B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988887B (en) * 2021-02-07 2022-07-15 中国科学院信息工程研究所 Foundation system based on block chain
CN113222344A (en) * 2021-04-15 2021-08-06 卓尔智联(武汉)研究院有限公司 Block chain data processing method and device and storage medium
CN113095707B (en) * 2021-04-23 2024-04-16 厦门大学 Block chain-based emergency material management method, device and equipment
CN113362940B (en) * 2021-06-30 2022-10-14 电子科技大学 Hierarchical block chain medical facility scheduling method under penetrating supervision
CN114331726A (en) * 2021-12-29 2022-04-12 浙江吉利控股集团有限公司 Block chain-based donation transaction method and device and computer-readable storage medium
CN114463056A (en) * 2022-01-24 2022-05-10 深圳市信联征信有限公司 Charitable data management method, charitable donation management system, equipment and medium
CN114897611B (en) * 2022-05-16 2025-01-24 合肥工业大学 A donation system and method based on privacy contract technology
CN114897526A (en) * 2022-05-18 2022-08-12 腾讯科技(深圳)有限公司 Public interest donation system, method, device, equipment and storage medium
CN114925861B (en) * 2022-05-18 2025-03-04 上海海事大学 Old clothes recycling operation system and operation method based on blockchain technology
CN115481450A (en) * 2022-09-30 2022-12-16 中国银行股份有限公司 Public welfare certificate generation method and device based on Internet of things and NFT technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040585A (en) * 2017-02-22 2017-08-11 阿里巴巴集团控股有限公司 Method and device for service verification
CN109615339A (en) * 2018-12-24 2019-04-12 浙江大学 Volunteer donation service integrated public welfare crowdfunding system and method based on alliance chain
CN109993657A (en) * 2019-03-19 2019-07-09 阿里巴巴集团控股有限公司 Public welfare forestry based on block chain offers method and device, electronic equipment
CN110597813A (en) * 2019-09-10 2019-12-20 腾讯科技(深圳)有限公司 Block chain-based information recording method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829702B (en) * 2018-04-27 2024-03-15 平安科技(深圳)有限公司 Public welfare economic system management method and device based on alliance chain and storage medium
CN111767568B (en) * 2020-06-23 2023-11-10 中国工商银行股份有限公司 Charity project management method, node and system based on alliance chain
CN111831747A (en) * 2020-06-24 2020-10-27 西安纸贵互联网科技有限公司 Charitable Donation Service System and Charitable Donation Service Platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040585A (en) * 2017-02-22 2017-08-11 阿里巴巴集团控股有限公司 Method and device for service verification
CN109615339A (en) * 2018-12-24 2019-04-12 浙江大学 Volunteer donation service integrated public welfare crowdfunding system and method based on alliance chain
CN109993657A (en) * 2019-03-19 2019-07-09 阿里巴巴集团控股有限公司 Public welfare forestry based on block chain offers method and device, electronic equipment
CN110597813A (en) * 2019-09-10 2019-12-20 腾讯科技(深圳)有限公司 Block chain-based information recording method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112001663A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN111353175B (en) Data processing method, device, equipment, blockchain system and storage medium
Huang et al. Drugledger: A practical blockchain system for drug traceability and regulation
CN112001663A (en) Material donation data processing method based on block chain and related equipment
EP3704620B1 (en) System and method for blockchain-based notification
US10708060B2 (en) System and method for blockchain-based notification
Bokolo Exploring interoperability of distributed Ledger and Decentralized Technology adoption in virtual enterprises
Hasan et al. Blockchain architectures for physical internet: A vision, features, requirements, and applications
JP7479393B2 (en) SYSTEM AND METHOD FOR A VIRTUAL DISTRIBUTED LEDGER NETWORK
JP7759437B2 (en) Blockchain-based system and method for communicating, storing, and processing data over a blockchain network
Weber et al. Untrusted business process monitoring and execution using blockchain
CN110839029B (en) Microservice registration method and device
Khan et al. Blockchain and edge computing–based architecture for participatory smart city applications
CN110599181A (en) Data processing method, device and equipment based on block chain and storage medium
CN111931215B (en) Data management method and device and storage medium
Sangeetha et al. Blockchain for IoT enabled supply chain management-A systematic review
Viriyasitavat et al. Building trust of Blockchain-based Internet-of-Thing services using public key infrastructure
CN112053271B (en) Public service platform data evidence management method and system based on block chain
CN110471982A (en) Blockchain-based data processing method and device
WO2023019903A1 (en) Cross-chain transaction system and method, and device and storage medium
CN111339550B (en) Comment information credibility method based on blockchain technology
CN116708463A (en) Information processing method, device, equipment and medium based on multiple blockchains
CN113469852A (en) Block chain donation platform
Joseph Blockchain for open data–exploring conceptual underpinnings and practice
Akella et al. Design of a blockchain-based decentralized architecture for sustainable agriculture: Research-in-progress
Toma et al. Secure IoT supply chain management solution using blockchain and smart contracts technology

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