CN110599095B - Block chain network-based hazardous waste treatment method and node of block chain network - Google Patents

Block chain network-based hazardous waste treatment method and node of block chain network Download PDF

Info

Publication number
CN110599095B
CN110599095B CN201910866641.8A CN201910866641A CN110599095B CN 110599095 B CN110599095 B CN 110599095B CN 201910866641 A CN201910866641 A CN 201910866641A CN 110599095 B CN110599095 B CN 110599095B
Authority
CN
China
Prior art keywords
waste
node
blockchain network
transportation
list
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
CN201910866641.8A
Other languages
Chinese (zh)
Other versions
CN110599095A (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 CN201910866641.8A priority Critical patent/CN110599095B/en
Publication of CN110599095A publication Critical patent/CN110599095A/en
Application granted granted Critical
Publication of CN110599095B publication Critical patent/CN110599095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/602Providing cryptographic facilities or services
    • 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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0832Special goods or special handling procedures, e.g. handling of hazardous or fragile goods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Tourism & Hospitality (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Bioethics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Educational Administration (AREA)
  • Primary Health Care (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a hazardous waste treatment method based on a block chain network, nodes of the block chain network and a storage medium; the hazardous waste treatment method based on the block chain network comprises the following steps: waste transfer information sent by a waste production unit node is obtained, and the waste transfer information is added into a dangerous waste list stored in a blockchain network; waste transportation information sent by a transportation unit node is obtained, and the waste transportation information is added into the hazardous waste list; obtaining waste receiving information sent by a processing unit node, and adding the waste receiving information into the hazardous waste list; and responding to the query request of the hazardous waste list sent by the environmental protection unit node, and sending the hazardous waste list to the environmental protection unit node. According to the invention, the circulation efficiency of the hazardous waste list can be improved, and meanwhile, the convenience and effectiveness of the environmental protection unit for supervising the hazardous waste transfer process are improved.

Description

Block chain network-based hazardous waste treatment method and node of block chain network
Technical Field
The present invention relates to a blockchain technology, and in particular, to a method for processing hazardous waste based on a blockchain network, nodes of the blockchain network, and a storage medium.
Background
Hazardous waste refers to waste that presents a significant threat to human health or the environment when handled, stored, transferred, handled, and disposed of improperly. The transfer process of the hazardous waste from the waste production unit to the hazardous waste treatment unit needs to be monitored, so that the hazardous waste is prevented from leaking in the transportation process.
In the scheme provided by the related technology, a paper bill system is usually applied, namely, the participants for transferring the hazardous waste record key information and data in the transfer process on the bill, and finally send the bill to related government environmental protection units for supervision.
Disclosure of Invention
The embodiment of the invention provides a hazardous waste treatment method based on a blockchain network, nodes of the blockchain network and a storage medium, which can improve the circulation efficiency of hazardous waste bills, enable government environmental protection units to quickly obtain related information in the hazardous waste transfer process and improve the simplicity of hazardous waste supervision.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a dangerous waste treatment method based on a block chain network, which comprises the following steps:
Waste transfer information sent by a waste production unit node is obtained, and the waste transfer information is added into a dangerous waste list stored in a blockchain network;
waste transportation information sent by a transportation unit node is obtained, and the waste transportation information is added into the hazardous waste list;
obtaining waste receiving information sent by a processing unit node, and adding the waste receiving information into the hazardous waste list;
and responding to the query request of the hazardous waste list sent by the environmental protection unit node, and sending the hazardous waste list to the environmental protection unit node.
The embodiment of the invention provides a node of a block chain network, which comprises the following components:
the first adding module is used for obtaining waste transfer information sent by the waste production unit node and adding the waste transfer information into a dangerous waste list stored in a block chain network;
the second adding module is used for obtaining the waste transportation information sent by the transportation unit node and adding the waste transportation information into the hazardous waste list;
the third adding module is used for obtaining waste receiving information sent by the processing unit node and adding the waste receiving information into the hazardous waste list;
and the list sending module is used for responding to the query request of the hazardous waste list sent by the environmental protection unit node and sending the hazardous waste list to the environmental protection unit node.
The embodiment of the invention provides a node of a block chain network, which comprises the following components:
a memory for storing executable instructions;
and the processor is used for realizing the block chain network-based hazardous waste processing method provided by the embodiment of the invention when executing the executable instructions stored in the memory.
The embodiment of the invention provides a storage medium which stores executable instructions for realizing the dangerous waste processing method based on the blockchain network when a processor executes the executable instructions.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the blockchain network is used as a circulation platform of the hazardous waste list, for the production unit node, the transportation unit node and the treatment unit node in the blockchain network, corresponding treatment information can be added to the hazardous waste list in the process of treating hazardous waste, and for the environmental protection unit node in the blockchain network, a query request can be initiated to query the hazardous waste list at any time, so that the circulation efficiency of the hazardous waste list is improved, and the convenience of monitoring hazardous waste by government environmental protection units is also improved.
Drawings
FIG. 1 is a schematic diagram of an alternative architecture of a blockchain network-based hazardous waste treatment system provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative functional architecture of a blockchain network provided by embodiments of the present invention;
FIG. 3 is a schematic diagram of an alternative architecture of a node of a blockchain network provided by an embodiment of the present invention;
FIG. 4 is a schematic flow chart of an alternative transaction verification provided by an embodiment of the present invention;
FIG. 5A is a schematic flow chart of an alternative method for processing hazardous waste based on a blockchain network in accordance with an embodiment of the present invention;
FIG. 5B is a schematic flow chart of another alternative method for processing hazardous waste based on a blockchain network in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of a business body of a blockchain network according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a hazardous waste coupon provided by an embodiment of the present invention;
FIG. 8 is a schematic flow chart of another alternative method for processing hazardous waste based on a blockchain network according to an embodiment of the present invention.
Detailed Description
The present invention will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present invention more apparent, and the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, the terms "first", "second", "third" and the like are merely used to distinguish similar objects and do not represent a specific ordering of the objects, it being understood that the "first", "second", "third" may be interchanged with a specific order or sequence, as permitted, to enable embodiments of the invention described herein to be practiced otherwise than as illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before describing embodiments of the present invention in further detail, the terms and terminology involved in the embodiments of the present invention will be described, and the terms and terminology involved in the embodiments of the present invention will be used in the following explanation.
1) Transactions (transactions), which are equivalent to computer terms "transactions," include operations that need to be submitted to a blockchain network for execution, and do not refer solely to transactions in a business context, which embodiments of the present invention follow in view of the terminology "transactions" being colloquially used in blockchain technology.
For example, a deployment (Deploy) transaction is used to install a specified smart contract to a node in a blockchain network and is ready to be invoked; call (Invoke) transactions are used to append records of transactions in the blockchain by invoking smart contracts and to operate on the blockchain's state database, including update operations (including adding, deleting, and modifying key-value pairs in the state database) and query operations (i.e., querying key-value pairs in the state database).
2) Blockchain (Blockchain) is a storage structure of encrypted, chained transactions formed by blocks (blocks).
For example, the header of each chunk may include both the hash values of all transactions in the chunk and the hash values of all transactions in the previous chunk, thereby enabling tamper-and anti-counterfeiting of transactions in the chunk based on the hash values; the newly generated transactions, after being filled into the block and passing through the consensus of the nodes in the blockchain network, are appended to the tail of the blockchain to form a chain growth.
3) A blockchain network (Blockchain Network) incorporates new blocks into a set of nodes of the blockchain by way of consensus.
4) Ledger (Ledger), a generic term for blockchains (also known as Ledger data) and state databases that are synchronized with blockchains.
Wherein the blockchain records transactions in the form of files in a file system; the state database records transactions in the blockchain in the form of different types of Key (Key) Value pairs for supporting quick queries for transactions in the blockchain.
5) Smart contacts (Smart contacts), also known as chain code (Chaincode) or application code, are deployed in a program in a node of a blockchain network, which executes Smart Contracts invoked in received transactions to update or query the key values of a ledger database.
6) Consensus (Consensus), a process in a blockchain network for agreeing on transactions in blocks among the involved nodes, the agreed blocks will be appended to the tail of the blockchain, and the mechanisms implementing Consensus include Proof of Work (PoW), proof of equity (PoS, proofofStake), proof of equity (DPoS), proof of authorized Proof of-status), proof of elapsed time (PoET, proof of ElapsedTime), and the like.
7) Waste production unit: units that are at risk for production, such as chemical enterprises that can expel hazardous chemical waste during production.
8) Transportation unit: the hazardous waste is transported from the waste producing unit to a unit of processing units, such as a carrier with hazardous waste transportation qualification.
9) Processing unit: and a unit for intensively treating the hazardous waste by using a specific means (such as an incineration method).
10 Environmental protection unit): the government environmental protection department mainly manages and controls the transferring process of the hazardous waste.
Referring to fig. 1, fig. 1 is a schematic architecture diagram of a blockchain network-based hazardous waste processing system 100 according to an embodiment of the present invention, including a blockchain network 200 (illustratively including nodes 210-1 to 210-3), an authentication center 300, a hazardous waste collection system 400 (illustratively including terminals 410 and graphical interfaces 420 of the hazardous waste collection system 400), a waste unit system 500 (illustratively including terminals 510 and graphical interfaces 520 of the waste unit system 500), a transportation unit system 600 (illustratively including terminals 610 and graphical interfaces 620 of the transportation unit system 600), a processing unit system 700 (illustratively including terminals 710 and graphical interfaces 720 of the processing unit system 700), and an environmental protection unit system 800 (illustratively including terminals 810 and graphical interfaces 820 of the environmental protection unit system 800), respectively.
The type of blockchain network 200 is flexible and diverse, and may be any of public, private, or federated chains, for example. Taking public chains as an example, any electronic device of a business entity, such as a user terminal and a server, can access the blockchain network 200 without authorization; taking the alliance chain as an example, after the service body obtains the authorization, the electronic device (for example, a terminal/server) under the jurisdiction of the service body can access the blockchain network 200, and at this time, the service body becomes a special node, namely a client node, in the blockchain network 200.
It is noted that the client node may provide only functionality to support the traffic agent to initiate transactions (e.g., for storing data in the uplink or querying data on the chain), and may be implemented by default or selectively (e.g., depending on the specific traffic needs of the traffic agent) for functions of the regular (native) node 210 of the blockchain network 200, such as the ordering function, consensus services and ledger functions described below, etc. Thus, the data and service processing logic of the service body can be migrated to the blockchain network 200 to the greatest extent, and the credibility and traceability of the data and service processing process are realized through the blockchain network 200.
Blockchain network 200 receives transactions submitted from terminals (e.g., terminals 410 belonging to hazardous waste collection system 400, terminals 510 belonging to hazardous waste collection system 500, and terminals belonging to other systems shown in fig. 1) of different business entities (e.g., hazardous waste collection system 400, hazardous waste collection system 500, and other systems shown in fig. 1), performs transactions to update or query the ledger, and displays various intermediate or final results of performing the transactions at the user interface of the terminals (e.g., graphical interface 420 of terminal 410, graphical interface 520 of terminal 510, and graphical interfaces of other terminals). It will be appreciated that, in the above description, the blockchain network 200 that receives and executes transactions refers specifically to the native node 210 in the blockchain network 200, and of course, when a client node of a service entity has a function (e.g., consensus function, ledger function) of the native node 210 in the blockchain network 200, the corresponding client node may also be included.
An exemplary application of a blockchain network is described below with multiple business entities accessing the blockchain network to implement hazardous waste handling.
Referring to fig. 1, after the authority is obtained, a plurality of service entities involved in the hazardous waste treatment link, such as a hazardous waste collection system 400, a waste production unit system 500, a transportation unit system 600, a treatment unit system 700 and an environmental protection unit system 800, can access the blockchain network 200 by the terminal of each service entity, and become a client node in the blockchain network 200.
When the collected weight of the hazardous waste reaches the weight threshold, the hazardous waste collection system 400 displays the collected weight on the graphical interface 420, automatically generates a coupon creation request through the terminal 410, generates a transaction corresponding to the update operation according to the coupon creation request, designates an intelligent contract required to be invoked for implementing the update operation and parameters transferred to the intelligent contract in the transaction, and the transaction also carries a digital signature signed by the hazardous waste collection system 400 (for example, a digest of the transaction is encrypted using a private key in a digital certificate of the hazardous waste collection system 400, which is issued by the authentication center 300), and broadcasts the transaction to the blockchain network 200.
When a transaction is received in a node 210 in the blockchain network 200, a digital signature carried by the transaction is verified, after the digital signature is verified successfully, whether the dangerous waste collection system 400 has transaction permission is confirmed according to the identity of the dangerous waste collection system 400 carried in the transaction, and any one verification judgment of the digital signature and the permission verification can cause the transaction to fail. Signing node 210's own digital signature after verification is successful (e.g., the digest of the transaction is encrypted using node 210-1's private key) and continues to broadcast in blockchain network 200.
After receiving the transaction successfully verified, the nodes 210 with ordering function in the blockchain network 200 populate the new block with the transaction and broadcast to the nodes in the blockchain network 200 providing consensus services.
The node 210 in the blockchain 200 that provides the consensus service performs a consensus process on the new block to agree, the node 210 that provides the ledger function adds the new block to the tail of the blockchain and performs a transaction in the new block, that is, adds a key value pair corresponding to the hazardous waste coupon in the ledger database, where in order to ensure the uniqueness of the created hazardous waste coupon, a unique coupon number may be set for the hazardous waste coupon when the hazardous waste coupon is created, and in addition, the creation date of the hazardous waste coupon may be set, which is not limited in the embodiment of the present invention.
Similarly, a business person on the side of the waste production unit system 500 may log in the waste production unit system 500 in the graphical interface 520 of the terminal 510, input waste transfer information, generate a transaction corresponding to the update operation by the terminal 510 according to the waste transfer information, specify an intelligent contract required to be invoked for implementing the update operation and parameters transferred to the intelligent contract in the transaction, and the transaction also carries a digital signature signed by the waste production unit system 500 and broadcasts the transaction to the blockchain network 200.
After the nodes 210 in the blockchain network 200 are verified, blockfilled and consensus-matched, a new block is added to the tail of the blockchain, and a transaction in the new block is executed, namely, a key value pair corresponding to the hazardous waste coupon in the ledger database is updated according to the waste transfer information.
Similarly, a business person on the side of the environmental protection unit system 800 may log in the environmental protection unit system 800 in the graphical interface 820 of the terminal 810, input a dangerous waste list query request, generate a transaction corresponding to the query operation according to the dangerous waste list query request by the terminal 810, specify an intelligent contract required to be invoked for implementing the query operation and parameters transferred to the intelligent contract in the transaction, and the transaction also carries a digital signature signed by the environmental protection unit system 800 and broadcasts the transaction to the blockchain network 200.
After the nodes 210 in the blockchain network 200 are verified, block filled and consensus-matched, a new block is added to the tail of the blockchain, and a transaction in the new block is executed, namely, a key value pair corresponding to the dangerous waste coupon is queried from the account book database, and a query result is returned, wherein the query condition can be a coupon number, a coupon creation date, a unit name or other conditions.
As can be appreciated, the type of data that a business entity can query/update in the blockchain network 200 can be achieved by restricting the authority of transactions that the business entity can initiate, for example, when the environmental protection unit system 800 has the authority to initiate transactions that query the hazardous waste list, the business personnel of the environmental protection unit system 800 can input a hazardous waste list query request in the graphical interface 820 of the terminal 810 and generate a transaction broadcast for querying the hazardous waste list by the terminal 810 into the blockchain network 200 to obtain the corresponding hazardous waste list from the blockchain network 200;
When the waste unit system 500 has the authority to initiate a transaction to submit waste transfer information, business personnel on the waste unit system 500 side may enter the waste transfer information in the graphical interface 520 of the terminal 510 and generate a transaction broadcast by the terminal 510 to submit the waste transfer information into the blockchain network 200 to add the waste transfer information to the corresponding hazardous waste coupon in the blockchain network 200.
Referring to fig. 2, fig. 2 is a schematic diagram of a functional architecture of a blockchain network 200 according to an embodiment of the present invention, including an application layer 201, a consensus layer 202, a network layer 203, a data layer 204, and a resource layer 205, which are described below.
The resource layer 205 encapsulates computing, storage and communication resources, such as in computers, servers/clusters and clouds, that implement the various nodes 210 in the blockchain network 200, abstracts and provides a unified interface to the data layer 204 to mask the variability of the underlying hardware that implements the resource layer 205.
Computing resources include various forms of processors such as Central Processing Units (CPUs), application specific integrated circuits (ASICs, application Specific Integrated Circuit), application specific integrated circuits, and Field programmable gate arrays (FPGAs, fields-Programmable Gate Array).
Storage resources include various types of storage media such as various volatile memory and non-volatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), or a Programmable Read-Only Memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory.
The communication resources include various links for communication between nodes 210 of the blockchain network, between blockchain network 200 and traffic principals.
Data layer 204 encapsulates various data structures that implement the ledger, including blockchains implemented with files in a file system, a state database of key values, and presence certificates (e.g., hash trees of transactions in blocks).
The network layer 203 encapsulates the functions of Point-to-Point (P2P) network protocols, data propagation mechanisms and data verification mechanisms, access authentication mechanisms, and service body identity management.
Wherein the P2P network protocol enables communication between nodes 210 in the blockchain network 200, a data propagation mechanism ensures propagation of transactions in the blockchain network 200, and a data verification mechanism is used to enable reliability of data transmission between nodes 210 based on cryptography methods (e.g., digital certificates, digital signatures, public/private key pairs); the access authentication mechanism is used for authenticating the identity of the service entity joining the blockchain network 200 according to the actual service scene, and giving the authority of the service entity to access the blockchain network 200 when the authentication is passed; the service principal identity management is used to store the identity of the service principal that is allowed to access the blockchain network 200, as well as the rights (e.g., the type of transaction that can be initiated).
The consensus layer 202 encapsulates the functionality of the mechanism by which nodes 210 in the blockchain network 200 agree on blocks (i.e., consensus mechanism), transaction management, and ledger management.
The consensus mechanism comprises consensus algorithms such as POS, POW and DPOS, and supports the pluggable of the consensus algorithms.
The transaction management is used for verifying the digital signature carried in the transaction received by the node 210, verifying the identity information of the service entity, and judging and confirming whether the service entity has authority to conduct the transaction according to the identity information (reading the related information from the identity management of the service entity); for a business entity that obtains authorization to access the blockchain network 200, all have digital certificates issued by the authentication center 300, and the business entity signs the submitted transaction with a private key in its own digital certificate, thereby declaring its legal identity.
And (3) account book management: for maintaining blockchain and ledger databases. For the block with consensus, adding to the tail of the block chain; executing the transaction in the block with consensus, updating the key value pairs in the state database when the transaction comprises an updating operation, querying the key value pairs in the ledger database when the transaction comprises a querying operation, and returning a query result to the business entity. A query operation supporting multiple dimensions of a ledger database, comprising: querying a block based on a block sequence number (e.g., a hash value of a transaction); inquiring the block according to the block hash value; inquiring the block according to the transaction serial number; inquiring the transaction according to the transaction serial number; inquiring account data of the service body according to the account (serial number) of the service body; the blockchains in the channel are queried according to the channel name.
The application layer 201 encapsulates various services that the blockchain network can implement, including tracing, certification and verification of transactions, etc.
An exemplary architecture of a node of a blockchain network implementing embodiments of the present invention is described below, it being understood that the hardware architecture of any type of node in blockchain network 200 may be implemented in accordance with the hardware architecture described below.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a node 210 in a blockchain network 200 according to an embodiment of the present invention, where the node 210 shown in fig. 3 includes: at least one processor 2110, memory 2140, and at least one network interface 2120. The various components in node 210 are coupled together by bus system 2130. It is appreciated that the bus system 2130 is used to facilitate connected communications between the components. The bus system 2130 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 3 as bus system 2130.
The processor 2110 may be an integrated circuit chip with signal processing capabilities such as a general purpose processor, which may be a microprocessor or any conventional processor, or the like, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
The memory 2140 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 2140 optionally includes one or more storage devices physically located remote from processor 2110.
Memory 2140 includes volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a random access Memory (RAM, random Access Memory). The memory 2140 described in embodiments of the present invention is intended to comprise any suitable type of memory.
In some embodiments, memory 2140 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 2141 including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
the network communication module 2142 for reaching other computing devices via one or more (wired or wireless) network interfaces 2120, the exemplary network interfaces 2120 include: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB, universal Serial Bus), etc.;
In some embodiments, the nodes of the blockchain network provided by the embodiments of the present invention may be implemented in software, and fig. 3 shows a software module 2143 stored in the memory 2140, which may be software in the form of a program and a plug-in, and includes the following submodules: the first adding module 21431, the second adding module 21432, the third adding module 21433, and the coupon sending module 21434 are logical, and thus may be arbitrarily combined or further split according to the implemented functions.
The functions of the respective modules will be described hereinafter.
To facilitate an understanding of the process of verifying digital certificates and digital signatures, embodiments of the present invention provide a flow diagram of transaction verification as shown in fig. 4, which will be described in connection with the steps shown in fig. 4.
In step 101, a waste unit node sends a certificate request to an authentication center, wherein the certificate request includes a node public key and identity information of the waste unit node.
The embodiment of the invention is exemplified by the transaction verification process between the waste unit node and the original node of the blockchain network, and the transaction verification process between the nodes of the blockchain network and other nodes is the same. When the waste generating unit node is initialized, a certificate request is sent to the authentication center, the certificate request comprises identity information of the waste generating unit node and a public key of a key pair generated by the waste generating unit node, the key pair is generated through an asymmetric encryption algorithm, the public key of the key pair is named as a node public key for the convenience of distinguishing, and the private key of the key pair is named as a node private key.
In step 102, the authentication center hashes the identity information and the node public key to obtain a first identity information digest, and encrypts the first identity information digest according to the center private key to obtain an intra-certificate signature.
The authentication center also generates a key pair according to an asymmetric encryption algorithm, and for convenience of distinction, the public key in the key pair is named as a central public key, and the private key in the key pair is named as a central private key. After the certificate request is obtained, the authentication center hashes and encrypts the identity information and the node public key included in the certificate request to obtain a first identity information abstract, encrypts the first identity information abstract according to the center private key to obtain an internal certificate signature, wherein the internal certificate signature is a digital signature in the digital certificate, and the naming is different only for convenience in distinguishing.
In step 103, the authentication center issues a root certificate and a digital certificate to the waste unit node, wherein the root certificate includes the center public key, and the digital certificate includes the node public key, the identity information, and the intra-certificate signature.
The authentication center generates a digital certificate based on the node public key, the identity information and the signature in the certificate, generates a root certificate based on the center public key, and sends the root certificate and the digital certificate to the provider node to finish certificate issuing. It should be noted that, the certificate issuing process of the native node in the blockchain network is the same as that of steps 101 to 103, and will not be described herein.
In step 104, the waste transfer information is hashed and encrypted by the waste production unit node to obtain a first transfer information digest, and the first transfer information digest is encrypted according to a node private key to obtain a digital signature.
In step 105, the waste unit node sends the waste transfer information, the digital signature, and the digital certificate to the blockchain network.
The waste producing unit node initiates a transaction for submitting waste transfer information to the blockchain network, and carries a digital signature and a digital certificate in the transaction.
In step 106, the blockchain network decrypts the obtained signature in the digital certificate according to the central public key in the root certificate to obtain the first identity information abstract.
Here, the native node in the blockchain network also holds the root certificate issued by the authentication center. In the transaction verification process, the digital certificate is verified first, specifically, the original node decrypts the signature in the certificate of the digital certificate sent by the waste generating unit node according to the central public key in the root certificate, and a first identity information abstract is obtained.
In step 107, the blockchain network hashes the public key of the node and the identity information in the digital certificate to obtain a second identity information digest.
In step 108, when the first id is the same as the second id, the blockchain network decrypts the digital signature sent by the node of the unit of waste production according to the node public key, so as to obtain the first transfer id in the digital signature.
When the first identity information abstract is the same as the second identity information abstract, the original node of the blockchain network determines that the node public key is from a user of the waste production unit node claimed by the digital certificate, and then the original node of the blockchain network decrypts the digital signature sent by the waste production unit node according to the node public key in the digital certificate to obtain the first transfer information abstract in the digital signature. In addition, when the first identity information digest is different from the second identity information digest, the native node of the blockchain network determines that the verification fails.
In step 109, the blockchain network hashes the waste transfer information to obtain a second transfer information digest.
In step 110, the blockchain network determines that the waste transfer information verification was successful when the first transfer information digest is the same as the second transfer information digest.
When the first transfer information abstract is the same as the second transfer information abstract, the original node in the blockchain network determines that the information in the transaction initiated by the waste unit node is not tampered, the verification is completed, and subsequent operations such as block filling and consensus can be performed on the transaction. By the means of verifying the digital certificate and the digital signature, the credibility of the information is ensured.
The method for processing the hazardous waste based on the blockchain network provided by the embodiment of the invention will be described in connection with the exemplary application and implementation of the blockchain network provided by the embodiment of the invention.
Referring to fig. 5A, fig. 5A is a schematic flow chart of an alternative method for processing hazardous waste based on a blockchain network according to an embodiment of the present invention, and will be described with reference to the steps shown in fig. 5A.
In step 201, the blockchain network obtains waste transfer information sent by a waste unit node, and adds the waste transfer information to a hazardous waste coupon stored by the blockchain network.
The dangerous waste collection node, the waste production unit node, the transportation unit node, the processing unit node and the environmental protection unit node are all client nodes formed by accessing the electronic equipment governed by the business body into the blockchain network. According to different types of the blockchain network, the access condition of the service body is different, for example, in the case that the blockchain network is a public chain, the service body can be directly accessed to the blockchain network without verification; in the case that the blockchain network is a alliance chain, an access condition can be set, and the electronic equipment of the service body is allowed to be accessed only when the service body meets the access condition, so that the electronic equipment becomes a client node in the blockchain network, for example, the access condition is that the service body holds an authorized identifier issued by the environmental protection unit system.
In the process of transferring the waste, the waste is firstly produced by a waste producing unit, and business personnel of the waste producing unit system input waste transfer information in electronic equipment (namely waste producing unit nodes) according to actual conditions and send the waste transfer information to a blockchain network through the waste producing unit nodes. The nodes of the blockchain network acquire waste transfer information sent by the waste production unit nodes and add the waste transfer information to the dangerous waste list stored in the blockchain network, wherein the dangerous waste list can be created according to a list creation request initiated by the waste production unit nodes to the blockchain network or according to a list creation request initiated by the dangerous waste collection nodes to the blockchain network. The specific content of the waste transfer information is not limited in the embodiment of the invention, and for example, the waste transfer information includes a waste unit name, a hazardous waste type, a hazardous waste weight and a waste date.
In some embodiments, the above-described addition of the waste transfer information to the blockchain network-stored hazardous waste coupon may be accomplished in such a way: the blockchain network broadcasts the waste transfer information so that nodes in the blockchain network fill the waste transfer information into updated blocks and append the updated blocks to the tail of a blockchain when the updated blocks are consistent, wherein the updated blocks comprise correlations between the waste transfer information and hazardous waste coupons.
The waste unit node initiates a transaction for submitting waste transfer information to the blockchain network, wherein the transaction carries a digital certificate of the waste unit node and a digital signature of the waste unit node for the transaction. When a transaction is received in a node in the blockchain network, the digital certificate and the digital signature carried by the transaction are verified, and on the basis that the digital certificate and the digital signature are successfully verified, the digital signature of the node and the digital certificate of the node are carried in the transaction, and the transaction is continuously broadcasted in the blockchain network. After receiving the successful transaction, the nodes with ordering function in the blockchain network fill the transaction into a new block and broadcast the new block to the nodes providing consensus service in the blockchain network, wherein the new block comprises the correlation between the waste transfer information and the dangerous waste list. Nodes in the blockchain network providing consensus services perform consensus processes on new blocks to agree on, nodes providing ledger functions append new blocks to the tail of the blockchain and execute transactions in the new blocks: namely, for the transaction of submitting the waste transfer information, the key value pair corresponding to the hazardous waste list is updated in the account book, so that the correlation between the waste transfer information and the hazardous waste list is established. It should be noted that, the above-mentioned functions of consensus and maintenance of the blockchain may be performed by all nodes (including client nodes such as the unit node of production waste) in the blockchain network, or may be nodes of the blockchain network other than the client nodes such as the unit node of production waste, and the functions of the blockchain network are implemented by using these nodes, so that performance fluctuation of the blockchain network caused by the fact that the nodes depend on the client nodes completely is avoided.
In step 202, the blockchain network obtains waste transportation information sent by a transportation unit node and adds the waste transportation information to the hazardous waste coupon.
The transportation unit is used for transporting the hazardous waste from the waste production unit to the processing unit, and likewise, service personnel of the transportation unit system input waste transportation information in electronic equipment (namely transportation unit nodes) under jurisdiction according to the related condition of the received hazardous waste and send the waste transportation information to the blockchain network through the transportation unit nodes. And the nodes of the block chain network acquire waste transportation information sent by the transportation unit nodes, and after verification, block filling and consensus are consistent, the waste transportation information is added into the dangerous waste list stored in the block chain network. The embodiment of the invention does not limit the specific content of the waste transportation information, for example, the waste transportation information includes the name of the processing unit, the hazardous waste receiving date, the hazardous waste weight and the transportation destination.
In step 203, the blockchain network obtains waste receipt information sent by a processing unit node and adds the waste receipt information to the hazardous waste list.
When the processing unit receives dangerous waste transferred by the transportation unit, service personnel of the processing unit system input waste receiving information in electronic equipment (namely processing unit nodes) under jurisdiction according to the actual condition of the received dangerous waste, and send the waste receiving information to the blockchain network through the processing unit nodes. The nodes of the block chain network acquire waste receiving information sent by the processing unit nodes, and after verification, block filling and consensus are consistent, the waste receiving information is added into the dangerous waste list stored in the block chain network. The specific content of the waste receiving information is not limited in the embodiment of the invention, and for example, the waste receiving information includes a name of a waste producing unit, a hazardous waste receiving date, a hazardous waste type and a hazardous waste weight.
In step 204, the blockchain network sends the hazardous waste coupon to an environmental protection unit node in response to a query request sent by the environmental protection unit node for the hazardous waste coupon.
Service personnel of the environmental protection unit system can send a query request to the blockchain network through the environmental protection unit node, wherein the query request comprises query conditions of the dangerous waste list, such as the block number of the block where the dangerous waste list is located, the list number generated by the node of the blockchain network when the dangerous waste list is created, the list creation date or the unit name and the like. And after the nodes of the block chain network acquire the query request and are verified, block filling and consensus are consistent, the dangerous waste list requested by the query request is sent to the environmental protection unit node, so that business personnel operating the environmental protection unit node can audit the dangerous waste list. It should be noted that, there is no strict sequence between the step 204 and the steps 201 to 203, that is, the environmental protection unit node may send a query request to the blockchain network at any time after the hazardous waste coupon is created, so as to obtain the hazardous waste coupon.
In some embodiments, after step 201, further comprising: the blockchain network performs forward verification on the waste treatment information through an intelligent contract deployed to the blockchain network by the environmental protection unit node; when the current check passes, adding the waste treatment information to the hazardous waste list; wherein the waste treatment information includes at least one of: waste transport information, waste receiving information.
The environmental protection unit node may initiate a deployment transaction to the blockchain network that includes an intelligent contract, wherein the intelligent contract includes forward verification rules. After verifying the deployment transaction, and the block filling and consensus are consistent, the nodes of the blockchain network deploy the intelligent contracts into the blockchain network. The nodes of the blockchain network perform forward verification on the waste treatment information sent by the client nodes according to forward verification rules in the intelligent contracts, wherein the waste treatment information comprises at least one of waste transportation information and waste receiving information, and the forward verification rules can be used for comparing the weight of dangerous waste or comparing and equivalent dangerous waste types. For example, when the forward check rule is to compare the dangerous waste weight and the waste treatment information is the waste transportation information sent by the transportation unit node, comparing the dangerous waste weight included in the waste transportation information with the dangerous waste weight included in the waste transfer information in the dangerous waste list, and if the two types of the dangerous waste weights are consistent, determining that the forward check is passed; if not, the forward verification is not passed. When the forward verification passes, adding the waste treatment information into a dangerous waste list of the blockchain network; when the forward verification fails, the waste treatment information and the dangerous waste list stored in the blockchain network are sent to the environmental protection unit node, so that business personnel of the environmental protection unit node can conduct manual verification on specific conditions. For the case of sending the waste treatment information and the hazardous waste list stored in the blockchain network to the environmental protection unit node, when the node of the blockchain network obtains the result of passing the manual audit sent by the environmental protection unit node, the waste treatment information is added to the hazardous waste list. Through the forward verification mode, the effectiveness of the waste treatment information added to the dangerous waste list is ensured, and the client node is prevented from forging the waste treatment information.
As can be seen from the above exemplary implementation of fig. 5A according to the embodiment of the present invention, the present invention achieves the circulation of the hazardous waste list through the blockchain network, which improves the circulation efficiency of the hazardous waste list, and the blockchain network can respond to the query request sent by the environmental protection unit node at any time, so that the business personnel of the environmental protection unit node can audit any link of the hazardous waste transfer, and improves the convenience and effectiveness of supervision.
In some embodiments, referring to fig. 5B, fig. 5B is another optional flowchart of a hazardous waste treatment method based on a blockchain network according to an embodiment of the present invention, and based on fig. 5A, before step 201, the blockchain network may further generate a one-to-one digital identity for a hazardous waste collection node, a waste production unit node, a transportation unit node, a processing unit node, and an environmental protection unit node in step 301.
The hazardous waste collection system is deployed in a waste production unit and is used for collecting hazardous waste produced by the waste production unit, and the hazardous waste collection system is an intelligent garbage can applying the technology of the Internet of things. And accessing the electronic equipment governed by the dangerous waste collection system into a blockchain network, and naming the client node as the dangerous waste collection node. For the client nodes, in order to protect the identity privacy of the client nodes, the nodes of the blockchain network generate one-to-one digital identities for the dangerous waste collection node, the waste production unit node, the transportation unit node, the processing unit node and the environmental protection unit node, for example, a unique character string is generated for each client node.
In step 302, the blockchain network sends the digital identity to a corresponding node to enable the corresponding node to communicate with the blockchain network according to the digital identity.
For the generated digital identities, the blockchain network sends each digital identity to a corresponding node so that the node uses the digital identity for communication in a subsequent communication process with the blockchain network. Only the client node knows the index relation between itself and the digital identity, so that identity leakage can be effectively avoided. For example, a node of the blockchain network generates a digital identity of "1rfdsa12" for a endangered waste collection node and sends the digital identity to the endangered waste collection node, and a subsequent endangered waste collection node initiates a transaction with the blockchain network using the digital identity of "1rfdsa 12"; similarly, the node of the blockchain network generates a digital identity of "2ewqd587" for the waste unit node and sends the digital identity to the waste unit node, and the subsequent waste unit node uses the digital identity of "2ewqd587" to initiate a transaction to the blockchain network.
In step 303, the blockchain network sends the index relationship between each digital identity and the corresponding node to the environmental protection unit node, so that the environmental protection unit node determines the node corresponding to the digital identity in the dangerous waste list according to the index relationship.
The method comprises the steps that each digital identity is sent to a corresponding node, so that malicious business competition of dangerous waste treatment caused by identity leakage is prevented, but for an environmental protection unit node, the real identities of all participants in a dangerous waste list for dangerous waste transfer need to be known, so that in the embodiment of the invention, index relations between each digital identity and the corresponding node are sent to the environmental protection unit node, and after the environmental protection unit node inquires the dangerous waste list comprising the digital identities, the real identities of all the participants in the dangerous waste list are determined according to the index relations.
In step 304, the blockchain network acquires a list creation request sent by a dangerous waste collection node, and creates a dangerous waste list according to the list creation request; wherein the coupon creation request is generated when the collection weight of the hazardous waste collection node reaches a weight threshold.
For example, a weight sensor is arranged in the intelligent garbage can so as to acquire the collection weight of the dangerous waste, and when the collection weight reaches a weight threshold value, the intelligent garbage can serving as a dangerous waste collection node sends a list creation request to the blockchain network. And after verification, block filling and consensus are consistent, creating and storing the dangerous waste coupon in the block chain network, and simultaneously generating a creation date and a unique coupon number.
In some embodiments, after step 304, further comprising: the blockchain network acquires waste transportation requirements sent by the dangerous waste collection node and stores the waste transportation requirements; transmitting the waste transport demand to a transportation unit node in response to a query request for the waste transport demand by the transportation unit node; and acquiring a confirmation transportation request sent by the transportation unit node, storing the confirmation transportation request into the blockchain network, and determining that the inquiry request of other transportation unit nodes for the waste transportation requirement is not responded.
In embodiments of the present invention, a contention mechanism may be applied to determine transportation unit nodes that are dangerously transferred. Specifically, the nodes of the blockchain network acquire waste transportation requirements sent by the hazardous waste collection nodes, and after verification, block filling and consensus are consistent, the waste transportation requirements are stored in the blockchain network, wherein the waste transportation requirements can comprise hazardous waste weight and hazardous waste types. The transportation unit node may query for a waste transportation demand in the blockchain network, the nodes of the blockchain network sending the waste transportation demand to the transportation unit node in response to the transportation unit node requesting the waste transportation demand. The service personnel of the transportation unit node can judge whether the self unit meets the waste transportation requirement according to the actual situation, for example, a confirmation condition is set on the transportation unit node, the confirmation condition comprises the waste situation that the transportation unit can support transportation, and when the waste transportation requirement meets the confirmation condition, the transportation unit node sends a confirmation transportation request to the blockchain network. When the nodes of the block chain network acquire the confirmed transportation request for the first time, the confirmed transportation request is stored in the block chain network through verification, block filling and consensus, and the inquiry request of other transportation unit nodes for the waste transportation requirement is determined not to be responded, so that the processing resources are saved, and a plurality of transportation units are prevented from being allocated to the same dangerous waste. And the transportation unit node for transferring the dangerous waste is determined by the first-come competition mode, so that the flexibility of dangerous waste transfer is improved.
In some embodiments, the blockchain network-based hazardous waste treatment method further comprises: before the blockchain network responds to a query request of a transportation unit node for the waste transportation requirement, acquiring authorization node information sent by the dangerous waste collection node; inquiring information of a transportation unit node sending the inquiry request in the authorization node information; and determining to respond to the query request when the information of the transportation unit node sending the query request is queried.
In the embodiment of the invention, an authorization mechanism can also be set. Specifically, a node of the blockchain network acquires authorization node information sent by a dangerous waste collection node, and after verification, block filling and consensus are consistent, the authorization node information is stored in the blockchain network, wherein the authorization node information comprises information of transportation unit nodes trusted by the dangerous waste collection node. Of course, the authorized node information is not limited to being obtained from the hazardous waste collection node, and may be obtained from a node such as a waste production unit node or an environmental protection unit node. When the node of the block chain network obtains the inquiry request of the transportation unit node for the waste transportation requirement, the information of the transportation unit node is inquired in the authorized node information. When the information of the transportation unit node is not queried in the authorization node information, determining that the query request is not responded; when the information of the transportation unit node is queried in the authorization node information, a response query request is determined. Through the authorization mechanism, illegal transportation unit nodes are effectively prevented from acquiring waste transportation requirements and carrying out malicious competition.
As can be seen from the above exemplary implementation of fig. 5B according to the embodiment of the present invention, by generating digital identities for each client node, confidentiality of hazardous waste treatment is improved, and meanwhile, by sending an index relationship between a node and a digital identity to an environmental protection unit node, the environmental protection unit node can effectively monitor a hazardous waste transfer process.
In the following, an exemplary application of the embodiment of the present invention in a practical application scenario will be described.
Fig. 6 is a schematic diagram of a service body of a blockchain network according to an embodiment of the present invention, where in fig. 6, a service body participating in hazardous waste transfer may include a waste production unit, an intelligent garbage can, a transportation unit, a processing unit, and an environmental protection unit, where the environmental protection unit includes a waste production unit environmental protection bureau and a processing unit environmental protection bureau, and electronic devices under the jurisdiction of the service body may access the blockchain network, become client nodes in the blockchain network, and participate in circulation of hazardous waste coupons.
Fig. 7 is a schematic diagram of a hazardous waste list provided by an embodiment of the present invention, in the hazardous waste list shown in fig. 7, a business person of a waste production unit submits waste transfer information to a blockchain network through a node of the waste production unit according to the actual condition of waste production, so that the node of the blockchain network adds the waste transfer information to the hazardous waste list, and the waste transfer information includes the name of the waste production unit, the type of hazardous waste, the weight of hazardous waste and the date of waste production. And submitting waste transportation information to the blockchain network through transportation unit nodes according to the actual condition of transportation dangerous waste by business personnel of the transportation unit, wherein the waste transportation information comprises a processing unit name, a dangerous waste receiving date, a dangerous waste weight and a transportation destination. And submitting waste receiving information to the blockchain network through a processing unit node according to the actual condition of receiving hazardous waste by service personnel of the processing unit, wherein the waste receiving information comprises a name of a waste producing unit, a hazardous waste receiving date, a hazardous waste type and hazardous waste weight. And the service personnel of the environmental protection unit sends a query request to the blockchain network through the environmental protection unit node to query the corresponding dangerous waste list, wherein the query condition in the query request can be a list number, a list creation date or a unit name (the unit name refers to a unit name related in the dangerous waste list, such as a waste unit name or a processing unit name) and the like. Of course, the above-mentioned waste transfer information, waste transportation information, waste receiving information and query conditions are merely examples, and may be adjusted according to actual application scenarios, which are not limited in the embodiment of the present invention.
FIG. 8 is a schematic flow chart of another alternative method for processing hazardous waste based on a blockchain network according to an embodiment of the present invention, and the steps shown in FIG. 8 are used for illustration:
in a first step, the blockchain network sets digital identities for all participants.
The related parties (i.e. the business main body) comprise an intelligent garbage can, a waste production unit, a transportation unit, a processing unit and an environmental protection unit, client nodes formed by connecting electronic equipment under jurisdiction to a blockchain network are sequentially a dangerous waste collection node, a waste production unit node, a transportation unit node, a processing unit node and an environmental protection unit node, and in the step, the blockchain network sets digital identities for the client nodes and sends the digital identities to the corresponding nodes so that the nodes communicate with the blockchain network according to the digital identities. And simultaneously, the index relation between each digital identity and the node is sent to the environmental protection unit node.
In a second step, the intelligent garbage bin creates a hazardous waste coupon in the blockchain network when the collection weight of the waste reaches a weight threshold.
The intelligent garbage can is provided with a weight sensor, when the collection weight of the wastes reaches a weight threshold, the intelligent garbage can automatically sends a list creation request to the blockchain network through a dangerous waste collection node so that the blockchain network creates a dangerous waste list according to the list creation request,
In the third step, the waste production unit uploads the waste transfer information to the hazardous waste list.
For the produced hazardous waste, business personnel of the waste producing unit send waste transfer information to the blockchain network through the waste producing unit node so that the blockchain network adds the waste transfer information to the hazardous waste list.
In the fourth step, the transportation unit dispatches the transportation vehicle and uploads the waste transportation information to the hazardous waste list.
The transportation unit dispatches the transportation vehicle to transfer the hazardous waste, and at the same time, business personnel of the transportation unit send waste transportation information to the blockchain network through the transportation unit node so that the blockchain network adds the waste transportation information to the hazardous waste coupon.
In the fifth step, the processing unit uploads the hazardous waste receiving information to the hazardous waste coupon.
The processing unit receives the dangerous waste transferred by the transportation unit, and meanwhile, business personnel of the processing unit send waste receiving information to the blockchain network through the processing unit nodes, so that the blockchain network adds the waste receiving information to the dangerous waste bill.
In the sixth step, the environmental protection unit acquires the hazardous waste list in real time.
The business personnel of the environmental protection unit can send a query request to the blockchain network through the environmental protection unit node at any stage so as to acquire the dangerous and useless coupon stored in the blockchain network. It is worth to say that, in the dangerous waste list acquired by the environmental protection unit node, the unit names are all represented by digital identities, and the environmental protection unit node can analyze the real node identities corresponding to the digital identities according to the index relation acquired in the first step.
As can be seen from the above exemplary implementation of fig. 8 by the embodiment of the present invention, the present invention achieves the circulation of the hazardous waste list through the blockchain network, which improves the circulation efficiency of the hazardous waste list, and the blockchain network can respond to the query request sent by the environmental protection unit node at any time, so that the business personnel of the environmental protection unit node can audit any link of the hazardous waste transfer, and improves the convenience and effectiveness of supervision.
Continuing with the description of exemplary structures of software modules 2143 provided by embodiments of the present invention, in some embodiments, as shown in FIG. 3, software modules 2143 stored in memory 2140 may include: the first adding module 21431 is used for obtaining waste transfer information sent by the waste production unit node and adding the waste transfer information to a dangerous waste list stored in a blockchain network; the second adding module 21432 is used for obtaining the waste transportation information sent by the transportation unit node and adding the waste transportation information to the hazardous waste list; the third adding module 21433 is configured to obtain waste receiving information sent by a processing unit node, and add the waste receiving information to the hazardous waste list; and the list sending module 21434 is used for responding to the query request of the hazardous waste list sent by the environmental protection unit node and sending the hazardous waste list to the environmental protection unit node.
In some embodiments, the software module 2143 further includes: the system comprises a list creation module, a list creation module and a block chain network, wherein the list creation module is used for acquiring a list creation request sent by a dangerous waste collection node and creating a dangerous waste list in the block chain network according to the list creation request; wherein the coupon creation request is generated when the collection weight of the hazardous waste collection node reaches a weight threshold.
In some embodiments, the software module 2143 further includes: the identity generation module is used for generating one-to-one corresponding digital identities for the hazardous waste collection node, the waste production unit node, the transportation unit node, the processing unit node and the environmental protection unit node; and the identity sending module is used for sending the digital identity to a corresponding node so that the corresponding node can communicate with the blockchain network according to the digital identity.
In some embodiments, the software module 2143 further includes: and the index sending module is used for sending the index relation between each digital identity and the corresponding node to the environmental protection unit node so that the environmental protection unit node can determine the node corresponding to the digital identity in the dangerous and useless list according to the index relation.
In some embodiments, the software module 2143 further includes: the demand acquisition module is used for acquiring waste transportation demands sent by the dangerous waste collection node and storing the waste transportation demands to the blockchain network; the demand sending module is used for responding to a query request of a transportation unit node for the waste transportation demand and sending the waste transportation demand to the transportation unit node; and the confirmation transportation module is used for acquiring a confirmation transportation request sent by the transportation unit node, storing the confirmation transportation request into the block chain network, and determining that the inquiry request of other transportation unit nodes for the waste transportation requirement is not responded.
In some embodiments, the software module 2143 further includes: the authorization information acquisition module is used for acquiring authorization node information sent by the dangerous waste collection node before responding to a query request of the transportation unit node for the waste transportation demand; the query module is used for querying information of the transportation unit node sending the query request in the authorized node information; and the determining response module is used for determining to respond to the query request when the information of the transportation unit node sending the query request is queried.
In some embodiments, the software module 2143 further includes: the forward verification module is used for performing forward verification on the waste treatment information through the intelligent contracts deployed to the blockchain network by the environmental protection unit nodes; the processing information adding module is used for adding the waste processing information into the hazardous waste list when the current forward verification passes; wherein the waste treatment information includes at least one of: waste transport information, waste receiving information.
In some embodiments, the first adding module 21431 is further to: broadcasting the waste transfer information in the blockchain network, so that nodes in the blockchain network fill the waste transfer information into updated blocks, and adding the updated blocks to the tail of a blockchain when the updated blocks are in common, wherein the updated blocks comprise the correlation between the waste transfer information and dangerous waste coupons.
Embodiments of the present invention provide a storage medium storing executable instructions, where the executable instructions are stored, which when executed by a processor, cause the processor to perform a method provided by embodiments of the present invention, for example, a method for processing hazardous wastes based on a blockchain network as shown in fig. 5A and 5B.
In some embodiments, the storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts stored in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
In summary, in the embodiment of the invention, the blockchain network is used as an information platform for hazardous waste co-list circulation, and the blockchain is combined with the internet of things technology to comprehensively orchestrate hazardous waste transfer business of a plurality of units; by utilizing the digital identity management system, the confidentiality of the hazardous waste forms is improved, the information circulation efficiency is improved on the premise of ensuring clear responsibility, a complete information closed loop from off-line receipt data to cloud management data is provided, and the convenience and effectiveness of supervision by an environmental protection unit are improved.
The foregoing is merely exemplary embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (8)

