CN110599095A - Dangerous waste treatment method based on block chain network and node of block chain network - Google Patents

Dangerous waste treatment method based on block chain network and node of block chain network Download PDF

Info

Publication number
CN110599095A
CN110599095A CN201910866641.8A CN201910866641A CN110599095A CN 110599095 A CN110599095 A CN 110599095A CN 201910866641 A CN201910866641 A CN 201910866641A CN 110599095 A CN110599095 A CN 110599095A
Authority
CN
China
Prior art keywords
waste
node
hazardous
information
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910866641.8A
Other languages
Chinese (zh)
Other versions
CN110599095B (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/00Systems or methods specially adapted for 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]

Abstract

The invention provides a dangerous waste treatment method based on a block chain network, a node of the block chain network and a storage medium; the hazardous waste treatment method based on the block chain network comprises the following steps: acquiring waste transfer information sent by a waste production unit node, and adding the waste transfer information into a dangerous waste joint list stored in a block chain network; acquiring waste transportation information sent by a transportation unit node, and adding the waste transportation information into the hazardous waste union bill; acquiring waste receiving information sent by a processing unit node, and adding the waste receiving information into the hazardous waste union bill; responding to a query request for the hazardous and waste union bill sent by an environmental protection unit node, and sending the hazardous and waste union bill to the environmental protection unit node. By the method and the system, the circulation efficiency of the hazardous waste union bill can be improved, and the convenience and the effectiveness of an environmental protection unit in monitoring the hazardous waste transfer process are improved.

Description

