


技术领域technical field
本发明涉及加注加气技术领域,特别涉及一种以区块链技术实现公司级加气站账务管理的方法。The invention relates to the technical field of filling and gas filling, in particular to a method for realizing the accounting management of a company-level gas filling station by using a blockchain technology.
背景技术Background technique
目前加气站的记录统计普遍由各个站级系统分管统计,这样的统计方式,在过程中容易出现员工为了谋取私利恶意修改成交记录信息的现象。针对这一问题。现提出将区块链技术应用在公司级加气站的账务管理上,通过特定的加密算法生成密码链表并在各站点间公开。使成交记录具有可追溯性。At present, the records and statistics of gas filling stations are generally managed by each station-level system. Such a statistical method is prone to the phenomenon that employees maliciously modify transaction record information for personal gain. To solve this problem. It is now proposed to apply the blockchain technology to the accounting management of company-level gas stations, and to generate a password chain list through a specific encryption algorithm and publish it among the stations. Make transaction records traceable.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种以区块链技术实现公司级加气站账务管理的方法,本发明将区块链技术应用在公司级加气站的账务管理上,通过特定的加密算法生成密码链表并在各站点间公开。使成交记录具有可追溯性,以解决上述背景技术中提出的问题。The purpose of the present invention is to provide a method for realizing the accounting management of the company-level gas filling station by using the blockchain technology. Generate a password list and publish it among sites. The transaction records are made traceable to solve the problems raised in the above background art.
为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:
一种以区块链技术实现公司级加气站账务管理的方法,包括如下步骤:A method for realizing the accounting management of a company-level gas filling station using blockchain technology, comprising the following steps:
步骤1:将每笔记录视为一个区块,记录的数据内容和上笔记录的验证码组合在一起,通过循环冗余算法生成的新的CRC校验码作为该笔记录的验证码;Step 1: regard each record as a block, the data content of the record and the verification code of the previous record are combined together, and the new CRC check code generated by the cyclic redundancy algorithm is used as the verification code of the record;
步骤2:区块和区块之间通过验证码作为连接,使每笔交易记录都可以追溯;Step 2: The verification code is used as the connection between the block and the block, so that each transaction record can be traced;
步骤3:在所有站点都不需要上传成交记录时,由中心站点持续广播最新记录的流水号和验证码;Step 3: When all sites do not need to upload transaction records, the central site will continuously broadcast the latest recorded serial number and verification code;
步骤4:当任意站点需要上传成交记录时,将保存的最新的验证码和流水号发送给中心站点,中心站点验证通过后,通过广播禁止其他站点上传记录;Step 4: When any site needs to upload transaction records, send the latest verification code and serial number saved to the central site. After the central site passes the verification, other sites are prohibited from uploading records through broadcasting;
步骤5:该站点将新记录生成的验证码和流水号上传给中心站点;Step 5: The site uploads the verification code and serial number generated by the new record to the central site;
步骤6:中心站点收到数据后,将新的验证码和流水号继续广播给所有站点;Step 6: After the central site receives the data, it will continue to broadcast the new verification code and serial number to all sites;
步骤7:随后释放上传记录的权限,此后其他站点可以继续抢占权限上传记录。Step 7: Then release the permission to upload records, and then other sites can continue to preempt permission to upload records.
进一步地,所述中心站点通过TCP/IP与各个站点进行通讯。Further, the central site communicates with each site through TCP/IP.
进一步地,所述站点的密码链表不全时,必须向中心站点索要到完整的链表后才可上传记录。Further, when the password linked list of the site is incomplete, the record can only be uploaded after requesting the complete linked list from the central site.
进一步地,所述密码链表上记录着每笔记录的验证码和流水号。Further, the verification code and serial number of each record are recorded on the password linked list.
进一步地,当需要进行数据回溯的时候,只需要将某笔记录的流水号发送给中心站点,中心站点回复该笔记录的数据内容和前一笔记录的验证码,通过循环冗余算法进行验证,就能得出某笔记录是否准确。Further, when data backtracking is required, it is only necessary to send the serial number of a certain record to the central site, and the central site will reply to the data content of the record and the verification code of the previous record, and verify through the cyclic redundancy algorithm. , you can determine whether a record is accurate.
与现有技术相比,本发明的有益效果是:本发明提出基于区块链技术的加气站记账方案,将成交记录的数据内容和前一笔记录的验证码作为一帧数据,通过循环冗余算法生成新的CRC校验码作为该笔记录的验证码,再通过中心站点作为桥梁,将该验证码和交易流水号广播出去,用于下笔记录的验证码的生成。以此类推,密码链表中,每笔记录都间接关联前一笔记录。本发明将区块链技术应用在公司级加气站的账务管理上,通过特定的加密算法生成密码链表并在各站点间公开。使成交记录具有可追溯性。Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention proposes a gas station billing scheme based on blockchain technology, which takes the data content of the transaction record and the verification code of the previous record as one frame of data, The cyclic redundancy algorithm generates a new CRC check code as the verification code for the record, and then broadcasts the verification code and the transaction serial number through the central site as a bridge for the generation of the verification code for the next record. By analogy, in the password linked list, each record is indirectly related to the previous record. The invention applies the block chain technology to the accounting management of the company-level gas station, generates a password chain list through a specific encryption algorithm and discloses it among the stations. Make transaction records traceable.
附图说明Description of drawings
图1为本发明以区块链技术实现公司级加气站账务管理的方法的站点结构图;Fig. 1 is the site structure diagram of the method for realizing the accounting management of the company-level gas filling station with blockchain technology according to the present invention;
图2为本发明以区块链技术实现公司级加气站账务管理的方法密码链表示意图;Fig. 2 is a schematic diagram of a cryptographic linked list of the method for realizing the accounting management of a company-level gas filling station by using the blockchain technology according to the present invention;
图3为本发明以区块链技术实现公司级加气站账务管理的方法流程图。FIG. 3 is a flow chart of the method for realizing the accounting management of the company-level gas filling station by using the blockchain technology according to the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
一种以区块链技术实现公司级加气站账务管理的方法,包括如下步骤:A method for realizing the accounting management of a company-level gas filling station using blockchain technology, comprising the following steps:
步骤1:将区块链技术应用在加气站成交记录中,将每笔记录视为一个区块,记录的数据内容和上笔记录的验证码组合在一起,通过循环冗余算法生成的新的CRC校验码作为该笔记录的验证码;Step 1: Apply the blockchain technology to the transaction records of the gas station, treat each record as a block, combine the recorded data content with the verification code of the previous record, and generate a new one through the cyclic redundancy algorithm. The CRC check code is used as the verification code of the record;
步骤2:区块和区块之间通过验证码作为连接,使每笔交易记录都可以追溯;Step 2: The verification code is used as the connection between the block and the block, so that each transaction record can be traced;
步骤3:在所有站点都不需要上传成交记录时,由中心站点持续广播最新记录的流水号和验证码;Step 3: When all sites do not need to upload transaction records, the central site will continuously broadcast the latest recorded serial number and verification code;
步骤4:当任意站点需要上传成交记录时,将保存的最新的验证码和流水号发送给中心站点,中心站点验证通过后,通过广播禁止其他站点上传记录;Step 4: When any site needs to upload transaction records, send the latest verification code and serial number saved to the central site. After the central site passes the verification, other sites are prohibited from uploading records through broadcasting;
步骤5:该站点将新记录生成的验证码和流水号上传给中心站点;Step 5: The site uploads the verification code and serial number generated by the new record to the central site;
步骤6:中心站点收到数据后,将新的验证码和流水号继续广播给所有站点,中心站点通过TCP/IP与各个站点进行通讯(如图1);Step 6: After the central site receives the data, it continues to broadcast the new verification code and serial number to all sites, and the central site communicates with each site through TCP/IP (as shown in Figure 1);
步骤7:随后释放上传记录的权限,此后其他站点可以继续抢占权限上传记录。Step 7: Then release the permission to upload records, and then other sites can continue to preempt permission to upload records.
站点的密码链表不全时,必须向中心站点索要到完整的链表后才可上传记录。When the password linked list of the site is incomplete, you must ask the central site for the complete linked list before uploading the records.
依靠此机制,所有站点都将保存同一条密码链表如图2所示。密码链表上记录着每笔记录的验证码和流水号。当需要进行数据回溯的时候,只需要将某笔记录的流水号发送给中心站点,中心站点回复该笔记录的数据内容和前一笔记录的验证码,通过循环冗余算法进行验证,就能得出某笔记录是否准确。Relying on this mechanism, all sites will save the same password list as shown in Figure 2. The verification code and serial number of each record are recorded on the password list. When data backtracking is required, it is only necessary to send the serial number of a record to the central site, and the central site will reply to the data content of the record and the verification code of the previous record, and verify it through the cyclic redundancy algorithm. Find out whether a record is accurate.
在某公司旗下的加气站正常运营时,中心站点选用设有固定IP的加气站,该加气站会不停的广播当前流水号和验证码给其他站点,当其中一个站点需要上传记录时,会给中心站点发送一条消息,中心站点接收后使其他站点进入等待状态。该站点将上笔记录的验证码作为该笔记录的前因子,通过前因子和记录内容经循环冗余算法生成CRC校验码,并将其作为新纪录的验证码,随后将新的验证码和流水号发送给中心站点,中心站点收到记录后,将新验证码和新的流水号广播到所有站点,随后释放权限,所有站点进入准备状态,可以继续上传成交记录。若有新站点加入时,向中心站点索要到完整的密码链表后才可以上传记录。整体流程如图3。When a company's gas station is in normal operation, the central station selects a gas station with a fixed IP. The gas station will continuously broadcast the current serial number and verification code to other stations. When one of the stations needs to upload the record When the message is sent to the central site, the central site will make other sites enter the waiting state after receiving it. The site takes the verification code of the previous record as the pre-factor of the record, generates a CRC check code through the cyclic redundancy algorithm through the pre-factor and the record content, and uses it as the verification code of the new record, and then uses the new verification code After the central site receives the record, it broadcasts the new verification code and new serial number to all sites, and then releases the authority, all sites enter the ready state, and can continue to upload transaction records. If a new site is added, the record can be uploaded only after the complete password list is obtained from the central site. The overall process is shown in Figure 3.
本发明提出基于区块链技术的加气站记账方案,将成交记录的数据内容和前一笔记录的验证码作为一帧数据,通过循环冗余算法生成新的CRC校验码作为该笔记录的验证码,再通过中心站点作为桥梁,将该验证码和交易流水号广播出去,用于下笔记录的验证码的生成。以此类推,密码链表中,每笔记录都间接关联前一笔记录。本发明将区块链技术应用在公司级加气站的账务管理上,通过特定的加密算法生成密码链表并在各站点间公开。使成交记录具有可追溯性。The invention proposes a gas station accounting scheme based on block chain technology, which takes the data content of the transaction record and the verification code of the previous record as a frame of data, and generates a new CRC check code through a cyclic redundancy algorithm as the record. The recorded verification code, and then through the central site as a bridge, the verification code and the transaction serial number are broadcasted for the generation of the verification code for the next record. By analogy, in the password linked list, each record is indirectly related to the previous record. The invention applies the block chain technology to the accounting management of the company-level gas station, generates a password chain list through a specific encryption algorithm and discloses it among the stations. Make transaction records traceable.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited to this. The equivalent replacement or change of the inventive concept thereof shall be included within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010185631.0ACN111415154B (en) | 2020-03-17 | 2020-03-17 | A method of realizing company-level gas filling station account management with blockchain technology |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010185631.0ACN111415154B (en) | 2020-03-17 | 2020-03-17 | A method of realizing company-level gas filling station account management with blockchain technology |
| Publication Number | Publication Date |
|---|---|
| CN111415154Atrue CN111415154A (en) | 2020-07-14 |
| CN111415154B CN111415154B (en) | 2023-07-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010185631.0AActiveCN111415154B (en) | 2020-03-17 | 2020-03-17 | A method of realizing company-level gas filling station account management with blockchain technology |
| Country | Link |
|---|---|
| CN (1) | CN111415154B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2601384A (en)* | 2020-11-30 | 2022-06-01 | Motional Ad Llc | Secure safety-critical system log |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20150112826A (en)* | 2014-03-27 | 2015-10-07 | 양진호 | The method and apparatus of settling an account |
| CN105790954A (en)* | 2016-03-02 | 2016-07-20 | 布比(北京)网络技术有限公司 | Method and system for constructing electronic evidence |
| CN106530072A (en)* | 2016-11-22 | 2017-03-22 | 天津米游科技有限公司 | Block chain consensus mechanism |
| US20170213010A1 (en)* | 2014-07-25 | 2017-07-27 | Rxguard, Llc | Method and apparatus for a management system for user authentication and prescription refill verification |
| US20170310653A1 (en)* | 2016-04-22 | 2017-10-26 | Sony Corporation | Client, server, method and identity verification system |
| CN109544161A (en)* | 2018-11-28 | 2019-03-29 | 杭州有盾网络科技有限公司 | Block chain data processing method, system and equipment and sequence number generation method |
| CN110312094A (en)* | 2019-05-24 | 2019-10-08 | 深圳市朗强科技有限公司 | Signal receiving device, signal output control system and signal output control method |
| CN110458567A (en)* | 2019-08-23 | 2019-11-15 | 广东工业大学 | A blockchain-based item transaction management system and method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20150112826A (en)* | 2014-03-27 | 2015-10-07 | 양진호 | The method and apparatus of settling an account |
| US20170213010A1 (en)* | 2014-07-25 | 2017-07-27 | Rxguard, Llc | Method and apparatus for a management system for user authentication and prescription refill verification |
| CN105790954A (en)* | 2016-03-02 | 2016-07-20 | 布比(北京)网络技术有限公司 | Method and system for constructing electronic evidence |
| US20170310653A1 (en)* | 2016-04-22 | 2017-10-26 | Sony Corporation | Client, server, method and identity verification system |
| CN106530072A (en)* | 2016-11-22 | 2017-03-22 | 天津米游科技有限公司 | Block chain consensus mechanism |
| CN109544161A (en)* | 2018-11-28 | 2019-03-29 | 杭州有盾网络科技有限公司 | Block chain data processing method, system and equipment and sequence number generation method |
| CN110312094A (en)* | 2019-05-24 | 2019-10-08 | 深圳市朗强科技有限公司 | Signal receiving device, signal output control system and signal output control method |
| CN110458567A (en)* | 2019-08-23 | 2019-11-15 | 广东工业大学 | A blockchain-based item transaction management system and method |
| Title |
|---|
| 袁超;: "区块链中硬分叉期间的防御方案", 现代计算机(专业版), no. 09* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2601384A (en)* | 2020-11-30 | 2022-06-01 | Motional Ad Llc | Secure safety-critical system log |
| GB2601384B (en)* | 2020-11-30 | 2023-02-01 | Motional Ad Llc | Secure safety-critical system log |
| Publication number | Publication date |
|---|---|
| CN111415154B (en) | 2023-07-14 |
| Publication | Publication Date | Title |
|---|---|---|
| Dai et al. | A low storage room requirement framework for distributed ledger in blockchain | |
| CN111427957B (en) | Block chain voting information verification method, device, equipment and storage medium | |
| US11626993B2 (en) | Network for improved verification speed with tamper resistant data | |
| CN108648084B (en) | Data processing method, device and equipment of block chain network and storage medium | |
| CN108681943B (en) | Data processing method, device and equipment of block chain network and storage medium | |
| CN110545286B (en) | Method, device, equipment and storage medium for joining and exiting alliance chain | |
| CN106020139B (en) | A kind of substation configuration description file consistency ensuring method based on flow management and control | |
| CN112866415B (en) | Data backup private cloud storage and downloading method | |
| CN106603198A (en) | Blockchain distributed storage method and system with network coding | |
| CN112448946B (en) | Log auditing method and device based on block chain | |
| US10891390B1 (en) | Adjusting data storage efficiency of data in a storage network | |
| CN108768672B (en) | Data processing method, device and storage medium | |
| CN104579558A (en) | Method for detecting integrity in data transmission process | |
| CN108898440A (en) | Flow exchanging method and device | |
| Yue et al. | Distributed fog computing based on batched sparse codes for industrial control | |
| CN115730935B (en) | Blockchain-based data processing method, device, equipment, and readable storage medium | |
| CN115333803B (en) | User password encryption processing method, device, equipment and storage medium | |
| CN111836258B (en) | Method and device for safely accessing nodes of power distribution Internet of things | |
| US12200054B2 (en) | Blockchain sharding method, system, and server based on locally repairable system codes | |
| CN111415154A (en) | A method for realizing company-level gas station accounting management with blockchain technology | |
| CN113468574B (en) | A method and device for uploading blockchain data | |
| CN119520273A (en) | A concentrator remote upgrade method and system | |
| CN110532290B (en) | Information verification device, method and storage medium based on block chain | |
| Ren et al. | Feasible region of secure and distributed data storage in adversarial networks | |
| CN111740817A (en) | Code tampering detection method and system for concentrator in power data acquisition system |
| 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 | ||
| TR01 | Transfer of patent right | Effective date of registration:20250821 Address after:300457 Tianjin Binhai New Area, Tianjin Economic-Technological Development Zone, Binhai-Zhongguancun Science and Technology Park, Huatao Ruizhou Phase I, Building 3, 2nd Floor, D Area, Room 039 Patentee after:JEREH (TIANJIN) PETROLEUM ENGINEERING & TECHNOLOGIES Co.,Ltd. Country or region after:China Address before:264003 Jerry Road, Laishan District, Shandong, Yantai, China, 9 Patentee before:JEREH OIL & GAS ENGINEERING Corp. Country or region before:China | |
| TR01 | Transfer of patent right |