1. The hazardous waste treatment method based on the blockchain network is characterized by comprising the following steps of:
generating one-to-one corresponding digital identities for the dangerous waste collection node, the waste production unit node, the transportation unit node, the processing unit node and the environmental protection unit node;
Transmitting the digital identity to a corresponding node so that the corresponding node communicates with a blockchain network according to the digital identity;
transmitting the index relation between each digital identity and the corresponding node to the environmental protection unit node, so that the environmental protection unit node determines the node corresponding to the digital identity in the dangerous and useless list stored in the blockchain network according to the index relation;
obtaining waste transfer information sent by the waste production unit node, and adding the waste transfer information into the hazardous waste list;
the waste transportation information sent by the transportation unit node is obtained, and after the dangerous waste weight or the dangerous waste variety is compared and the block filling and the consensus are consistent, the waste transportation information is added into the dangerous waste bill;
the waste receiving information sent by the processing unit node is obtained, and after the dangerous waste weight or the dangerous waste variety is compared and the block filling and the consensus are consistent, the waste receiving information is added into the dangerous waste bill;
and responding to the query request of the hazardous waste list sent by the environmental protection unit node, and sending the hazardous waste list to the environmental protection unit node.
2. The hazardous waste treatment method according to claim 1, further comprising:
acquiring a list creation request sent by the dangerous waste collection node, and creating a dangerous waste list in the blockchain network according to the list creation request;
wherein the coupon creation request is generated when the collection weight of the hazardous waste collection node reaches a weight threshold.
3. The hazardous waste treatment method according to claim 2, further comprising:
acquiring waste transportation requirements sent by the dangerous waste collection node, and storing the waste transportation requirements to the blockchain network;
transmitting the waste transport demand to a transportation unit node in response to a query request for the waste transport demand by the transportation unit node;
and acquiring a confirmation transportation request sent by the transportation unit node, storing the confirmation transportation request into the blockchain network, and determining that the inquiry request of other transportation unit nodes for the waste transportation requirement is not responded.
4. A hazardous waste treatment method according to claim 3, further comprising:
before responding to a query request of a transportation unit node for the waste transportation demand, acquiring authorization node information sent by the dangerous waste collection node;
Inquiring information of a transportation unit node sending the inquiry request in the authorization node information;
and determining to respond to the query request when the information of the transportation unit node sending the query request is queried.
5. The hazardous waste treatment method according to any one of claims 1 to 4, wherein the adding the waste transfer information to a blockchain network stored hazardous waste coupon includes:
broadcasting the waste transfer information in the blockchain network such that
Nodes in the blockchain network fill the waste transfer information into an update block, and when the update block is consistent, the update block is added to the tail part of the blockchain, wherein the update block comprises the correlation between the waste transfer information and a dangerous waste list.
6. A node of a blockchain network, characterized in that,
the block chain network generates one-to-one corresponding digital identities for dangerous waste collection nodes, waste production unit nodes, transportation unit nodes, processing unit nodes and environment-friendly unit nodes;
the blockchain network sends the digital identity to a corresponding node so that the corresponding node communicates with the blockchain network according to the digital identity;
The blockchain network sends the index relation between each digital identity and the corresponding node to the environmental protection unit node, so that the environmental protection unit node determines the node corresponding to the digital identity in the dangerous waste list stored in the blockchain network according to the index relation;
the node comprises:
the first adding module is used for obtaining waste transfer information sent by the waste production unit node and adding the waste transfer information into a dangerous waste list stored in a block chain network;
the second adding module is used for obtaining the waste transportation information sent by the transportation unit node and adding the waste transportation information into the hazardous waste bill;
the third adding module is used for obtaining the waste receiving information sent by the processing unit node and adding the waste receiving information into the hazardous waste list;
and the list sending module is used for responding to the query request of the hazardous waste list sent by the environmental protection unit node and sending the hazardous waste list to the environmental protection unit node.
7. A node of a blockchain network, comprising:
a memory for storing executable instructions;
a processor for implementing the blockchain network-based hazardous waste processing method of any one of claims 1 to 5 when executing executable instructions stored in the memory.
8. A computer readable storage medium storing computer executable instructions which when executed by a processor implement the blockchain network-based hazardous waste treatment method of any one of claims 1 to 5.
CN201910866641.8A 2019-09-12 2019-09-12 Block chain network-based hazardous waste treatment method and node of block chain network Active CN110599095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910866641.8A CN110599095B (en) 2019-09-12 2019-09-12 Block chain network-based hazardous waste treatment method and node of block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910866641.8A CN110599095B (en) 2019-09-12 2019-09-12 Block chain network-based hazardous waste treatment method and node of block chain network