Dangerous waste treatment method based on block chain network and node of block chain network
Technical Field
The present invention relates to a block chain technology, and in particular, to a method for processing hazardous waste based on a block chain network, a node of the block chain network, and a storage medium.
Background
Hazardous waste refers to waste that poses a significant threat to human health or the environment when handled, stored, transferred, disposed of, and disposed of improperly. The transfer process of hazardous waste from the waste production unit to the hazardous waste treatment unit needs to be supervised, so that the hazardous waste is prevented from being leaked in the transportation process.
In the scheme provided by the related technology, a paper coupon system is usually applied, namely, a participant who transfers hazardous waste records key information and data of a transfer process on a coupon, and finally sends the coupon to a related government environmental protection unit for supervision.
Disclosure of Invention
The embodiment of the invention provides a dangerous waste treatment method based on a block chain network, a node of the block chain network and a storage medium, which can improve the circulation efficiency of a dangerous waste coupon, enable government environmental protection units to quickly obtain relevant information in the dangerous waste transfer process, and improve the simplicity of monitoring dangerous waste.
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:
acquiring waste transfer information sent by a waste production unit node, and adding the waste transfer information into a dangerous waste joint list stored in a block chain network;
acquiring waste transportation information sent by a transportation unit node, and adding the waste transportation information into the hazardous waste union bill;
acquiring waste receiving information sent by a processing unit node, and adding the waste receiving information into the hazardous waste union bill;
responding to a query request for the hazardous and waste union bill sent by an environmental protection unit node, and sending the hazardous and waste union bill to the environmental protection unit node.
An embodiment of the present invention provides a node of a blockchain network, including:
the system comprises a first adding module, a second adding module and a third adding module, wherein the first adding module is used for acquiring waste transfer information sent by a production waste unit node and adding the waste transfer information into a dangerous waste joint list stored in a block chain network;
the second adding module is used for acquiring waste transportation information sent by a transportation unit node and adding the waste transportation information to the dangerous waste joint list;
the third adding module is used for acquiring waste receiving information sent by the processing unit node and adding the waste receiving information to the dangerous waste joint list;
and the coupon sending module is used for responding to the query request of the hazardous and waste coupons sent by the environment-friendly unit nodes and sending the hazardous and waste coupons to the environment-friendly unit nodes.
An embodiment of the present invention provides a node of a blockchain network, including:
a memory for storing executable instructions;
and the processor is used for realizing the hazardous waste treatment method based on the block chain network provided by the embodiment of the invention when the executable instruction stored in the memory is executed.
The embodiment of the invention provides a storage medium, which stores executable instructions and is used for causing a processor to execute, so that the hazardous waste treatment method based on a block chain network provided by the embodiment of the invention is realized.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the block chain network is used as a circulation platform of the hazardous waste coupons, for the production waste unit nodes, the transportation unit nodes and the processing unit nodes in the block chain network, corresponding processing information can be added to the hazardous waste coupons in the process of processing hazardous waste, and for the environmental protection unit nodes in the block chain network, a query request can be initiated to query the hazardous waste coupons at any time, so that the circulation efficiency of the hazardous waste coupons is improved, and the convenience of monitoring the hazardous waste by government environmental protection units is also improved.
Drawings
Fig. 1 is a schematic diagram of an alternative structure of a hazardous waste treatment system based on a block chain network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an alternative functional structure of a blockchain network according to an embodiment of the present invention;
fig. 3 is an alternative structural diagram of a node of a blockchain network according to an embodiment of the present invention;
FIG. 4 is an alternative flow diagram of transaction verification provided by embodiments of the present invention;
fig. 5A is an alternative flowchart of a hazardous waste treatment method based on a block chain network according to an embodiment of the present invention;
fig. 5B is a schematic flowchart of another alternative method for processing hazardous waste based on a block chain network according to an embodiment of the present invention;
fig. 6 is a schematic service body diagram of a block chain 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 invention;
fig. 8 is a schematic flowchart of another alternative method for processing hazardous waste based on a blockchain network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection 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 understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, to enable embodiments of the invention described herein to be practiced in other than the order shown 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 further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) Transactions (transactions), equivalent to the computer term "Transaction," include operations that need to be committed to a blockchain network for execution and do not refer solely to transactions in the context of commerce, which embodiments of the present invention follow in view of the convention colloquially used in blockchain technology.
For example, a deployment (deployment) transaction is used to install a specified smart contract to a node in a blockchain network and is ready to be invoked; the Invoke (Invoke) transaction is used to append records of the transaction in the blockchain by invoking the smart contract and to perform operations on the state database of the blockchain, 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) A Block chain (Blockchain) is a storage structure for encrypted, chained transactions formed from blocks (blocks).
For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth.
3) A Blockchain Network (Blockchain Network) incorporates new blocks into a set of nodes of a Blockchain in a consensus manner.
4) Ledger (legger) is a general term for blockchains (also called Ledger data) and state databases synchronized with blockchains.
Wherein, the blockchain records the transaction in the form of a file in a file system; the state database records the transactions in the blockchain in the form of different types of Key (Key) Value pairs for supporting fast query of the transactions in the blockchain.
5) Intelligent Contracts (Smart Contracts), also known as chain codes (chaincodes) or application codes, are programs deployed in nodes of a blockchain network, and the nodes execute the intelligent Contracts called in received transactions to perform operations of updating or querying key-value data of the account database.
6) Consensus (Consensus), a process in a blockchain network, for agreeing on transactions in blocks among a plurality of nodes involved, the agreed blocks to be appended to the end of the blockchain, the mechanisms that achieve Consensus include Proof of workload (PoW, profoff Work), Proof of rights and interests (PoS, profofstamp), Proof of equity authority (DPoS, freed Proof of-stamp), Proof of elapsed time (PoET, Proof of ElapsedTime), and so on.
7) A waste production unit: and (4) producing hazardous waste units, such as chemical enterprises which can discharge hazardous chemical waste materials in the production process.
8) A transportation unit: the hazardous waste is transported from the waste producing unit to a unit of the disposal unit, such as a transportation company with the transportation qualification of the hazardous waste.
9) A processing unit: a unit for centralized treatment of 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 transfer process of hazardous wastes.
Referring to fig. 1, fig. 1 is a schematic diagram of an architecture of a critical waste treatment system 100 based on a blockchain network according to an embodiment of the present invention, which includes a blockchain network 200 (exemplarily shown to include a node 210-1 to a node 210-3), an authentication center 300, a critical waste collection system 400 (exemplarily shown to belong to the critical waste collection system 400 and a graphical interface 420 thereof), a waste unit system 500 (exemplarily shown to belong to the waste unit system 500 and a graphical interface 520 thereof), a transport unit system 600 (exemplarily shown to belong to the transport unit system 600 and a graphical interface 620 thereof), a processing unit system 700 (exemplarily shown to belong to the processing unit system 700 and a graphical interface 720 thereof) and an environmental unit system 800 (exemplarily shown to belong to the environmental unit system 800 and a graphical interface 820 thereof), the following description will be made separately.
The type of blockchain network 200 is flexible and may be, for example, any of a public chain, a private chain, or a federation chain. Taking a public link as an example, electronic devices such as user terminals and servers of any service entity can access the blockchain network 200 without authorization; taking a federation chain as an example, an electronic device (e.g., a terminal/server) under the jurisdiction of a service entity after obtaining authorization may access the blockchain network 200, and at this time, become a special type of node in the blockchain network 200, i.e., a client node.
Note that the client node may provide only functionality that supports the initiation of transactions by the business entity (e.g., for uplink storage of data or for querying of data on the chain), and may be implemented by default or selectively (e.g., depending on the specific business requirements of the business entity) for the functionality of the conventional (native) node 210 of the blockchain network 200, such as the ranking functionality, consensus services, ledger functionality, etc., described below. Therefore, the data and the service processing logic of the service subject can be migrated into the block chain network 200 to the maximum extent, and the credibility and traceability of the data and service processing process are realized through the block chain network 200.
The blockchain network 200 receives transactions submitted from terminals (e.g., the terminal 410 belonging to the critical waste collection system 400, the terminal 510 belonging to the waste unit system 500, and terminals belonging to other systems shown in fig. 1) of different business entities (e.g., the critical waste collection system 400, the waste unit system 500, and other systems shown in fig. 1), performs the transactions to update the ledger or query the ledger, and displays various intermediate results or final results of performing the transactions on user interfaces of the terminals (e.g., the graphical interface 420 of the terminal 410, the graphical interface 520 of the terminal 510, and graphical interfaces of other terminals). It is to be understood that, in the above, the blockchain network 200 receiving the transaction and executing the transaction specifically refers to the native node 210 in the blockchain network 200, and of course, when the client node of the service subject has the function (e.g., the consensus function, the ledger function) of the native node 210 in the blockchain network 200, the corresponding client node may also be included.
An exemplary application of the blockchain network is described below by taking an example that a plurality of service entities access the blockchain network to implement the critical waste handling.
Referring to fig. 1, after authorization is obtained, a plurality of service entities involved in the hazardous waste processing link, such as the hazardous waste collection system 400, the production and waste unit system 500, the transportation unit system 600, the processing unit system 700, and the environmental protection unit system 800, may access the blockchain network 200 to become client nodes in the blockchain network 200.
When the collection weight of the crime reaches the weight threshold, the crime collection system 400 displays the collection weight on the graphical interface 420, and simultaneously automatically generates a coupon creation request through the terminal 410, and generates a transaction corresponding to an update operation according to the coupon creation request, wherein an intelligent contract required to be called for realizing the update operation and parameters transferred to the intelligent contract are specified in the transaction, and the transaction also carries a digital signature signed by the crime collection system 400 (for example, a summary of the transaction is encrypted by using a private key in a digital certificate of the crime collection system 400 issued by the certificate authority 300), and broadcasts the transaction to the blockchain network 200.
When a transaction is received in the node 210 in the block chain network 200, the digital signature carried by the transaction is verified, after the verification of the digital signature is successful, whether the hazardous waste collection system 400 has the transaction right or not is determined according to the identity of the hazardous waste collection system 400 carried in the transaction, and the transaction failure is caused by any verification judgment of the digital signature and the right verification. After successful verification, node 210 signs its own digital signature (e.g., by encrypting the digest of the transaction using the private key of node 210-1) and continues to broadcast in blockchain network 200.
After the node 210 with the sorting function in the blockchain network 200 receives the transaction successfully verified, the transaction is filled into a new block and broadcasted to the node providing the consensus service in the blockchain network 200.
The node 210 providing the consensus service in the block chain 200 performs the consensus process on the new block to reach an agreement, and the node 210 providing the ledger function adds the new block to the tail of the block chain and executes the transaction in the new block, that is, adds a key value pair corresponding to the critical waste coupons in the ledger database, wherein, in order to ensure the uniqueness of the created critical waste coupons, a unique coupon number may be set for the critical waste coupons when the critical waste coupons are created, and in addition, the creation date of the critical waste coupons and the like may be set, which is not limited in the embodiment of the present invention.
Similarly, a service person on the production and waste unit system 500 side can log in the production and waste unit system 500 in the graphical interface 520 of the terminal 510, input waste transfer information, generate a transaction corresponding to the updating operation by the terminal 510 according to the waste transfer information, specify an intelligent contract to be called for realizing the updating operation and parameters transferred to the intelligent contract in the transaction, and the transaction also carries a digital signature signed by the production and waste unit system 500 and broadcasts the transaction to the block chain network 200.
After the node 210 in the blockchain network 200 is verified, the block is filled, and the consensus is consistent, the new block is added to the tail of the blockchain, and the transaction in the new block is executed, that is, the key value pair corresponding to the critical scrap bond list in the account book database is updated according to the waste transfer information.
Similarly, a service person on the side of the environmental protection unit system 800 can log in the environmental protection unit system 800 in the graphical interface 820 of the terminal 810, input the critical waste union bill query request, generate a transaction corresponding to the query operation by the terminal 810 according to the critical waste union bill query request, specify an intelligent contract to be called for realizing the query operation and parameters to be transmitted 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 node 210 in the blockchain network 200 is verified, block-filled, and identified consistently, the new block is added to the tail of the blockchain, and the transaction in the new block is executed, that is, the key value pair corresponding to the critical-to-waste coupon is queried from the ledger database, and a query result is returned, where the query condition may be a coupon number, a coupon creation date, an entity name, or other conditions.
It can be understood that the type of data that can be queried/updated by the service entity in the blockchain network 200 can be implemented by restricting the right of the transaction that can be initiated by the service entity, for example, when the eco-unit system 800 has the right of initiating the transaction for querying the critical waste coupons, a service person of the eco-unit system 800 can input a query request for the critical waste coupons in the graphical interface 820 of the terminal 810, and generate a transaction for querying the critical waste coupons by the terminal 810 to be broadcast to the blockchain network 200, so as to obtain corresponding critical waste coupons from the blockchain network 200;
when the waste unit system 500 has the right to initiate a transaction to submit waste transfer information, a service person on the waste unit system 500 side may input the waste transfer information in the graphical interface 520 of the terminal 510, and generate a transaction broadcast by the terminal 510 for submitting the waste transfer information to the blockchain network 200 to add the waste transfer information to the corresponding critical waste coupons in the blockchain network 200.
An exemplary functional architecture of a block chain network provided in an embodiment of the present invention is described below, referring to fig. 2, fig. 2 is a functional architecture schematic diagram of a block chain network 200 provided in an embodiment of the present invention, which includes 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 respectively.
The resource layer 205 encapsulates computing, storage, and communication resources that implement each node 210 in the blockchain network 200, such as computing, storage, and communication resources in computers, servers/clusters, and clouds, abstracts and provides a uniform interface to the data layer 204 to shield the underlying hardware implementing the resource layer 205 from differences.
The computing resources include various forms of processors such as a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), and a Field-Programmable Gate Array (FPGA).
The storage resources include various types of storage media such as various volatile memories and nonvolatile memories. The nonvolatile Memory may be a Read Only Memory (ROM) or a Programmable Read-Only Memory (PROM). Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory.
The communication resources include various links for communication between nodes 210 of the blockchain network, between the blockchain network 200 and the traffic master.
The data layer 204 encapsulates various data structures that implement the ledger, including blockchains implemented in files in a file system, state databases of the key-value type, and presence certificates (e.g., hash trees of transactions in blocks).
The network layer 203 encapsulates the functions of a Point-to-Point (P2P) network protocol, a data propagation mechanism and a data verification mechanism, an access authentication mechanism and service agent identity management.
Wherein the P2P network protocol implements communication between nodes 210 in the blockchain network 200, the data propagation mechanism ensures propagation of transactions in the blockchain network 200, and the data verification mechanism implements 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 subject added into the block chain network 200 according to an actual service scene, and endowing the service subject with the authority of accessing the block chain network 200 when the authentication is passed; the business entity identity management is used to store the identity of the business entity that is allowed to access blockchain network 200, as well as the permissions (e.g., the types of transactions that can be initiated).
The consensus layer 202 encapsulates the functions of the mechanism for the nodes 210 in the blockchain network 200 to agree on a block (i.e., a consensus mechanism), transaction management, and ledger management.
The consensus mechanism comprises consensus algorithms such as POS, POW and DPOS, and the pluggable consensus algorithm is supported.
The transaction management is configured to verify a digital signature carried in the transaction received by the node 210, verify identity information of the service entity, and determine whether the node has an authority to perform the transaction (read related information from the identity management of the service entity) according to the identity information; for the service entities authorized to access the blockchain network 200, the service entities all have a digital certificate issued by the certificate authority 300, and the service entities sign the submitted transaction by using the private key in their own digital certificate, so as to declare their legal identities.
Account book management: for maintaining block chains and ledger databases. For the block with the consensus, adding the block to the tail of the block chain; and executing the transaction in the block which obtains the consensus, updating the key-value pairs in the state database when the transaction comprises an updating operation, inquiring the key-value pairs in the account book database when the transaction comprises an inquiring operation, and returning an inquiring result to the business body. The method supports query operations of multiple dimensions of the account book database, and comprises the following steps: querying the chunk based on the chunk sequence number (e.g., hash value of the transaction); inquiring the block according to the block hash value; inquiring a block according to the transaction serial number; inquiring the transaction according to the transaction serial number; inquiring account data of a business main body according to an account (serial number) of the business main body; and inquiring the block chain in the channel according to the channel name.
The application layer 201 encapsulates various services that the blockchain network can implement, including tracing, crediting, and verifying transactions.
An exemplary structure of a node of the blockchain network implementing an embodiment of the present invention is described below, and it is understood that the hardware structure of any type of node in the blockchain network 200 may be implemented according to the hardware structure 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 a bus system 2130. It is understood that the bus system 2130 is used to enable communications among these components. The bus system 2130 includes a power bus, a control bus, and a status signal bus, in addition to the data bus. But for the sake of clarity the various buses are identified in figure 3 as bus system 2130.
The Processor 2110 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc., wherein the general purpose Processor may be a microprocessor or any conventional Processor, etc.
The memory 2140 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. The memory 2140 optionally includes one or more storage devices physically located remote from the processor 2110.
The 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). The memory 2140 described with embodiments of the invention is intended to comprise any suitable type of memory.
In some embodiments, the 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;
a network communication module 2142 for reaching other computing devices via one or more (wired or wireless) network interfaces 2120, exemplary network interfaces 2120 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), 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 illustrates a software module 2143 stored in the memory 2140, which may be software in the form of programs and plug-ins, and includes the following sub-modules: the first adding module 21431, the second adding module 21432, the third adding module 21433, and the coupon sending module 21434 are logical modules, and thus may be arbitrarily combined or further split according to the implemented functions.
The functions of the respective modules will be explained below.
To facilitate understanding of the process of verifying the digital certificate and the digital signature, the embodiment of the present invention provides a flow chart of transaction verification as shown in fig. 4, which will be described with reference to the steps shown in fig. 4.
In step 101, a production and waste unit node sends a certificate request to an authentication center, where the certificate request includes a node public key and identity information of the production and waste unit node.
The embodiment of the invention is exemplified by a transaction verification process between a production and waste unit node and a native node of a block chain network, and the transaction verification process between the node of the block chain network and other nodes is the same. When the production and waste unit node is initialized, a certificate request is sent to the authentication center, the certificate request comprises identity information of the production and waste unit node and a public key in a key pair generated by the production and waste unit node, the key pair is generated through an asymmetric encryption algorithm, in order to facilitate distinguishing, the public key in the key pair is named as a node public key, and a private key in the key pair is named as a node private key.
In step 102, the authentication center performs hash encryption on the identity information and the node public key to obtain a first identity information digest, and encrypts the first identity information digest according to a center private key to obtain an in-certificate signature.
The authentication center also generates a key pair according to an asymmetric encryption algorithm, and for the convenience of distinguishing, a public key in the key pair is named as a central public key, and a private key in the key pair is named as a central private key. After the certificate request is obtained, the authentication center performs hash encryption on the identity information and the node public key included in the certificate request to obtain a first identity information abstract, and encrypts the first identity information abstract according to a center private key to obtain an internal signature of the certificate, wherein the internal signature of the certificate is a digital signature in the digital certificate, and the names are different and are only convenient to distinguish.
In step 103, the certificate authority issues a root certificate and a digital certificate to the production and 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 signature in the certificate.
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 the certificate issuance. It should be noted that the certificate issue process of the native node in the blockchain network is the same as that of steps 101 to 103, and is not described herein again.
In step 104, the production and waste unit node performs hash encryption on waste transfer information to obtain a first transfer information digest, and encrypts the first transfer information digest according to a node private key to obtain a digital signature.
In step 105, the depositary unit node sends the waste transfer information, the digital signature, and the digital certificate to the blockchain network.
And the waste production 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 in-certificate signature of the acquired digital certificate according to the central public key in the root certificate, so as to obtain the first identity information digest.
Here, the native nodes in the blockchain network also hold root certificates issued by the certificate authority. In the transaction verification process, the digital certificate is verified, specifically, the primary node decrypts the signature in the certificate of the digital certificate sent by the production and waste unit node according to the central public key in the root certificate, so as to obtain the first identity information abstract.
In step 107, the blockchain network performs hash encryption on the node public key and the identity information in the digital certificate to obtain a second identity information digest.
In step 108, when the first identity information digest is the same as the second identity information digest, the blockchain network decrypts the digital signature sent by the production and waste unit node according to the node public key, so as to obtain the first transfer information digest in the digital signature.
When the first identity information abstract is the same as the second identity information abstract, the native node of the blockchain network determines that the node public key is from a user of the production and waste unit node claimed by the digital certificate, and then the native node of the blockchain network decrypts the digital signature sent by the production and waste 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, the native node of the blockchain network determines that the authentication fails when the first identity information digest is different from the second identity information digest.
In step 109, the blockchain network performs hash encryption on the waste transfer information to obtain a second transfer information digest.
In step 110, the blockchain network determines that the waste transfer information is successfully verified 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 native node in the block chain network determines that the information in the transaction initiated by the production and waste unit node is not tampered, completes verification, and can perform subsequent operations such as block filling and consensus on the transaction. By the above method for verifying the digital certificate and the digital signature, the credibility of the information is ensured.
The method for processing hazardous waste based on the blockchain network provided by the embodiment of the invention will be described in conjunction with the exemplary application and implementation of the blockchain network provided by the embodiment of the invention.
Referring to fig. 5A, fig. 5A is an alternative flowchart of a method for processing hazardous waste based on a blockchain network according to an embodiment of the present invention, which will be described with reference to the steps shown in fig. 5A.
In step 201, the blockchain network obtains waste transfer information sent by the waste production unit node, and adds the waste transfer information to a hazardous waste coupon stored in the blockchain network.
The dangerous waste collection node, the production waste unit node, the transportation unit node, the processing unit node and the environmental protection unit node are all client nodes formed by accessing electronic equipment under the administration of a business main body into a block chain network. According to the different types of the blockchain network, the access conditions of the service body are different, for example, under the condition that the blockchain network is a public chain, the service body can directly access the blockchain network without verification; in the case that the blockchain network is a alliance chain, an access condition may be set, and only when the service agent meets the access condition, the electronic device of the service agent is allowed to access to become a client node in the blockchain network, for example, the access condition is that the service agent holds an authorization identifier issued by the environmental protection unit system.
In the waste transfer process, waste is firstly produced by a production and waste unit, and business personnel of a production and waste unit system inputs waste transfer information in electronic equipment (namely production and waste unit nodes) according to actual conditions and sends the waste transfer information to a block chain network through the production and waste unit nodes. The method comprises the steps that a node of a block chain network obtains waste transfer information sent by a production and waste unit node, and the waste transfer information is added into a dangerous and waste coupon stored in the block chain network, wherein the dangerous and waste coupon can be created according to a coupon creation request initiated to the block chain network by the production and waste unit node, and can also be created according to a coupon creation request initiated to the block chain network by a dangerous and waste collection node. The embodiment of the present invention does not limit the specific content of the waste transfer information, for example, the waste transfer information includes the name of the production and waste unit, the type of the hazardous waste, the weight of the hazardous waste, and the date of the production and waste.
In some embodiments, the above-described addition of the waste transfer information to the critical scrap list stored in the blockchain network may be achieved by: the block chain network broadcasts the waste transfer information, so that nodes in the block chain network fill the waste transfer information into an update block, and when the update block is identified consistently, the update block is added to the tail of the block chain, wherein the update block comprises the correlation between the waste transfer information and a dangerous waste coupon.
And the production and waste unit node initiates a transaction for submitting waste transfer information to the blockchain network, wherein the transaction carries the digital certificate of the production and waste unit node and the digital signature of the production and waste unit node on the transaction. When a node in the block chain network receives a transaction, the digital certificate and the digital signature carried by the transaction are verified, and on the basis of successful verification of the digital certificate and the digital signature, the digital signature of the node and the digital certificate of the node are carried in the transaction, and the transaction is continuously broadcast in the block chain network. And after receiving the transaction which is successfully verified, the node with the sequencing function in the blockchain network fills the transaction into a new block and broadcasts the transaction to the node which provides the consensus service in the blockchain network, wherein the new block comprises the correlation between the waste transfer information and the dangerous and useless coupons. The node providing the consensus service in the blockchain network performs the consensus process on the new block to reach an agreement, the node providing the ledger function adds the new block to the tail of the blockchain, and executes the transaction in the new block: namely, for the transaction of submitting the waste transfer information, the key value pair corresponding to the hazardous waste coupons is updated in the account book, so that the correlation between the waste transfer information and the hazardous waste coupons is established. It should be noted that all nodes (including client nodes such as production and waste unit nodes) in the blockchain network may perform the above functions of identifying and maintaining the blockchain, or nodes other than the client nodes such as production and waste unit nodes in the blockchain network may be used to implement the functions of the blockchain network, so as to avoid performance fluctuation of the blockchain network caused by completely depending on the client nodes.
In step 202, the block chain network obtains the waste transportation information sent by the transportation unit node, and adds the waste transportation information to the hazardous waste union bill.
The transportation unit is used for transporting the dangerous waste from the waste production unit to the processing unit, and similarly, business personnel of the transportation unit system inputs waste transportation information into the electronic equipment (namely, the transportation unit node) under the jurisdiction according to the received dangerous waste related condition and sends the waste transportation information to the block chain network through the transportation unit node. And the nodes of the block chain network acquire waste transport information sent by the transport unit nodes, and after verification, block filling and consensus are consistent, the waste transport information is added into the hazardous waste coupon 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 a processing unit, the receiving date of hazardous waste, the weight of hazardous waste and the transportation destination.
In step 203, the block chain network acquires waste receiving information sent by a processing unit node, and adds the waste receiving information to the hazardous waste union bill.
When the processing unit receives the hazardous waste transferred by the transportation unit, business personnel of a system of the processing unit inputs waste receiving information in electronic equipment (namely processing unit nodes) under the jurisdiction according to the received actual situation of the hazardous waste, and sends the waste receiving information to the block chain network through the processing unit nodes. And the nodes of the block chain network acquire the 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 hazardous waste coupon stored in the block chain network. The embodiment of the present invention does not limit the specific content of the waste receiving information, for example, the waste receiving information includes the name of the production and waste unit, the receiving date of the hazardous waste, the type of the hazardous waste, and the weight of the hazardous waste.
In step 204, the blockchain network sends the hazardous waste coupon to the environmental protection unit node in response to the query request for the hazardous waste coupon sent by the environmental protection unit node.
Service personnel of the environment-friendly unit system can send query requests to the block chain network through the environment-friendly unit nodes, wherein the query requests comprise query conditions of the dangerous and useless coupons, and the query conditions comprise block numbers of blocks where the dangerous and useless coupons are located, coupon numbers generated when the nodes of the block chain network create the dangerous and useless coupons, coupon creation dates or unit names and the like. And the nodes of the block chain network acquire the query request, and after verification, block filling and consensus are consistent, the dangerous and waste joint slips requested by the query request are sent to the environment-friendly unit nodes, so that business personnel operating the environment-friendly unit nodes can check the dangerous and waste joint slips. It should be noted that there is no strict sequence between step 204 and steps 201 to 203, that is, the environment-friendly unit node can send an inquiry request to the blockchain network at any time after the hazardous waste coupons are created, so as to obtain the hazardous waste coupons.
In some embodiments, after step 201, further comprising: the block chain network is deployed to an intelligent contract of the block chain network through the environment-friendly unit node, and the waste processing information is checked in a forward direction; adding the waste treatment information to the hazardous waste coupons when a forward validation passes; wherein the waste treatment information comprises 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 a forward validation rule. And after the node of the block chain network verifies the deployment transaction, fills the blocks and agrees with the block, deploying the intelligent contract into the block chain network. The node of the block chain network conducts forward verification on waste processing information sent by the client node according to a forward verification rule in the intelligent contract, wherein the waste processing information comprises at least one of waste transportation information and waste receiving information, and the forward verification rule can be used for comparing dangerous waste weight or comparing dangerous waste types equally. For example, when the forward verification rule is to compare the weight of the hazardous waste and the waste processing information is the waste transportation information sent by the transportation unit node, comparing the weight of the hazardous waste included in the waste transportation information with the weight of the hazardous waste included in the waste transfer information in the hazardous waste joint list, and if the weight of the hazardous waste included in the waste transportation information is consistent, determining that the forward verification passes; if not, the forward check fails. When the forward check passes, adding the waste treatment information to a hazardous waste coupon of the blockchain network; when the current check fails, the waste processing information and the dangerous waste union notes stored in the block chain network are sent to the environment-friendly unit nodes, so that business personnel of the environment-friendly unit nodes can perform manual check on specific conditions. For the condition that the waste processing information and the dangerous and waste coupons stored in the block chain network are sent to the environment-friendly unit nodes, when the nodes of the block chain network obtain the results that the manual review sent by the environment-friendly unit nodes passes, the waste processing information is added to the dangerous and waste coupons. Through the forward verification mode, the effectiveness of the waste treatment information added to the hazardous waste coupon is ensured, and the client node is prevented from counterfeiting the waste treatment information.
As can be seen from the above exemplary implementation of fig. 5A, in the embodiment of the present invention, the circulation of the hazardous waste coupon is realized through the blockchain network, so that the circulation efficiency of the hazardous waste coupon is improved, and the blockchain network can respond to the query request sent by the environmental protection unit node at any time, so that the service personnel of the environmental protection unit node can check any link of the hazardous waste transfer, and the convenience and the effectiveness of the supervision are improved.
In some embodiments, referring to fig. 5B, fig. 5B is another optional flowchart of the hazardous waste treatment method based on the blockchain network according to the embodiment of the present invention, and based on fig. 5A, before step 201, in step 301, the blockchain network may further generate one-to-one digital identities for the hazardous waste collection node, the waste production unit node, the transportation unit node, the treatment unit node, and the environmental protection unit node.
The dangerous waste collection system is deployed in a waste production unit and used for collecting dangerous waste produced by the waste production unit, and the dangerous waste collection system is an intelligent garbage can applying the Internet of things technology. And accessing the electronic equipment governed by the dangerous and waste collection system into a block chain network, and naming the formed client node as a dangerous and waste collection node. For the client node, in order to protect the identity privacy of the client node, the nodes of the blockchain network generate one-to-one corresponding digital identities for the dangerous waste collection node, the production waste 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 the corresponding node, so that the corresponding node communicates 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 identities to communicate in the subsequent communication process with the blockchain network. Since only the client node knows the index relationship between itself and the digital identity, identity leakage can be effectively avoided. For example, a node of the blockchain network generates a digital identity of "1 rfdsa 12" for a critical waste collection node, and sends the digital identity to the critical waste collection node, and a subsequent critical waste collection node initiates a transaction to the blockchain network using the digital identity of "1 rfdsa 12"; similarly, the node of the blockchain network generates a digital identity of "2 ewqd 587" for the production and waste unit node, and sends the digital identity to the production and waste unit node, and the subsequent production and waste unit node initiates a transaction to the blockchain network by using the digital identity of "2 ewqd 587".
In step 303, the block chain network sends the index relationship between each digital identity and the corresponding node to the environment-friendly unit node, so that the environment-friendly unit node determines the node corresponding to the digital identity in the hazardous waste coupon according to the index relationship.
In the embodiment of the invention, the index relationship between each digital identity and the corresponding node is sent to the environment-friendly unit node, so that the environment-friendly unit node determines the real identity of each participant in the hazardous waste coupon according to the index relationship after inquiring the hazardous waste coupon including the digital identity.
In step 304, the block chain network acquires a coupon creation request sent by a hazardous waste collection node, and creates a hazardous waste coupon according to the coupon 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 that the collection weight of the dangerous waste is obtained, and when the collection weight reaches a weight threshold value, the intelligent garbage can serving as a dangerous waste collection node sends a coupon creation request to the blockchain network. And the node of the block chain network acquires the coupon creation request, creates and stores the dangerous and useless coupons in the block chain network after verification, block filling and consensus are consistent, and simultaneously generates the creation date and the unique coupon number.
In some embodiments, after step 304, further comprising: the block chain network acquires the waste transportation requirements sent by the dangerous waste collection nodes and stores the waste transportation requirements; in response to a request by a transport unit node for a query of the waste transport needs, sending the waste transport needs to the transport unit node; and acquiring a confirmed transportation request sent by the transportation unit node, storing the confirmed transportation request into the block chain network, and determining not to respond to the inquiry request of other transportation unit nodes for the waste transportation requirement.
In the embodiment of the invention, a competition mechanism can be applied to determine the transportation unit node for transferring the dangerous waste. Specifically, the nodes of the block chain network acquire waste transportation requirements sent by the dangerous waste collection nodes, and after verification, block filling and consensus are consistent, the waste transportation requirements are stored in the block chain network, and the waste transportation requirements can include dangerous waste weight and dangerous waste types. The transport unit nodes can query the waste transport requirements in the blockchain network, and the nodes of the blockchain network respond to the query requests of the transport unit nodes on the waste transport requirements and send the waste transport requirements to the transport unit nodes. The business 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 in 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 transportation confirmation request to the block chain network. When the node of the block chain network acquires the confirmed transportation request for the first time, the confirmed transportation request is stored to the block chain network after verification, block filling and consensus are consistent, the inquiry requests of other transportation unit nodes for waste transportation requirements are determined not to be responded, processing resources are saved, and meanwhile, a plurality of transportation units are prevented from being allocated to the same hazardous waste. The transportation unit node for transferring the dangerous waste is determined through the first-come-first-obtained competition mode, and the flexibility of transferring the dangerous waste is improved.
In some embodiments, the method for processing hazardous waste based on the block chain network further includes: the block chain network responds to a request of a transport unit node for inquiring the waste transport requirement, and obtains authorized node information sent by the dangerous waste collection node; inquiring the information of the transportation unit node sending the inquiry request in the authorized node information; and when the information of the transportation unit node sending the query request is queried, determining to respond to the query request.
In the embodiment of the invention, an authorization mechanism can also be set. Specifically, the nodes of the blockchain network acquire authorized node information sent by the dangerous and useless collecting nodes, and after verification, blockfilling and consensus are consistent, the authorized node information is stored in the blockchain network, wherein the authorized node information comprises information of transportation unit nodes trusted by the dangerous and useless collecting nodes. Of course, the authorization node information is not limited to be obtained from the hazardous waste collection node, and may also be obtained from nodes such as a production waste unit node or an environmental protection unit node. And when the node of the block chain network acquires the query request of the transport unit node for the waste transport requirement, querying the information of the transport unit node in the authorized node information. When the information of the transport unit node is not inquired in the authorized node information, determining not to respond to the inquiry request; when the information of the transportation unit node is inquired in the authorized node information, the response inquiry request is determined. Through the authorization mechanism, the situation that illegal transportation unit nodes acquire waste transportation requirements and perform malicious competition is effectively avoided.
As can be seen from the above exemplary implementation of fig. 5B, in the embodiment of the present invention, by generating a digital identity for each client node, the confidentiality of hazardous waste treatment is improved, and meanwhile, by sending the index relationship between the node and the digital identity to the environment-friendly unit node, the environment-friendly unit node can effectively supervise the hazardous waste transfer process.
In the following, an exemplary application of the embodiments of the present invention in a practical application scenario will be described.
Fig. 6 is a schematic view of a service entity of a block chain network according to an embodiment of the present invention, in fig. 6, the service entity participating in hazardous waste transfer may include a waste production unit, an intelligent trash can, a transportation unit, a processing unit, and an environmental protection unit, where the environmental protection unit includes an environmental protection bureau where the waste production unit is located and an environmental protection bureau where the processing unit is located, and electronic devices belonging to the service entity may both access the block chain network to become client nodes in the block chain network and participate in the circulation of the hazardous waste union bill.
Fig. 7 is a schematic diagram of a hazardous waste receipt provided in an embodiment of the present invention, in the hazardous waste receipt shown in fig. 7, a service person of a waste and production unit submits waste transfer information to a blockchain network through a node of the waste and production unit according to an actual situation of waste and production, so that the node of the blockchain network adds the waste transfer information to the hazardous waste receipt, where the waste transfer information includes a name of the waste and production unit, a type of the hazardous waste, a weight of the hazardous waste, and a date of the waste and production. And submitting waste transportation information to the block chain network through the transportation unit nodes by business personnel of the transportation unit according to the actual condition of the transportation danger waste, wherein the waste transportation information comprises a processing unit name, a danger waste receiving date, a danger waste weight and a transportation destination. And submitting waste receiving information to the block chain network through the processing unit nodes by service personnel of the processing unit according to the actual situation of receiving the dangerous waste, wherein the waste receiving information comprises the name of the production waste unit, the receiving date of the dangerous waste, the type of the dangerous waste and the weight of the dangerous waste. And service personnel of the environment-friendly unit send query requests to the block chain network through the environment-friendly unit nodes so as to query the corresponding dangerous and useless coupons, wherein the query conditions in the query requests can be coupon numbers, coupon creation dates or unit names (the unit names refer to unit names related to the dangerous and useless coupons, such as production and waste unit names or processing unit names) and the like. Of course, the waste transfer information, the waste transportation information, the waste receiving information, and the query condition are only examples, and may be adjusted according to an actual application scenario, which is not limited in the embodiment of the present invention.
Fig. 8 is another alternative flow chart of the method for processing hazardous waste based on the blockchain network according to the embodiment of the present invention, which is described with the steps shown in fig. 8:
in a first step, the blockchain network sets digital identities for all participants.
Here, the involved parties (i.e., the service entities) include an intelligent trash can, a production and waste unit, a transportation unit, a processing unit, and an environmental protection unit, and the client nodes formed by accessing the electronic device under jurisdiction to the block chain network are a dangerous and waste collection node, a production and waste unit node, a transportation unit node, a processing unit node, and an environmental protection unit node in sequence. And meanwhile, the index relation between each digital identity and the node is sent to the environment-friendly unit node.
In a second step, the intelligent trash can 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 waste reaches a weight threshold value, the intelligent garbage can automatically sends a coupon establishing request to the block chain network through the dangerous waste collection node so that the block chain network establishes the dangerous waste coupon according to the coupon establishing request,
and in the third step, the waste transfer information is uploaded to the hazardous waste union bill by the waste production unit.
For the dangerous waste of output, business personnel of a waste production unit send waste transfer information to the blockchain network through the waste production unit node, so that the blockchain network adds the waste transfer information to the dangerous waste combination list.
And fourthly, dispatching the transport vehicles by the transport units, and uploading the waste transport information to the hazardous waste union bill.
And dispatching the transport vehicle by the transport unit to transfer the dangerous wastes, and simultaneously sending the waste transport information to the block chain network by the service personnel of the transport unit through the transport unit nodes so as to enable the block chain network to add the waste transport information to the dangerous waste coupon.
And fifthly, uploading the dangerous waste receiving information to a dangerous waste joint list by a processing unit.
The processing unit receives the hazardous wastes transferred by the transportation unit, and meanwhile, the service personnel of the processing unit sends the waste receiving information to the blockchain network through the processing unit node, so that the blockchain network adds the waste receiving information to the hazardous waste combination list.
And in the sixth step, the environmental protection unit acquires the hazardous waste union bill in real time.
And service personnel of the environment-friendly unit can send a query request to the block chain network through the environment-friendly unit node at any stage so as to obtain the hazardous and waste coupon stored in the block chain network. It should be noted that, in the hazardous waste coupon 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 relationship acquired in the first step.
As can be seen from the above exemplary implementation of fig. 8, in the embodiment of the present invention, the circulation of the hazardous waste coupon is realized through the blockchain network, so that the circulation efficiency of the hazardous waste coupon is improved, and the blockchain network can respond to the query request sent by the environmental protection unit node at any time, so that the service personnel of the environmental protection unit node can audit any link of the hazardous waste transfer, and the convenience and the effectiveness of supervision are improved.
Continuing with the exemplary structure 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 configured to acquire waste transfer information sent by a waste production unit node, and add the waste transfer information to a hazardous waste coupon stored in a blockchain network; the second adding module 21432 is configured to obtain waste transportation information sent by a transportation unit node, and add the waste transportation information to the hazardous waste coupon; a third adding module 21433, configured to obtain waste receiving information sent by a processing unit node, and add the waste receiving information to the hazardous waste coupon; the coupon sending module 21434 is configured to send the hazardous and waste coupons to the environment-friendly unit nodes in response to a query request for the hazardous and waste coupons sent by the environment-friendly unit nodes.
In some embodiments, the software module 2143 further comprises: the system comprises a coupon creating module, a block chain network and a block waste collecting node, wherein the coupon creating module is used for acquiring a coupon creating request sent by a dangerous waste collecting node and creating a dangerous waste coupon in the block chain network according to the coupon creating 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 comprises: the identity generating module is used for generating digital identities which correspond to the dangerous waste collecting nodes, the production waste unit nodes, the transportation unit nodes, the processing unit nodes and the environment-friendly unit nodes one by one; and the identity sending module is used for sending the digital identity to the corresponding node so as to enable the corresponding node to communicate with the block chain network according to the digital identity.
In some embodiments, the software module 2143 further comprises: and the index sending module is used for sending the index relationship between each digital identity and the corresponding node to the environment-friendly unit node so that the environment-friendly unit node determines the node corresponding to the digital identity in the hazardous and useless union bill according to the index relationship.
In some embodiments, the software module 2143 further comprises: the demand acquisition module is used for acquiring the waste transportation demand sent by the dangerous waste collection node and storing the waste transportation demand to the block chain network; the demand sending module is used for responding to a query request of a transport unit node for the waste transport demand, and sending the waste transport demand to the transport unit node; and the confirmed transportation module is used for acquiring the confirmed transportation request sent by the transportation unit node, storing the confirmed transportation request into the block chain network, and determining not to respond to the inquiry request of other transportation unit nodes for the waste transportation requirement.
In some embodiments, the software module 2143 further comprises: the authorization information acquisition module is used for responding to the inquiry request of the transportation unit node for the waste transportation requirement, and acquiring authorization node information sent by the dangerous waste collection node; the query module is used for querying the information of the transportation unit node sending the query request in the authorization node information; and the response determining 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 comprises: the forward check module is used for performing forward check on the waste processing information through an intelligent contract which is deployed to the block chain network by the environment-friendly unit node; the processing information adding module is used for adding the waste processing information into the hazardous waste union bill when the forward verification passes; wherein the waste treatment information comprises at least one of: waste transport information, waste receiving information.
In some embodiments, the first add module 21431 is further configured to: broadcasting the waste transfer information in the blockchain network so that nodes in the blockchain network fill the waste transfer information into an update block, and when the common identification of the update block is consistent, appending the update block to the tail of a blockchain, wherein the update block comprises the correlation between the waste transfer information and a dangerous waste coupon.
Embodiments of the present invention provide a storage medium storing executable instructions, where the executable instructions are stored, and when executed by a processor, the executable instructions will cause the processor to execute a method provided by embodiments of the present invention, for example, a method for processing hazardous wastes based on a block chain network as shown in fig. 5A and 5B.
In some embodiments, the storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as 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).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, in the embodiment of the present invention, the block chain network is used as an information platform for transferring the hazardous waste coupon, and the block chain is combined with the internet of things technology to orchestrate hazardous waste transfer services of a plurality of units; by utilizing the digital identity management system, the confidentiality of the hazardous waste coupons is improved, the information transfer efficiency is improved on the premise of ensuring clear responsibility, a complete information closed loop from offline receipt data to cloud management data is provided, and the convenience and effectiveness of supervision by an environmental protection unit are improved.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A dangerous waste treatment method based on a block chain network is characterized by comprising the following steps:
acquiring waste transfer information sent by a waste production unit node, and adding the waste transfer information into a dangerous waste joint list stored in a block chain network;
acquiring waste transportation information sent by a transportation unit node, and adding the waste transportation information into the hazardous waste union bill;
acquiring waste receiving information sent by a processing unit node, and adding the waste receiving information into the hazardous waste union bill;
responding to a query request for the hazardous and waste union bill sent by an environmental protection unit node, and sending the hazardous and waste union bill to the environmental protection unit node.
2. The hazardous waste treatment method of claim 1, further comprising:
acquiring a coupon establishing request sent by a hazardous waste collection node, and establishing a hazardous waste coupon in the block chain network according to the coupon establishing 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 of claim 2, further comprising:
generating digital identities corresponding to the dangerous waste collection node, the production waste unit node, the transportation unit node, the treatment unit node and the environmental protection unit node one by one;
and sending the digital identity to a corresponding node so that the corresponding node communicates with the blockchain network according to the digital identity.
4. The hazardous waste treatment method of claim 3, further comprising:
sending the index relationship between each digital identity and the corresponding node to the environment-friendly unit node so as to ensure that
And the environment-friendly unit node determines the node corresponding to the digital identity in the hazardous and waste union bill according to the index relation.
5. The hazardous waste treatment method of claim 2, further comprising:
acquiring a waste transportation demand sent by the dangerous waste collection node, and storing the waste transportation demand to the block chain network;
in response to a request by a transport unit node for a query of the waste transport needs, sending the waste transport needs to the transport unit node;
and acquiring a confirmed transportation request sent by the transportation unit node, storing the confirmed transportation request into the block chain network, and determining not to respond to the inquiry request of other transportation unit nodes for the waste transportation requirement.
6. The hazardous waste treatment method of claim 5, further comprising:
obtaining authorization node information sent by the dangerous waste collection node before responding to a query request of a transport unit node for the waste transport demand;
inquiring the information of the transportation unit node sending the inquiry request in the authorized node information;
and when the information of the transportation unit node sending the query request is queried, determining to respond to the query request.
7. The hazardous waste treatment method of claim 1, further comprising:
performing forward check on the waste processing information through an intelligent contract which is deployed to the block chain network by the environment-friendly unit node;
adding the waste treatment information to the hazardous waste coupons when a forward validation passes;
wherein the waste treatment information comprises at least one of: waste transport information, waste receiving information.
8. The hazardous waste disposal method of any one of claims 1 to 7, wherein the adding the waste transfer information to the hazardous waste coupon stored in the blockchain network comprises:
broadcasting the garbage transfer information in the blockchain network so that
And filling the waste transfer information into an updating block by a node in the block chain network, and adding the updating block to the tail part of the block chain when the common identification of the updating block is consistent, wherein the updating block comprises the correlation between the waste transfer information and the hazardous waste coupon.
9. A node of a blockchain network, comprising:
the system comprises a first adding module, a second adding module and a third adding module, wherein the first adding module is used for acquiring waste transfer information sent by a production waste unit node and adding the waste transfer information into a dangerous waste joint list stored in a block chain network;
the second adding module is used for acquiring waste transportation information sent by a transportation unit node and adding the waste transportation information to the dangerous waste joint list;
the third adding module is used for acquiring waste receiving information sent by the processing unit node and adding the waste receiving information to the dangerous waste joint list;
and the coupon sending module is used for responding to the query request of the hazardous and waste coupons sent by the environment-friendly unit nodes and sending the hazardous and waste coupons to the environment-friendly unit nodes.
10. A node of a blockchain network, comprising:
a memory for storing executable instructions;
a processor, configured to execute the executable instructions stored in the memory, and implement the method for handling hazardous waste in a blockchain network according to any one of claims 1 to 8.
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 true CN110599095A (en) 2019-12-20
CN110599095B 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)

