CN115859320A - A blockchain-based tamper-proof system for renewable resource recovery data - Google Patents
A blockchain-based tamper-proof system for renewable resource recovery data Download PDFInfo
- Publication number
- CN115859320A CN115859320A CN202211440957.9A CN202211440957A CN115859320A CN 115859320 A CN115859320 A CN 115859320A CN 202211440957 A CN202211440957 A CN 202211440957A CN 115859320 A CN115859320 A CN 115859320A
- Authority
- CN
- China
- Prior art keywords
- pound
- module
- goods
- values
- data
- 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.)
- Pending
Links
- 238000011084 recovery Methods 0.000 title claims description 7
- 238000013500 data storage Methods 0.000 claims abstract description 32
- 238000007689 inspection Methods 0.000 claims abstract description 17
- 238000003860 storage Methods 0.000 claims abstract description 16
- 238000005303 weighing Methods 0.000 claims abstract description 15
- 238000004064 recycling Methods 0.000 claims abstract description 9
- 230000008929 regeneration Effects 0.000 claims 1
- 238000011069 regeneration method Methods 0.000 claims 1
- 238000000034 method Methods 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 4
- 230000005587 bubbling Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种基于区块链的再生资源回收数据防篡改系统,包括供应商模块用于供应商预约送货和磅单查验;业务运营模块用于在门岗处查验预约送货信息并生成磅单,对货品进行称重和质检并获取货物照片,对磅单进行查验;业务中台模块用于处理供应商模块与业务运营模块质检的业务逻辑,根据磅单生成MD5值并存储;业务数据存储模块用于存储磅单数据;区块链存证数据存储模块用于对磅单数据进行序列化和非对称加密,将加密后的磅单数据上链存储至区块链平台,并将存证hash值保存到业务数据存储模块所对应的磅单中。利用非对称加密技术,对磅单数据进行加密保护;利用区块链存证技术,实现磅单数据存储,保证了磅单信息的保密性、安全性、不可篡改性。
The invention discloses a blockchain-based anti-tampering system for recycling data of renewable resources, which includes a supplier module for supplier reservation delivery and pound list inspection; a business operation module for checking reservation delivery information at the gate and generating Weight list, weighing and quality inspection of the goods and obtaining photos of the goods, and checking the weight list; the business middle platform module is used to process the business logic of the quality inspection of the supplier module and the business operation module, and generate and store the MD5 value according to the weight list ;The business data storage module is used to store the pound bill data; the blockchain storage certificate data storage module is used to serialize and asymmetrically encrypt the pound bill data, and store the encrypted pound bill data on the chain to the blockchain platform. And save the certificate hash value to the pound list corresponding to the business data storage module. Use asymmetric encryption technology to encrypt and protect the bill data; use blockchain storage technology to realize the data storage of the bill, ensuring the confidentiality, security and non-tampering of the bill information.
Description
技术领域technical field
本发明涉及再生资源回收领域,尤其涉及一种基于区块链的再生资源回收数据防篡改系统。The invention relates to the field of recycling of renewable resources, in particular to a blockchain-based anti-tampering system for recycling data of renewable resources.
背景技术Background technique
再生资源产业特点是后端利废企业大型、规范、集中,而前端回收企业小、散、乱,信息化程度非常落后。目前再生资源行业税收优惠政策仅针对生产加工环节,大量回收企业无法享受政策,为解决进项成本认定、发票、增值税所得税等问题,部分地区政府部门提供产业扶持财政优惠政策,但由于行业需求巨大,缺乏有效监管手段,导致存在虚假交易、发票失控等问题,缺乏对交易的磅单数据的有效保护,前端回收企业中存在关键磅单数据被篡改和窃密的问题。The characteristics of the renewable resources industry are that the back-end waste recycling enterprises are large, standardized, and concentrated, while the front-end recycling enterprises are small, scattered, and chaotic, and the degree of informatization is very backward. At present, the preferential tax policies for the renewable resources industry are only aimed at the production and processing links, and a large number of recycling companies cannot enjoy the policies. In order to solve problems such as input cost identification, invoices, and value-added tax income tax, some regional government departments provide industrial support financial preferential policies, but due to the huge demand of the industry , the lack of effective supervision means leads to problems such as false transactions and out-of-control invoices, and the lack of effective protection of transaction bill data. There are problems of key bill data being tampered with and stolen in front-end recycling companies.
发明内容Contents of the invention
本发明提供一种基于区块链的再生资源回收数据防篡改系统,以克服上述技术问题。The present invention provides a blockchain-based data tamper-proof system for reclaiming renewable resources to overcome the above-mentioned technical problems.
一种基于区块链的再生资源回收数据防篡改系统,包括供应商模块、业务运营模块、业务处理中台模块、业务数据存储模块以及区块链存证数据存储模块,A blockchain-based renewable resource recovery data tamper-proof system, including a supplier module, a business operation module, a business processing middle platform module, a business data storage module, and a blockchain storage certificate data storage module,
供应商模块用于供应商进行预约送货,所述预约送货包括供应商发起预约送货请求,根据预约送货信息生成预约送货标识码,预约送货信息包括供应商名称、货品名称、货品规格、预约送货时间、预约送货重量以及车牌号,供应商模块还用于对业务中台模块传输的磅单进行查验;The supplier module is used for suppliers to make scheduled delivery. The scheduled delivery includes that the supplier initiates a scheduled delivery request, and generates a scheduled delivery identification code according to the scheduled delivery information. The scheduled delivery information includes supplier name, product name, Product specifications, scheduled delivery time, scheduled delivery weight, and license plate number, the supplier module is also used to check the weight list transmitted by the business center module;
业务运营模块用于在门岗处查验预约送货信息,并根据预约送货信息中的预约送货标识码生成磅单,包括将预约送货标识码作为磅单的名称,并将磅单的参数进行初始化,磅单的参数包括预约送货标识码、预约送货时间、供应商名称、货品名称、毛重、皮重、扣重、货品等级、货物照片、交易金额、MD5值以及存证hash值,将预约送货信息中的预约送货时间、供应商名称以及货品名称存储至与预约送货标识码相同的磅单中,将供应商预约送货的货品进行称重,将称重后的信息存储至与预约送货标识码相同的磅单中,称重后的信息包括毛重、皮重,毛重为含车辆、司机、货品的重量,皮重为含车辆、司机的重量,质检员对货品进行质检并获取货物照片,根据查验后的货品等级计算扣重,将货品等级、扣重及货物照片存储至与预约送货标识码相同的磅单中,将与预约送货标识码相同的磅单数据传输至业务中台模块,业务运营模块还用于对业务中台模块传输的磅单进行查验;The business operation module is used to check the scheduled delivery information at the gate, and generate a weight slip according to the scheduled delivery identification code in the scheduled delivery information, including using the scheduled delivery identification code as the name of the weight slip, and setting the parameters of the weight slip To initialize, the parameters of the scale list include the scheduled delivery identification code, scheduled delivery time, supplier name, product name, gross weight, tare weight, deduction, product grade, product photo, transaction amount, MD5 value, and deposit certificate hash value , store the scheduled delivery time, supplier name, and product name in the scheduled delivery information in the scale sheet with the same identification code as the scheduled delivery, weigh the goods scheduled to be delivered by the supplier, and store the weighed The information is stored in the same scale as the scheduled delivery identification code. The weighed information includes gross weight and tare weight. The gross weight includes the weight of the vehicle, driver, and goods, and the tare weight includes the weight of the vehicle and driver. Carry out quality inspection of the goods and obtain the photos of the goods, calculate the deduction based on the grade of the goods after inspection, store the grade, deduction and photos of the goods in the scale that is the same as the scheduled delivery identification code, and store the same as the scheduled delivery identification code The same pound slip data is transmitted to the business center module, and the business operation module is also used to check the pound slip transmitted by the business center module;
业务中台模块用于处理供应商的预约送货请求、门岗放行、货品称重、货品质检的业务逻辑,并获取业务运营模块传输的磅单数据,根据磅单数据获取预约送货时间、货品等级、毛重、皮重、扣重,根据预约送货时间、货品等级获取货品价格,根据毛重、皮重、扣重计算货品重量,根据货品价格和货品重量计算交易金额,根据磅单生成MD5值,并将货品价格、货品重量、交易金额以及MD5值存储至对应的磅单中,将磅单数据传输至供应商模块、业务运营模块以及业务数据存储模块;The business middle station module is used to process the business logic of the supplier’s scheduled delivery request, gate release, product weighing, and product quality inspection, and obtain the pound list data transmitted by the business operation module, and obtain the scheduled delivery time, Product grade, gross weight, tare weight, deduction, get the price of the product according to the scheduled delivery time and product grade, calculate the weight of the product according to the gross weight, tare weight, and deduction, calculate the transaction amount according to the price and weight of the product, and generate MD5 according to the weight list value, and store the price of goods, weight of goods, transaction amount and MD5 value in the corresponding scale, and transmit the data of the scale to the supplier module, business operation module and business data storage module;
业务数据存储模块用于存储业务中台模块传输的磅单数据;The business data storage module is used to store the pound list data transmitted by the business middle station module;
区块链存证数据存储模块用于对磅单数据进行序列化处理,并根据私钥对序列化后的磅单数据进行非对称加密,将加密后的磅单数据存储至区块链平台,并将存证hash值保存到业务数据存储模块所对应的磅单中。The blockchain certificate storage data storage module is used to serialize the bill data, and perform asymmetric encryption on the serialized bill data according to the private key, and store the encrypted bill data on the blockchain platform. And save the certificate hash value to the pound list corresponding to the business data storage module.
优选地,所述供应商模块还用于对业务中台模块传输的磅单进行查验包括当磅单的数量为一个时,根据业务中台模块传输给供应商模块的磅单生成MD5值,获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值,判断两个MD5值是否相同,若两者相同,则磅单未被修改,若不相同,则磅单被修改;当磅单的数量为多个时,对磅单按照名称由大到小的顺序进行排序,根据排序后的磅单依次获取供应商模块中磅单对应的MD5值,并存储为第一比对集合,根据排序后的磅单依次获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值并存储为第二比对集合,分别计算第一比对集合和第二比对集合的MD5值,若两者的取值相同,则磅单未被修改,若两者不同,则分别对第一比对集合和第二比对集合中的元素进行比较,存储MD5值不相同的磅单,并将磅单反馈至供应商模块。Preferably, the supplier module is also used to check the pound slips transmitted by the business center module, including when the number of pound slips is one, generating an MD5 value according to the pound slips transmitted by the business center module to the supplier module, and obtaining The MD5 value corresponding to the pound slip in the blockchain platform of the blockchain certificate storage module, judge whether the two MD5 values are the same, if they are the same, the pound slip has not been modified, if not, the pound slip has been modified ; When there are multiple pound slips, sort the pound slips in descending order of names, and obtain the MD5 values corresponding to the pound slips in the supplier module in turn according to the sorted pound slips, and store them as the first ratio For the set, according to the sorted pound slips, the MD5 value corresponding to the pound slip in the blockchain platform of the blockchain storage certificate data storage module is sequentially obtained and stored as the second comparison set, and the first comparison set and the second comparison set are respectively calculated. Compare the MD5 value of the set, if the two values are the same, the pound slip has not been modified, if the two are different, compare the elements in the first comparison set and the second comparison set respectively, and store the MD5 value different scales, and feed the scales back to the supplier module.
优选地,所述业务运营模块还用于对业务中台模块传输的磅单进行查验包括当磅单的数量为一个时,根据业务中台模块传输给业务运营模块的磅单生成MD5值,获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值,判断两个MD5值是否相同,若两者相同,则磅单未被修改,若不相同,则磅单被修改;当磅单的数量为多个时,对磅单按照名称由大到小的顺序进行排序,根据排序后的磅单依次获取业务运营模块中磅单对应的MD5值,并存储为第一比对集合,根据排序后的磅单依次获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值并存储为第二比对集合,分别计算第一比对集合和第二比对集合的MD5值,若两者的取值相同,则磅单未被修改,若两者不同,则分别对第一比对集合和第二比对集合中的元素进行比较,存储MD5值不相同的磅单,并将磅单反馈至业务运营模块。Preferably, the business operation module is also used to check the pound slips transmitted by the business center module, including generating an MD5 value according to the pound slips transmitted by the business center module to the business operation module when the number of pound slips is one, and obtaining The MD5 value corresponding to the pound slip in the blockchain platform of the blockchain certificate storage module, judge whether the two MD5 values are the same, if they are the same, the pound slip has not been modified, if not, the pound slip has been modified ; When there are multiple pound slips, sort the pound slips in descending order of names, obtain the MD5 values corresponding to the pound slips in the business operation module in turn according to the sorted pound slips, and store them as the first ratio For the set, according to the sorted pound slips, the MD5 value corresponding to the pound slip in the blockchain platform of the blockchain storage certificate data storage module is sequentially obtained and stored as the second comparison set, and the first comparison set and the second comparison set are respectively calculated. Compare the MD5 value of the set, if the two values are the same, the pound slip has not been modified, if the two are different, compare the elements in the first comparison set and the second comparison set respectively, and store the MD5 value different scales, and feed the scales back to the business operation module.
优选地,所述对磅单数据进行序列化处理包括接收序列化指令,根据序列化指令调用序列化接口函数,创建与磅单数据对应的序列化对象,对序列化对象进行数据序列化,输出序列化文件。Preferably, said serializing the pound slip data includes receiving a serialization instruction, calling a serialization interface function according to the serialization instruction, creating a serialized object corresponding to the pound slip data, performing data serialization on the serialized object, and outputting Serialize the file.
优选地,所述根据私钥对序列化后的磅单数据进行非对称加密包括通过SA加密算法、ECC加密算法以及SM2非对称加密算法的任意一个对序列化后的磅单数据进行非对称加密。Preferably, the asymmetric encryption of the serialized bill data according to the private key includes performing asymmetric encryption on the serialized bill data through any one of SA encryption algorithm, ECC encryption algorithm and SM2 asymmetric encryption algorithm .
本发明提供一种基于区块链的再生资源回收数据防篡改系统,通过将关键的磅单信息经过序列化、非对称加密运算后在区块链平台的各个网络节点进行记录,保证了磅单信息的保密性、安全性、一致性及不可篡改性,既能够单独对磅单信息的某一部分进行调用查询,也能够对磅单信息的整体进行调用查询。The present invention provides a blockchain-based renewable resource recovery data tamper-proof system, by serializing and asymmetrically encrypting the key bill information and recording it on each network node of the blockchain platform to ensure the The confidentiality, security, consistency and non-tampering of information can not only call and query a certain part of the weight list information, but also call and query the whole weight list information.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本发明系统结构图;Fig. 1 is a system structure diagram of the present invention;
图2是本发明业务关系图。Fig. 2 is a business relationship diagram of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图1为本发明系统结构图,如图1所示,本实施例的方法可以包括:Fig. 1 is a system structure diagram of the present invention, as shown in Fig. 1, the method of the present embodiment can comprise:
一种基于区块链的再生资源回收数据防篡改系统,包括供应商模块、业务运营模块、业务处理中台模块、业务数据存储模块以及区块链存证数据存储模块,A blockchain-based renewable resource recovery data tamper-proof system, including a supplier module, a business operation module, a business processing middle platform module, a business data storage module, and a blockchain storage certificate data storage module,
供应商模块用于供应商进行预约送货,可以通过供应商端小程序进行预约送货,所述预约送货包括供应商发起预约送货请求,根据预约送货信息生成预约送货标识码,预约送货标识码可以为条形二维码,预约送货信息包括供应商名称、货品名称、货品规格、预约送货时间、预约送货重量、车牌号,供应商模块还用于对业务中台模块传输的磅单进行查验,The supplier module is used for the supplier to make scheduled delivery, and the scheduled delivery can be made through the supplier-side applet. The scheduled delivery includes the supplier initiating the scheduled delivery request, and generating the scheduled delivery identification code according to the scheduled delivery information. The scheduled delivery identification code can be a bar QR code. The scheduled delivery information includes the supplier name, product name, product specification, scheduled delivery time, scheduled delivery weight, and license plate number. The supplier module is also used to Check the pound list transmitted by the station module,
供应商模块还用于对业务中台模块传输的磅单进行查验,包括当磅单的数量为一个时,根据业务中台模块传输给供应商模块的磅单生成MD5值,获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值,判断两个MD5值是否相同,若两者相同,则磅单未被修改,若不相同,则磅单被修改;当磅单的数量为多个时,对磅单按照名称由大到小的顺序进行排序,所述根据名称由大到小进行排序包括依次将名称转换成字节,根据冒泡法对字节由大到小进行排序,根据排序后的字节顺序调整名称的顺序,根据排序后的磅单依次获取供应商模块中磅单对应的MD5值,并存储为第一比对集合,根据排序后的磅单依次获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值并存储为第二比对集合,分别计算第一比对集合和第二比对集合的MD5值,若两者的取值相同,则磅单未被修改,若两者不同,则分别对第一比对集合和第二比对集合中的元素进行比较,存储MD5值不相同的磅单,并将磅单反馈至供应商模块,The supplier module is also used to check the pound slips transmitted by the business middle station module, including when the number of pound slips is one, generate an MD5 value according to the pound slips transmitted by the business middle station module to the supplier module, and obtain the block chain storage The MD5 value corresponding to the pound slip in the blockchain platform of the certificate data storage module is used to determine whether the two MD5 values are the same. If the two are the same, the pound slip has not been modified; When the quantity is more than one, sort the pound list according to the order of name from large to small. The said sorting according to the name from large to small includes converting the name into bytes in turn, and sorting the bytes from large to small according to the bubbling method. Small sorting, adjust the order of the names according to the sorted byte order, and obtain the MD5 values corresponding to the pound slips in the supplier module in turn according to the sorted pound slips, and store them as the first comparison set, according to the sorted pound slips Obtain the MD5 value corresponding to the pound list in the blockchain platform of the blockchain certificate data storage module in turn and store it as the second comparison set, and calculate the MD5 values of the first comparison set and the second comparison set respectively. If the values of the two are the same, the slips have not been modified. If they are different, compare the elements in the first comparison set and the second comparison set respectively, store the slips with different MD5 values, and store the slips with different MD5 values. single feedback to the supplier module,
业务运营模块用于在门岗处查验预约送货信息,并根据预约送货信息中的预约送货标识码生成磅单,包括将预约送货标识码作为磅单的名称,并将磅单的参数进行初始化,磅单的参数包括预约送货标识码、预约送货时间、供应商名称、货品名称、毛重、皮重、扣重、货品等级、货物照片、交易金额、MD5值以及存证hash值,将预约送货信息中的预约送货时间、供应商名称以及货品名称存储至与预约送货标识码相同的磅单中,将供应商预约送货的货品进行称重,将称重后的信息存储至与预约送货标识码相同的磅单中,称重后的信息包括毛重、皮重,毛重为含车辆、司机、货品的重量,皮重为含车辆、司机的重量,质检员对货品进行质检并获取货物照片,根据查验后的货品等级计算扣重,将货品等级、扣重及货物照片存储至与预约送货标识码相同的磅单中,将与预约送货标识码相同的磅单数据传输至业务中台模块,业务运营模块还用于对业务中台模块传输的磅单进行查验;The business operation module is used to check the scheduled delivery information at the gate, and generate a weight slip according to the scheduled delivery identification code in the scheduled delivery information, including using the scheduled delivery identification code as the name of the weight slip, and setting the parameters of the weight slip To initialize, the parameters of the scale list include the scheduled delivery identification code, scheduled delivery time, supplier name, product name, gross weight, tare weight, deduction, product grade, product photo, transaction amount, MD5 value, and deposit certificate hash value , store the scheduled delivery time, supplier name, and product name in the scheduled delivery information in the scale sheet with the same identification code as the scheduled delivery, weigh the goods scheduled to be delivered by the supplier, and store the weighed The information is stored in the same scale as the scheduled delivery identification code. The weighed information includes gross weight and tare weight. The gross weight includes the weight of the vehicle, driver, and goods, and the tare weight includes the weight of the vehicle and driver. Carry out quality inspection of the goods and obtain the photos of the goods, calculate the deduction based on the grade of the goods after inspection, store the grade, deduction and photos of the goods in the scale that is the same as the scheduled delivery identification code, and store the same as the scheduled delivery identification code The same pound slip data is transmitted to the business center module, and the business operation module is also used to check the pound slip transmitted by the business center module;
所述业务运营模块还用于对业务中台模块传输的磅单进行查验包括当磅单的数量为一个时,根据业务中台模块传输给业务运营模块的磅单生成MD5值,获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值,判断两个MD5值是否相同,若两者相同,则磅单未被修改,若不相同,则磅单被修改;当磅单的数量为多个时,对磅单按照名称由大到小的顺序进行排序,所述根据名称由大到小进行排序包括依次将名称转换成字节,根据冒泡法对字节由大到小进行排序,根据排序后的字节顺序调整名称的顺序,根据排序后的磅单依次获取业务运营模块中磅单对应的MD5值,并存储为第一比对集合,根据排序后的磅单依次获取区块链存证数据存储模块的区块链平台中磅单对应的MD5值并存储为第二比对集合,分别计算第一比对集合和第二比对集合的MD5值,若两者的取值相同,则磅单未被修改,若两者不同,则分别对第一比对集合和第二比对集合中的元素进行比较,存储MD5值不相同的磅单,并将磅单反馈至业务运营模块。The business operation module is also used to check the pound list transmitted by the business center module, including when the quantity of the pound list is one, generating an MD5 value according to the pound list transmitted by the business center module to the business operation module, and obtaining the block chain The MD5 value corresponding to the pound slip in the blockchain platform of the certificate data storage module is used to judge whether the two MD5 values are the same. If they are the same, the pound slip has not been modified; When the number of bills is multiple, sort the pound bills in descending order of names. The sorting according to names includes converting names into bytes in turn, and sorting the bytes from big to small according to the bubbling method. Sorting to small, adjusting the order of the names according to the sorted byte order, sequentially obtaining the MD5 values corresponding to the pound slips in the business operation module according to the sorted pound slips, and storing them as the first comparison set, according to the sorted pound slips The order obtains the MD5 value corresponding to the pound order in the blockchain platform of the blockchain certificate data storage module in turn and stores it as the second comparison set, and calculates the MD5 values of the first comparison set and the second comparison set respectively, if If the values of the two are the same, the pound slip has not been modified. If the two are different, then compare the elements in the first comparison set and the second comparison set respectively, store the pound slips with different MD5 values, and store The scale sheet is fed back to the business operation module.
将业务运营模块划分为门岗模块、磅房称重模块、质检模块,门岗模块用于在门岗处查验预约送货信息并生成磅单,门岗人员根据预约送货车辆登记司机驾驶证、行驶证信息,Divide the business operation module into door post module, weighing room weighing module, and quality inspection module. The door post module is used to check the scheduled delivery information at the door post and generate a scale sheet. The door post personnel register the driver's license and driving license according to the scheduled delivery vehicle information,
磅房称重模块用于将供应商预约送货的货品进行称重,将称重后的信息存储至磅单,称重后的信息包括毛重、皮重,毛重为含车辆、司机、货品的重量,皮重为含车辆、司机的重量,司机将货车(含车辆、司机、货物)行驶到地磅称,司磅员通过磅房称重模块称出毛重gw,将毛重gw、司磅员、称毛重时间、称重照片记录到磅单,The scale room weighing module is used to weigh the goods scheduled to be delivered by the supplier, and store the weighed information in the scale sheet. The weighed information includes gross weight and tare weight. The gross weight is the vehicle, driver, and goods. Weight, tare weight is the weight of the vehicle and the driver. The driver drives the truck (including the vehicle, driver, and goods) to the weighbridge, and the weigher weighs the gross weight gw through the weighing module of the scale room. Gross weighing time, weighing photos are recorded in the scale sheet,
质检模块用于质检员对货品进行质检并获取货物照片,根据查验后的货品等级计算扣重,将货品等级、扣重及货物照片存储至磅单,司机将货车(含车辆、司机)行驶到地磅称,司磅员通过磅房称重模块称出皮重tw,并根据计算公式计算出净重nw=gw-tw,实重rw=nw-lw,将皮重tw、司磅员、称皮重时间、称重照片记录到磅单,The quality inspection module is used for the quality inspector to inspect the goods and obtain the photos of the goods, calculate the deduction based on the grade of the inspected goods, store the grade, weight and photos of the goods in the scale list, and the driver will send the truck (including the vehicle and the driver) ) to the weighbridge scale, the weigher weighs out the tare tw through the weighing module of the weighing room, and calculates the net weight nw=gw-tw and the actual weight rw=nw-lw according to the calculation formula, and the tare weight tw, the weigher , tare weighing time, weighing photos are recorded in the scale sheet,
业务中台模块用于处理供应商的预约送货请求、门岗放行、货品称重、货品质检的业务逻辑,并获取业务运营模块传输的磅单数据,根据磅单数据获取预约送货时间、货品等级、毛重、皮重、扣重,根据预约送货时间、货品等级获取货品价格,根据毛重、皮重、扣重计算货品重量,根据货品价格和货品重量计算交易金额,根据磅单生成MD5值,并将货品价格、货品重量、交易金额以及MD5值存储至对应的磅单中,将磅单数据传输至供应商模块、业务运营模块以及业务数据存储模块;The business middle station module is used to process the business logic of the supplier’s scheduled delivery request, gate release, product weighing, and product quality inspection, and obtain the pound list data transmitted by the business operation module, and obtain the scheduled delivery time, Product grade, gross weight, tare weight, deduction, get the price of the product according to the scheduled delivery time and product grade, calculate the weight of the product according to the gross weight, tare weight, and deduction, calculate the transaction amount according to the price and weight of the product, and generate MD5 according to the weight list value, and store the price of goods, weight of goods, transaction amount and MD5 value in the corresponding scale, and transmit the data of the scale to the supplier module, business operation module and business data storage module;
业务数据存储模块用于存储业务中台模块传输的磅单数据;The business data storage module is used to store the pound list data transmitted by the business middle station module;
区块链存证数据存储模块用于对磅单数据进行序列化处理,对磅单数据进行序列化处理包括接收序列化指令,根据序列化指令调用序列化接口函数,创建与磅单数据对应的序列化对象,对序列化对象进行数据序列化,输出序列化文件,并根据私钥对序列化后的磅单数据进行非对称加密,包括通过SA加密算法、ECC(椭圆曲线密码学,Elliptic curvecryptography)加密算法以及SM2非对称加密算法的任意一个对序列化后的磅单数据进行非对称加密,将加密后的磅单数据上链存储至区块链平台,并将存证hash值保存到业务数据存储模块所对应的磅单中。The blockchain certificate storage data storage module is used to serialize the pound slip data. The serialization processing of the pound slip data includes receiving the serialization instruction, calling the serialization interface function according to the serialization instruction, and creating the corresponding Serialize the object, serialize the data of the serialized object, output the serialized file, and perform asymmetric encryption on the serialized pound list data according to the private key, including SA encryption algorithm, ECC (elliptic curve cryptography, Elliptic curvecryptography) ) encryption algorithm and SM2 asymmetric encryption algorithm to asymmetrically encrypt the serialized bill data, store the encrypted bill data on the chain to the blockchain platform, and save the certificate hash value to the business In the pound list corresponding to the data storage module.
图2为本实施例的业务关系图,包括供应商端,业务运营模块、业务处理中台、关系型主从数据库、区块链平台;业务运营模块又包括门岗模块、磅房称重模块、质检模块,供应商端与业务处理中台进行预约送货和磅单查验,业务运营模块与业务处理中台进行门岗放行、称毛重、质检、称皮重、磅单查验的业务往来,业务处理中台与关系型主从数据库进行磅单数据存储,区块链平台与业务处理中台进行磅单查验和磅单上链存储业务往来。Fig. 2 is a business relationship diagram of the present embodiment, including a supplier end, a business operation module, a business processing middle platform, a relational master-slave database, and a block chain platform; In the quality inspection module, the supplier side and the business processing center platform carry out scheduled delivery and pound list inspection, and the business operation module and the business processing center platform perform door-to-door release, gross weight, quality inspection, tare weight, and pound list inspection. The business processing center and the relational master-slave database store the bill of lading data, and the blockchain platform and the business processing center perform the check of the bill of lading and the chain storage of the bill of lading.
整体的有益效果:提供一种基于区块链的再生资源回收数据防篡改系统,通过将关键的磅单信息经过序列化、非对称加密运算后在区块链平台的各个网络节点进行记录,保证了磅单信息的保密性、安全性、一致性及不可篡改性,既能够单独对磅单信息的某一部分进行调用查询,也能够对磅单信息的整体进行调用查询。The overall beneficial effect: Provide a blockchain-based renewable resource recovery data tamper-proof system, by serializing and asymmetrically encrypting the key bill information and recording it on each network node of the blockchain platform to ensure To ensure the confidentiality, security, consistency and non-tampering of the weight list information, it is possible to call and query a certain part of the weight list information alone, and also to call and query the whole weight list information.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211440957.9A CN115859320A (en) | 2022-11-17 | 2022-11-17 | A blockchain-based tamper-proof system for renewable resource recovery data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211440957.9A CN115859320A (en) | 2022-11-17 | 2022-11-17 | A blockchain-based tamper-proof system for renewable resource recovery data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115859320A true CN115859320A (en) | 2023-03-28 |
Family
ID=85663948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211440957.9A Pending CN115859320A (en) | 2022-11-17 | 2022-11-17 | A blockchain-based tamper-proof system for renewable resource recovery data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115859320A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116126961A (en) * | 2023-04-04 | 2023-05-16 | 河北中废通网络技术有限公司 | Tamper-proof unattended weighing data system of regeneration circulation internet of things information system |
CN117474531A (en) * | 2023-12-27 | 2024-01-30 | 他山互联网科技(三明)有限公司 | Renewable resource industry service system based on block chain |
-
2022
- 2022-11-17 CN CN202211440957.9A patent/CN115859320A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116126961A (en) * | 2023-04-04 | 2023-05-16 | 河北中废通网络技术有限公司 | Tamper-proof unattended weighing data system of regeneration circulation internet of things information system |
CN117474531A (en) * | 2023-12-27 | 2024-01-30 | 他山互联网科技(三明)有限公司 | Renewable resource industry service system based on block chain |
CN117474531B (en) * | 2023-12-27 | 2024-03-19 | 他山互联网科技(三明)有限公司 | Renewable resource industry service system based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2022206741B2 (en) | Electronic document platform | |
CN115859320A (en) | A blockchain-based tamper-proof system for renewable resource recovery data | |
CN111031036B (en) | Blockchain-based vaccine information monitoring method, device and computer equipment | |
US11263582B2 (en) | Distributed ledger system for material monitoring | |
CN111125773B (en) | Method, device, equipment and medium for processing customs declaration information based on block chain | |
JP7320682B2 (en) | Authentication method, authentication system and program | |
CN113011750A (en) | Renewable resource acquisition and marketing management system | |
CN105184539A (en) | Internet logistic service system | |
JP2022542544A (en) | Logistics physical delivery method, platform and storage medium based on blockchain | |
CN105590215B (en) | Data processing device and method for online processing of data errors among institutions | |
US20200372167A1 (en) | Data storage method, apparatus and device, data verification method, apparatus and device, and medium | |
CN113987061A (en) | Block chain evidence storage method and device | |
US20230360061A1 (en) | Digital environmental claims ecosystem for physical commodity assets | |
CN112862468A (en) | Export tax refunding and financing method, equipment and medium based on block chain | |
WO2024009852A1 (en) | Information processing device for assisting in management of tire recycling information | |
CN113191121A (en) | Express bill number generation method, device, equipment and storage medium | |
KR101932057B1 (en) | Distribution information management apparatus of shiplping company/ delivery company for import and export | |
US10095986B2 (en) | System and method of electronically classifying transportation documents | |
KR101919865B1 (en) | Apparatus and method for managing electronic receipt | |
CN111127041A (en) | Block chain-based detection sample management method, equipment and medium | |
CN112598502A (en) | Evidence obtaining method, device, equipment and storage medium | |
CN112669035A (en) | Block chain based bulk commodity spot transaction system and method | |
CN116894712A (en) | Block chain-based commodity transaction platform | |
CN109544342A (en) | A kind of e-commerce based on block chain is bartered platform solution to disputes method and system | |
CN113256394B (en) | Supply chain resource management system based on intelligent contract |
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 |