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
party
information
donor
node
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

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Primary Health Care (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (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. A method for processing material donation data based on blockchains is characterized in that a blockchain system comprises a plurality of alliance chains, each alliance chain comprises public interest participant nodes in a corresponding administrative division area, each public interest participant node comprises a donator node, a public interest mechanism node, a material issuing mechanism node and a donated party node, each alliance chain has a public interest chain shared account book which is relatively independent of the alliance chain, so that sharing of material donation data in the same alliance chain is achieved, independence of material donation data in different alliance chains is achieved, the plurality of alliance chains comprise a target alliance chain, the target alliance chain has a target public interest chain shared account book, and the blockchain system comprising the target alliance chain is called a public interest chain, wherein the method comprises the following steps:
receiving donor data sent by a donor node of the 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;
successfully verifying the material distribution data and the donated data through a consensus node of the target alliance chain, executing logout operation on the material certificate, and recording the logout operation on a target public welfare chain shared account book;
and uploading the target public welfare chain shared account book to a common identification node of the public welfare alliance chain.
2. The method of claim 1, wherein the donor data comprises donor information, donor donation material information, and donor signature, and the public institution data comprises public institution information, public institution donation material information, and public institution signature; wherein successfully verifying the donor data and the public institution data by a consensus node of the target federation chain comprises:
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.
3. The method of claim 1, wherein the donor data comprises donor information, donor donation asset information, and donor signature, wherein the public institution data comprises charitable organization data, logistics party data, and warehousing party data, and wherein the public institution nodes of the target federation chain comprise charitable organization nodes, logistics party nodes, and warehousing party nodes of the target federation chain; the method for receiving the public service institution data sent by the public service institution node of the target alliance chain through the consensus node of the target alliance chain comprises the following steps:
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.
4. The method of claim 3, wherein successfully verifying the donor data and the public institution data by a consensus node of the target federation chain comprises:
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.
5. The method of claim 4, wherein upon successful verification of the donor data and the public institution data by a consensus node of the target federation chain, the method further comprises:
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.
6. The method of claim 5, wherein 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.
7. The method of claim 3, wherein storing the asset credential in a target commonweal chain shared ledger of the target federation chain comprises:
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.
8. The method of claim 3, wherein the material document comprises a plurality of material documents; 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.
9. The method of claim 7 or 8, wherein 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 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.
10. A block chain-based material donation data processing device, wherein a block chain system includes a plurality of federation chains, each federation chain includes a public interest participant node in a corresponding administrative division area, the public interest participant node includes a donor node, a public interest institution node, a material issuing institution node and a donated party node, each federation chain has its respective relatively independent public interest chain shared account book to implement sharing of material donation data in the same federation chain and implement independence of material donation data in different federation chains, the plurality of federation chains includes a target federation chain having a target public interest chain shared account book, and a block chain system including the target federation chain is called a public interest chain, wherein the device includes:
a donation data receiving unit, configured to receive, by a consensus node of the target alliance chain, donator data sent by a donator node of the target alliance chain and public institution data sent by a public institution 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;
the material certificate logout unit is used for successfully verifying the material distribution data and the donated party data through a 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;
and the target public welfare chain shared account book uploading unit is used for uploading the target public welfare chain shared account book to the consensus node of the public welfare alliance chain.
11. The apparatus of claim 10, wherein the donor data comprises donor information, donor donation material information, and donor signature, and wherein the public institution data comprises public institution information, public institution donation material information, and public institution signature; wherein, the material voucher generating unit comprises:
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.
12. The apparatus of claim 10, wherein the donor data comprises donor information, donor donation asset information, and donor signature, wherein the public institution data comprises charitable organization data, logistics party data, and warehousing party data, and wherein the public institution nodes of the target federation chain comprise 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.
13. The apparatus of claim 12, wherein the material voucher generation unit comprises:
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.
14. The apparatus of claim 13, further comprising:
a first block storage unit, configured to, after successfully verifying the donor data and the public welfare agency data through a consensus node of the target alliance chain, sort the donor data, the charitable organization data, the logistic data, and the warehousing data according to timestamps of the donor data, the charitable organization data, the logistic data, and the warehousing 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.
15. The apparatus of claim 14, wherein 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.
16. The apparatus of claim 12, wherein the material voucher generation unit comprises:
a second block storage unit, configured to sort 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.
17. The apparatus of claim 12, wherein the material document comprises a plurality of material documents; wherein, the material voucher generating unit comprises:
the third block storage unit is used for 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.
18. The apparatus of claim 16 or 17, wherein 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 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.
19. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 9.
20. An electronic device, comprising:
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 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 (5)

* 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
CN114897611A (en) * 2022-05-16 2022-08-12 合肥工业大学 Donation system and method based on privacy contract 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 阿里巴巴集团控股有限公司 A kind of method and device of business verification
CN109615339A (en) * 2018-12-24 2019-04-12 浙江大学 Volunteer based on alliance's chain contributes integration of services public good crowd and raises system and method
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 阿里巴巴集团控股有限公司 A kind of method and device of business verification
CN109615339A (en) * 2018-12-24 2019-04-12 浙江大学 Volunteer based on alliance's chain contributes integration of services public good crowd and raises system and method
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
CN112001663B (en) Material donation data processing method based on block chain and related equipment
CN111353175B (en) Data processing method, device, equipment, block chain system and storage medium
Huang et al. Drugledger: A practical blockchain system for drug traceability and regulation
Xie et al. A survey of blockchain technology applied to smart cities: Research issues and challenges
EP3704620B1 (en) System and method for blockchain-based notification
Weber et al. Untrusted business process monitoring and execution using blockchain
Hasan et al. Blockchain architectures for physical internet: A vision, features, requirements, and applications
Bokolo Exploring interoperability of distributed Ledger and Decentralized Technology adoption in virtual enterprises
CN111931215B (en) Data management method and device and storage medium
Sangeetha et al. Blockchain for IoT enabled supply chain management-A systematic review
CN112053271B (en) Public service platform data evidence management method and system based on block chain
CN110471982B (en) Data processing method and device based on block chain
CN111507851A (en) Block chain-based medical insurance claim settlement processing method, device and system and storage medium
Kotey et al. Blockchain interoperability: the state of heterogenous blockchain‐to‐blockchain communication
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
CN113469852A (en) Block chain donation platform
WO2023019903A1 (en) Cross-chain transaction system and method, and device and storage medium
WALES Using blockchain to enable untrusted business process monitoring and execution
Baig et al. A Study on the adoption of blockchain for IoT devices in supply chain
Imteaj et al. Foundations of blockchain: theory and applications
Akella et al. Design of a blockchain-based decentralized architecture for sustainable agriculture: Research-in-progress
CN116596551A (en) Supply chain product tracing method based on block chain, storage medium and electronic equipment
CN110727735A (en) Method, device and equipment for cooperatively completing task event based on block chain technology
Ghimire Brief survey and testbed development for blockchain based Internet of Things
Trung et al. An overview of blockchain applications and its impact to Vietnam context

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