Cited By (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
CN111901293A (en) * 2020-06-08 2020-11-06 北京邮电大学 Resource malicious competition avoiding method for alliance chain
CN112364371A (en) * 2020-10-16 2021-02-12 杭州甘道智能科技有限公司 Block chain-based vaccine transfer monitoring device and method
CN112651588A (en) * 2020-09-15 2021-04-13 重庆环问问科技有限公司 Intelligent cloud management system for hazardous waste disposal of block chain
CN112819468A (en) * 2021-02-24 2021-05-18 浙江蓝景科技有限公司 Intelligent contract processing method and device and electronic equipment
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN113205193A (en) * 2021-04-27 2021-08-03 安徽中科晶格技术有限公司 Waste treatment method, system, equipment and storage medium based on block chain
CN113723924A (en) * 2021-08-30 2021-11-30 平安国际智慧城市科技股份有限公司 Enterprise portrait construction method and device, computer equipment and storage medium
CN115496243A (en) * 2022-11-17 2022-12-20 北京博腾慧通科技有限公司 Hazardous waste transfer processing method, storage medium and server
CN116109225A (en) * 2022-10-27 2023-05-12 大连理工大学 Block chain-based dangerous waste treatment service platform, device and storage medium

Citations (6)

* 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
US20180285810A1 (en) * 2017-03-29 2018-10-04 Ripe Technology, Inc. Systems and methods of blockchain transaction recordation in a food supply chain
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

Patent Citations (6)

* 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
US20180285810A1 (en) * 2017-03-29 2018-10-04 Ripe Technology, Inc. Systems and methods of blockchain transaction recordation in a food supply chain
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

Cited By (12)

* 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
CN111901293A (en) * 2020-06-08 2020-11-06 北京邮电大学 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
CN112364371A (en) * 2020-10-16 2021-02-12 杭州甘道智能科技有限公司 Block chain-based vaccine transfer monitoring device and method
CN112364371B (en) * 2020-10-16 2024-04-16 杭州甘道智能科技有限公司 Vaccine transfer monitoring device and method based on block chain
CN112819468A (en) * 2021-02-24 2021-05-18 浙江蓝景科技有限公司 Intelligent contract processing method and device and electronic equipment
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN113205193A (en) * 2021-04-27 2021-08-03 安徽中科晶格技术有限公司 Waste treatment method, system, equipment and storage medium based on block chain
CN113723924A (en) * 2021-08-30 2021-11-30 平安国际智慧城市科技股份有限公司 Enterprise portrait construction method and device, computer equipment and storage medium
CN116109225A (en) * 2022-10-27 2023-05-12 大连理工大学 Block chain-based dangerous waste treatment service platform, device and storage medium
CN116109225B (en) * 2022-10-27 2023-08-11 大连理工大学 Block chain-based dangerous waste treatment service platform, device and storage medium
CN115496243A (en) * 2022-11-17 2022-12-20 北京博腾慧通科技有限公司 Hazardous waste transfer processing method, storage medium and server

Also Published As

Publication number Publication date
CN110599095B (en) 2024-04-02

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
CN111047319B (en) Transaction processing method of block chain network and block chain network
CN108833081B (en) Block chain-based equipment networking authentication method
CN107231351B (en) Electronic certificate management method and related equipment
CN110599213B (en) Article management method and device based on blockchain network and electronic equipment
CN110597832A (en) Government affair information processing method and device based on block chain network, electronic equipment and storage medium
CN110569674A (en) Block chain network-based authentication method and device
CN110597911B (en) Certificate processing method and device for block chain network, electronic equipment and storage medium
CN102170440B (en) Method suitable for safely migrating data between storage clouds
CN110598434B (en) House information processing method and device based on blockchain network, electronic equipment and storage medium
CN110599069A (en) Application evaluation method and device based on block chain network
JP2021519531A (en) Document access to the blockchain network
CN109064124B (en) Method and device for verifying and storing work history based on block chain
WO2022166637A1 (en) Blockchain network-based method and apparatus for data processing, and computer device
JP2023520859A (en) Faster view change for blockchain
CN113256297B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110569643A (en) traffic management method and device based on block chain network
CN113328997B (en) Alliance chain crossing system and method
CN110769274B (en) Live broadcast information processing method and device based on block chain network, electronic equipment and storage medium
CN109951490A (en) Webpage integrity assurance, system and electronic equipment based on block chain
CN115605868A (en) Cross-network identity provisioning
CN114760071B (en) Zero-knowledge proof based cross-domain digital certificate management method, system and medium

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