Publications (2)

Publication Number Publication Date
CN110599095A CN110599095A (en) 2019-12-20
CN110599095B true CN110599095B (en) 2024-04-02

Family

ID=68859439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910866641.8A Active CN110599095B (en) 2019-09-12 2019-09-12 Block chain network-based hazardous waste treatment method and node of block chain network

Country Status (1)

Country Link
CN (1) CN110599095B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111260290A (en) * 2020-01-16 2020-06-09 江苏神彩科技股份有限公司 Dangerous waste full-life-cycle management and tracing system and method based on block chain
CN111901293B (en) * 2020-06-08 2021-08-27 北京邮电大学 Resource malicious competition avoiding method for alliance chain
CN112651588A (en) * 2020-09-15 2021-04-13 重庆环问问科技有限公司 Intelligent cloud management system for hazardous waste disposal of block chain
CN112364371B (en) * 2020-10-16 2024-04-16 杭州甘道智能科技有限公司 Vaccine transfer monitoring device and method based on block chain
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN112819468A (en) * 2021-02-24 2021-05-18 浙江蓝景科技有限公司 Intelligent contract processing method and device and electronic equipment
CN113205193B (en) * 2021-04-27 2024-05-21 安徽中科晶格技术有限公司 Block chain-based waste treatment method, system, equipment and storage medium
CN113723924A (en) * 2021-08-30 2021-11-30 平安国际智慧城市科技股份有限公司 Enterprise portrait construction method and device, computer equipment and storage medium
CN116109225B (en) * 2022-10-27 2023-08-11 大连理工大学 Block chain-based dangerous waste treatment service platform, device and storage medium
CN115496243B (en) * 2022-11-17 2023-04-18 北京博腾慧通科技有限公司 Hazardous waste transfer processing method, storage medium and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927611A (en) * 2013-11-08 2014-07-16 深圳市博安达软件开发有限公司 Hazardous waste transfer electronic manifest management system and method
CN104580253A (en) * 2015-01-30 2015-04-29 网易(杭州)网络有限公司 Method and device for processing user data
CN107301524A (en) * 2017-06-27 2017-10-27 镇江新区环境监测站有限公司 A kind of dangerous waste circulation cloud service supervisory systems using Quick Response Code as core
CN108990002A (en) * 2018-06-27 2018-12-11 柳州市蓝海数链科技有限公司 A kind of block chain data processing method, device, terminal and storage medium
CN109740978A (en) * 2018-08-24 2019-05-10 四川海纳仁东科技有限公司 Based on the dangerous waste of block chain and transportation problem model circulation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180285810A1 (en) * 2017-03-29 2018-10-04 Ripe Technology, Inc. Systems and methods of blockchain transaction recordation in a food supply chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927611A (en) * 2013-11-08 2014-07-16 深圳市博安达软件开发有限公司 Hazardous waste transfer electronic manifest management system and method
CN104580253A (en) * 2015-01-30 2015-04-29 网易(杭州)网络有限公司 Method and device for processing user data
CN107301524A (en) * 2017-06-27 2017-10-27 镇江新区环境监测站有限公司 A kind of dangerous waste circulation cloud service supervisory systems using Quick Response Code as core
CN108990002A (en) * 2018-06-27 2018-12-11 柳州市蓝海数链科技有限公司 A kind of block chain data processing method, device, terminal and storage medium
CN109740978A (en) * 2018-08-24 2019-05-10 四川海纳仁东科技有限公司 Based on the dangerous waste of block chain and transportation problem model circulation method

Also Published As

Publication number Publication date
CN110599095A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110599095B (en) Block chain network-based hazardous waste treatment method and node of block chain network
CN110490305B (en) Machine learning model processing method based on block chain network and node
CN110727712B (en) Data processing method and device based on block chain network, electronic equipment and storage medium
CN110532323B (en) Student identity information processing method and device in block chain network, electronic equipment and storage medium
CN109191124B (en) Block chain network, deployment method and storage medium
CN113691597B (en) Block chain contract deployment method, device, equipment and storage medium
CN102170440B (en) Method suitable for safely migrating data between storage clouds
CN110599213B (en) Article management method and device based on blockchain network and electronic equipment
CN110569674A (en) Block chain network-based authentication method and device
CN111144881A (en) Selective access to asset transfer data
CN110597832A (en) Government affair information processing method and device based on block chain network, electronic equipment and storage medium
CN110598434B (en) House information processing method and device based on blockchain network, electronic equipment and storage medium
CN110569658B (en) User information processing method and device based on blockchain network, electronic equipment and storage medium
CN112861190B (en) Data cross-chain cooperation method, system and device
CN105247529A (en) Synchronizing credential hashes between directory services
CN113328997B (en) Alliance chain crossing system and method
CN115769241A (en) Privacy preserving architecture for licensed blockchains
US20230039643A1 (en) Cross-chain collaborative governance system, method and device and storage medium
JP2023520859A (en) Faster view change for blockchain
KR102151746B1 (en) Data storage method using block chain based IoT platform
CN113255014B (en) Data processing method based on block chain and related equipment
CN114567643B (en) Cross-blockchain data transfer method, device and related equipment
CN112837023A (en) Business collaboration platform, method and device of organization and electronic equipment
CN111798233A (en) Linking of tokens
EP3542300B1 (en) Method for operating a peer-to-peer application

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