CN112232799A - Customs intelligent lock lease settlement system and method based on block chain - Google Patents

Customs intelligent lock lease settlement system and method based on block chain Download PDF

Info

Publication number
CN112232799A
CN112232799A CN202011154747.4A CN202011154747A CN112232799A CN 112232799 A CN112232799 A CN 112232799A CN 202011154747 A CN202011154747 A CN 202011154747A CN 112232799 A CN112232799 A CN 112232799A
Authority
CN
China
Prior art keywords
customs
intelligent lock
node
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
CN202011154747.4A
Other languages
Chinese (zh)
Other versions
CN112232799B (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.)
Inspur Software Technology Co Ltd
Original Assignee
Inspur Software Technology 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 Inspur Software Technology Co Ltd filed Critical Inspur Software Technology Co Ltd
Priority to CN202011154747.4A priority Critical patent/CN112232799B/en
Publication of CN112232799A publication Critical patent/CN112232799A/en
Application granted granted Critical
Publication of CN112232799B publication Critical patent/CN112232799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention particularly relates to a customs intelligent lock lease settlement system and method based on a block chain. The customs intelligent lock lease settlement system based on the block chain utilizes the alliance chain to deploy four types of nodes, including customs nodes, customs intelligent lock producer nodes, operation service provider nodes and bank nodes. According to the customs intelligent lock lease settlement system and method based on the block chain, a three-party operation mode is introduced, so that the customs purchase cost and the cost of specially-assigned person management charging are saved, the efficiency and the cost of a transport company are improved, and meanwhile, the three parties provide better service, so that the payment is safer and more reliable.

Description

Customs intelligent lock lease settlement system and method based on block chain
Technical Field
The invention relates to the technical field of block chain and customs clearance application, in particular to a customs intelligent lock lease clearance system and method based on a block chain.
Background
In order to further increase the regional customs clearance innovation strength, optimize the customs operation flow, practically improve the clearance efficiency and promote the regional clearance integration, the customs administration carries out comprehensive and deepened regional clearance business innovation. From 12 months and 1 day 2013, on the basis of applying Internet of things equipment such as a safety customs intelligent lock, a front-end equipment of a card port, a satellite positioning device and the like and a card port control and networking information system, the paperless operation of road customs transfer is started to be carried out on import and export customs goods which are transported by sea, air, railway and road in an in-home transportation mode.
The customs intelligent lock is used for ensuring that goods which are imported and exported and are inspected by customs are safe in the transit process, ensuring that the goods are not changed, improving the transportation efficiency and saving the transportation cost.
At present, the customs security customs intelligent lock is almost used in the national customs transfer process, but the customs intelligent lock is still the traditional renting and purchasing mode in the management and operation of the customs intelligent lock at present. The customs uniformly purchases and leases the transport enterprises in such a way, the personnel management cost is brought to the customs according to the charging, and the cost is increased to the transport enterprises according to the charging according to the time. Besides, the transfer transportation company needs to frequently go to and go from customs to unlock the customs security customs intelligent lock, and the work efficiency of the transfer transportation company is greatly influenced.
Based on the problems, the invention provides a customs intelligent lock lease settlement system and a customs intelligent lock lease settlement method based on a block chain.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient customs intelligent lock lease settlement system and method based on block chains.
The invention is realized by the following technical scheme:
the utility model provides a customs intelligence lock lease settlement system based on block chain which characterized in that: deploying four types of nodes by utilizing a alliance chain, wherein the four types of nodes comprise a customhouse node, a customhouse intelligent lock manufacturer node, an operation service provider node and a bank node;
the customhouse node is responsible for writing in a sealed and unsealed data block chain of the customhouse intelligent lock, and only supports one node;
the customhouse intelligent lock producer node is responsible for writing initialization data block chains of the customhouse intelligent lock as the basis of charging, is an expandable node and supports access of a plurality of customhouse intelligent lock producers;
the operation service provider node is responsible for writing in the transportation company payment data block chain;
the bank node is responsible for reading the block chain rule data and triggering deduction and payment; the bank node configures a certificate, is an extensible node, and supports the access of multiple banks.
The customs intelligent lock manufacturer node is deployed with a customs intelligent lock device initialization chain code CD0001, the operator node is deployed with a carrier initialization chain code CD0002 using a customs intelligent lock, the customs node is deployed with a customs vehicle lock record initialization chain code CD0003, a customs transport vehicle release chain code CD0004 and a customs workload certification chain code CD0005, and the bank node is deployed with a bank deduction constraint chain code CD 0006;
when the data link code is written, the customs node, the bank node, the operation service provider node and the customs intelligent lock manufacturer node carry out link code service control according to four types of organization authorities;
the customhouse intelligent lock system comprises a customhouse node, a bank node, an operation service provider node and a customhouse intelligent lock producer node, wherein the customhouse node can write in sealing and unsealing data, the bank node can write in account recharging, balance and payment information of a transport company, the operation service provider node can write in transport company information, and the customhouse intelligent lock producer node can write in lock information;
when the data link code is read, the data link code data is shared by the customs node, the bank node, the operation service provider node and the customs intelligent lock manufacturer node.
The customhouse intelligent lock equipment initialization chain code (CD0001) is responsible for writing basic information of the equipment into the block chain, judging whether the same equipment ID and state information exist in the block chain or not during writing, and if so, writing cannot be performed;
the basic information of the equipment comprises the ID of the equipment, the ID of the manufacturer of the equipment (operator ID) and the status information of the equipment (01 normal, 00 failure);
the carrier initialization chain code (CD0002) using the customs intelligent lock is responsible for writing carrier ID and carrier vehicle ID information into a block chain and forming a corresponding relationship between the carrier ID and the carrier vehicle ID information;
the customhouse vehicle lock record initialization chain code (CD0003) is responsible for writing customhouse intelligent lock record information HashID into the block chain, and judging whether the equipment ID and the state in the block chain information are normal or not and whether the corresponding relation between the transport company ID and the transport company vehicle ID is normal or not when the equipment ID and the state are normal or not;
the record-forming information HashID is generated by Hash calculation of a customs intelligent lock ID, a carrier ID, carrier vehicle ID (license plate number) information and forming time;
the customhouse transport vehicle decapsulation chain code (CD0004) is responsible for writing the encapsulation state time and decapsulation state time of the corresponding filing information into the block chain according to the filing information HashID;
the customs workload certification chain code (CD0005) is responsible for judging whether the sealing state and the unsealing state on the block chain are normal or not according to the record information HashID, if so, the workload verification is passed, and if one is abnormal, the verification fails;
the bank deduction binding chain code (CD0006) is responsible for calculating the formed quantity according to the deduction service, and the customs worker workload proves the chain code to confirm the workload condition and calculate the deduction.
Because bank and lock producer nodes are extensible, the customs intelligent lock lease settlement system based on the block chain adopts an authorized Byzantine fault-tolerant consensus mechanism, and the setting level is that more than 50% of the customs intelligent lock producer nodes and more than 50% of the bank nodes respectively achieve consensus and can be written into the block chain.
The invention relates to a block chain-based customs intelligent lock lease settlement method, which is characterized by comprising the following steps of:
first step, secure customs intelligent lock blockchain initialization
The method comprises the steps that a customs intelligent lock equipment initialization chain code CD0001 is deployed at a customs intelligent lock producer node, a customs intelligent lock ID is written into a block chain, a state code 01 is written into the block chain at the same time, and the customs intelligent lock ID is shared with other organization nodes, so that the customs intelligent lock ID is on the block chain in the subsequent charging process;
deploying a carrier initialization chain code CD0002 using a customs intelligent lock at an operation service provider node; when the customs intelligent lock information and the user information are written into the block chain, firstly, the ID information of the customs intelligent lock is verified by using a block chain intelligent contract, if the state code 01 corresponding to the customs intelligent lock ID to be written exists in the block chain, the user information is written into the block chain, and if not, the writing is forbidden;
second step, record information writing block chain
Deploying a customhouse lock record initialization chain code CD0003 at a customhouse node, chaining the transportation record information, writing the transportation record information into a state code 03, and sharing data to a bank node through a block chain; after the block chain releases the task, the task is completed by a designated transport company, and the vehicle information of the transport company is linked and shared to the bank node;
thirdly, triggering a sealing contract and a unsealing contract by a block chain
Deploying a customs transport vehicle sealing and unsealing chain code CD0004 at a customs node, chaining sealing and unsealing information flow information of a customs checkpoint, and verifying the workload of a designated transport company as a workload certificate of working hours; the customs card port sealing and unsealing information is a certificate for successful transportation and transfer of a transport company, and the transportation information without the sealing and unsealing states of the customs card port cannot be counted in a charging rule;
fourthly, deploying a customs workload certification chain code CD0005 at a customs node, and forming a workload task record as a basis of a bank charging deduction certificate according to a customs unsealing process;
and fifthly, deploying a bank deduction constraint chain code CD0006 at the bank node, acquiring the workload task record and verification data of the customs node, verifying the customs intelligent lock information and the transport vehicle information, and performing payment deduction calculation according to the workload task record to form automatic deduction data.
In the first step, the customs intelligent lock producer node writes basic information of the safety customs intelligent lock to be used, including a producer social credit code, a safety customs intelligent lock ID and equipment state information, into a block chain, and defines initialization state information as 01.
When data is written in, the ID and the state code of the intelligent lock of the security customs are used as key value storage information;
the operation service provider node writes the customs record number of the transport company, the vehicle license plate number of the transport company and the corresponding relation between the transport company and the vehicle license plate number of the transport company which receive the customs intelligent lock into the block chain, and defines the initialization state information as 02;
the initialization chain code CD0001 of the customs intelligent lock device deployed at the customs intelligent lock producer node and the initialization chain code CD0002 of the transportation company which uses the customs intelligent lock deployed at the operation service provider node can only write information, and the transaction data of the customs node and the bank node are not shared with the customs intelligent lock producer node and the operation service provider node.
In the second step, the customs intelligent lock record information is written into the block chain;
the customs intelligent lock records information once when used once, the customs intelligent lock record information written into the block chain comprises a record number, a social credit code of a transport company, a Hash value of a transport order number, a transport date, an ID of the customs intelligent lock and a state code 02, and a key value comprises the ID of the customs intelligent lock, the record number and the state;
when the customs intelligent lock filing information is written into the block chain, whether the information equipment is initialized or not is judged by using a carrier initialization chain code CD0002 of the customs intelligent lock, and if the information equipment is not initialized, the filing process fails.
In the third step, after the customs transportation vehicle seals the goods, the customs node writes the sealing information of the customs intelligent lock into the block chain; meanwhile, the customs node is connected with the mobile equipment, and the mobile equipment reports the sealing information;
when writing, judging whether the intelligent customhouse lock ID Hash value exists on the block chain or not through a customhouse transport vehicle decapsulation chain code CD0004, if so, allowing writing, otherwise, not counting into the unified charging management;
the information sealing information written into the block chain comprises a customs code, a sealing date, a sealing state, a social credit code of a transport company, an ID of a customs intelligent lock and a status code 03;
after the customs transportation vehicle cargo is unsealed, the customs node writes unsealing information into the block chain;
before deblocking, judging a Hash value corresponding to the written deblocking lock corresponding to the custom intelligent lock ID on the block chain through a custom transport vehicle deblocking chain code CD0004, and deblocking if the last state is a sealing state;
the operation of unsealing is controlled to correspond to the seal one by one through a customs transport vehicle unsealing chain code CD0004, the transport use process is finished after the unsealing operation is finished, and right certificate is triggered;
the unsealing information written into the block chain comprises a customs code, an unsealing date, an unsealing state, a social credit code of a carrier, a customs intelligent lock ID and a state 04.
The complete process of one-time filing and numbering information of one customs intelligent lock is counted as one-time task workload; and in the fifth step, the bank node calculates the workload of the transport company according to the social credit code of the transport company with the account opened in the bank and the transaction date section of the customs intelligent lock, and pays the money according to the single calculated price.
The invention has the beneficial effects that: according to the customs intelligent lock lease settlement system and method based on the block chain, a three-party operation mode is introduced, so that the customs purchase cost and the cost of specially-assigned person management charging are saved, the efficiency and the cost of a transport company are improved, and meanwhile, the three parties provide better service, so that the payment is safer and more reliable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a customs intelligent lock lease settlement system based on a block chain.
FIG. 2 is a schematic diagram of a block chain-based customs intelligent lock lease settlement method.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The customs intelligent lock lease settlement system based on the block chain utilizes the alliance chain to deploy four types of nodes, including a customs node, a customs intelligent lock producer node, an operation service provider node and a bank node;
the customhouse node is responsible for writing in a sealed and unsealed data block chain of the customhouse intelligent lock, and only supports one node;
the customhouse intelligent lock producer node is responsible for writing initialization data block chains of the customhouse intelligent lock as the basis of charging, is an expandable node and supports access of a plurality of customhouse intelligent lock producers;
the operation service provider node is responsible for writing in the transportation company payment data block chain;
the bank node is responsible for reading the block chain rule data and triggering deduction and payment; the bank node configures a certificate, is an extensible node, and supports the access of multiple banks.
The customs intelligent lock manufacturer node is deployed with a customs intelligent lock device initialization chain code CD0001, the operator node is deployed with a carrier initialization chain code CD0002 using a customs intelligent lock, the customs node is deployed with a customs vehicle lock record initialization chain code CD0003, a customs transport vehicle release chain code CD0004 and a customs workload certification chain code CD0005, and the bank node is deployed with a bank deduction constraint chain code CD 0006;
when the data link code is written, the customs node, the bank node, the operation service provider node and the customs intelligent lock manufacturer node carry out link code service control according to four types of organization authorities;
the customhouse intelligent lock system comprises a customhouse node, a bank node, an operation service provider node and a customhouse intelligent lock producer node, wherein the customhouse node can write in sealing and unsealing data, the bank node can write in account recharging, balance and payment information of a transport company, the operation service provider node can write in transport company information, and the customhouse intelligent lock producer node can write in lock information;
when the data link code is read, the data link code data is shared by the customs node, the bank node, the operation service provider node and the customs intelligent lock manufacturer node.
The customhouse intelligent lock equipment initialization chain code (CD0001) is responsible for writing basic information of the equipment into the block chain, judging whether the same equipment ID and state information exist in the block chain or not during writing, and if so, writing cannot be performed;
the basic information of the equipment comprises the ID of the equipment, the ID of the manufacturer of the equipment (operator ID) and the status information of the equipment (01 normal, 00 failure);
the carrier initialization chain code (CD0002) using the customs intelligent lock is responsible for writing carrier ID and carrier vehicle ID information into a block chain and forming a corresponding relationship between the carrier ID and the carrier vehicle ID information;
the customhouse vehicle lock record initialization chain code (CD0003) is responsible for writing customhouse intelligent lock record information HashID into the block chain, and judging whether the equipment ID and the state in the block chain information are normal or not and whether the corresponding relation between the transport company ID and the transport company vehicle ID is normal or not when the equipment ID and the state are normal or not;
the record-forming information HashID is generated by Hash calculation of a customs intelligent lock ID, a carrier ID, carrier vehicle ID (license plate number) information and forming time;
the customhouse transport vehicle decapsulation chain code (CD0004) is responsible for writing the encapsulation state time and decapsulation state time of the corresponding filing information into the block chain according to the filing information HashID;
the customs workload certification chain code (CD0005) is responsible for judging whether the sealing state and the unsealing state on the block chain are normal or not according to the record information HashID, if so, the workload verification is passed, and if one is abnormal, the verification fails;
the bank deduction binding chain code (CD0006) is responsible for calculating the formed quantity according to the deduction service, and the customs worker workload proves the chain code to confirm the workload condition and calculate the deduction.
Because bank and lock producer nodes are extensible, the customs intelligent lock lease settlement system based on the block chain adopts an authorized Byzantine fault-tolerant consensus mechanism, and the setting level is that more than 50% of the customs intelligent lock producer nodes and more than 50% of the bank nodes respectively achieve consensus and can be written into the block chain.
The customs intelligent lock lease settlement method based on the block chain comprises the following steps:
first step, secure customs intelligent lock blockchain initialization
The method comprises the steps that a customs intelligent lock equipment initialization chain code CD0001 is deployed at a customs intelligent lock producer node, a customs intelligent lock ID is written into a block chain, a state code 01 is written into the block chain at the same time, and the customs intelligent lock ID is shared with other organization nodes, so that the customs intelligent lock ID is on the block chain in the subsequent charging process;
deploying a carrier initialization chain code CD0002 using a customs intelligent lock at an operation service provider node; when the customs intelligent lock information and the user information are written into the block chain, firstly, the ID information of the customs intelligent lock is verified by using a block chain intelligent contract, if the state code 01 corresponding to the customs intelligent lock ID to be written exists in the block chain, the user information is written into the block chain, and if not, the writing is forbidden;
the customs intelligent lock manufacturer has a legal transaction identity on the blockchain and conforms to the customs legal regulations and standards.
Second step, record information writing block chain
Deploying a customhouse lock record initialization chain code CD0003 at a customhouse node, chaining the transportation record information, writing the transportation record information into a state code 03, and sharing data to a bank node through a block chain; after the block chain releases the task, the task is completed by a designated transport company, and the vehicle information of the transport company is linked and shared to the bank node;
thirdly, triggering a sealing contract and a unsealing contract by a block chain
Deploying a customs transport vehicle sealing and unsealing chain code CD0004 at a customs node, chaining sealing and unsealing information flow information of a customs checkpoint, and verifying the workload of a designated transport company as a workload certificate of working hours; the customs card port sealing and unsealing information is a certificate for successful transportation and transfer of a transport company, and the transportation information without the sealing and unsealing states of the customs card port cannot be counted in a charging rule;
fourthly, deploying a customs workload certification chain code CD0005 at a customs node, and forming a workload task record as a basis of a bank charging deduction certificate according to a customs unsealing process;
and fifthly, deploying a bank deduction constraint chain code CD0006 at the bank node, acquiring the workload task record and verification data of the customs node, verifying the customs intelligent lock information and the transport vehicle information, and performing payment deduction calculation according to the workload task record to form automatic deduction data.
In the first step, the customs intelligent lock producer node writes basic information of the safety customs intelligent lock to be used, including a producer social credit code, a safety customs intelligent lock ID and equipment state information, into a block chain, and defines initialization state information as 01.
When data is written in, the ID and the state code of the intelligent lock of the security customs are used as key value storage information; for example, the manufacturer social credit code 137000010000000000, the security customs intelligent lock ID is CNLC2019039492 (the following example information is the same), and the value written into the block chain is CNLC 2019039492-01: BA000231-137000010000000000-CNLC 2019039492-01.
The operation service provider node writes the customs record number of the transport company, the vehicle license plate number of the transport company and the corresponding relation between the transport company and the vehicle license plate number of the transport company which receive the customs intelligent lock into the block chain, and defines the initialization state information as 02;
the initialization chain code CD0001 of the customs intelligent lock device deployed at the customs intelligent lock producer node and the initialization chain code CD0002 of the transportation company which uses the customs intelligent lock deployed at the operation service provider node can only write information, and the transaction data of the customs node and the bank node are not shared with the customs intelligent lock producer node and the operation service provider node.
In the second step, the customs intelligent lock record information is written into the block chain;
the data information which is equivalent to the data information which can measure the customs inspection is issued to the block chain by the customs node, and the data is provided by the transport company to complete the work.
The customs intelligent lock records information once when used once, the customs intelligent lock record information written into the block chain comprises a record number, a social credit code of a transport company, a Hash value of a transport order number, a transport date, an ID of the customs intelligent lock and a state code 02, and a key value comprises the ID of the customs intelligent lock, the record number and the state; such as: LC2019039492-BA 000231-02: BA000231-137000010000000000-c92f337c076d1a5fc5afd2953791d96786d618e704d4f34b81081a28ae9b724f-20190815-CNLC 2019039492-02.
When the customs intelligent lock filing information is written into the block chain, whether the information equipment is initialized or not is judged by using a carrier initialization chain code CD0002 of the customs intelligent lock, and if the information equipment is not initialized, the filing process fails.
In the third step, after the customs transportation vehicle seals the goods, the customs node writes the sealing information of the customs intelligent lock into the block chain; meanwhile, the customs node is connected with the mobile equipment, and the mobile equipment reports the sealing information;
when writing, judging whether the intelligent customhouse lock ID Hash value exists on the block chain or not through a customhouse transport vehicle decapsulation chain code CD0004, if so, allowing writing, otherwise, not counting into the unified charging management;
the information sealing information written into the block chain comprises a customs code, a sealing date, a sealing state, a social credit code of a transport company, an ID of a customs intelligent lock and a status code 03; such as: LC2019039492-BA 000231-03: BA000231-0000-2019072319-01-137000010000000000-LC 201903949203-03.
After the customs transportation vehicle cargo is unsealed, the customs node writes unsealing information into the block chain;
before deblocking, judging a Hash value corresponding to the written deblocking lock corresponding to the custom intelligent lock ID on the block chain through a custom transport vehicle deblocking chain code CD0004, and deblocking if the last state is a sealing state;
the operation of unsealing is controlled to correspond to the seal one by one through a customs transport vehicle unsealing chain code CD0004, the transport use process is finished after the unsealing operation is finished, and right certificate is triggered;
the unsealing information written into the block chain comprises a customs code, an unsealing date, an unsealing state, a social credit code of a carrier, a customs intelligent lock ID and a state 04. Such as: LC2019039492-BA 000231-04: BA000231-0000-2019072319-02-137000010000000000-LC 201903949203-04.
The complete process of one-time filing and numbering information of one customs intelligent lock is counted as one-time task workload; and in the fifth step, the bank node calculates the workload of the transport company according to the social credit code of the transport company with the account opened in the bank and the transaction date section of the customs intelligent lock, and pays the money according to the single calculated price.
The customs intelligent lock lease settlement system and method based on the block chain have the following characteristics:
(1) the customs does not need to purchase the customs intelligent lock, so that the purchase cost of the customs is saved, the operating company provides the customs intelligent lock, and the customs only needs to check the qualification of the operating company and check the reliability of the customs intelligent lock provided by the customs intelligent lock.
(2) The customs does not need to be charged by a specially-assigned person for managing the customs intelligent lock, so that the labor cost is saved;
(3) the transport efficiency of the transport company is improved, frequent customs unlocking is not needed, and the use cost of the customs intelligent lock is reduced;
(4) the customs can still acquire the information of the customs intelligent lock, and the customs, the production operation company and the bank participate in the customs intelligent lock, so that the intelligent charging of the customs intelligent lock can be realized after the three parties confirm.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.

Claims (9)

1. The utility model provides a customs intelligence lock lease settlement system based on block chain which characterized in that: deploying four types of nodes by utilizing a alliance chain, wherein the four types of nodes comprise a customhouse node, a customhouse intelligent lock manufacturer node, an operation service provider node and a bank node;
the customhouse node is responsible for writing in a sealed and unsealed data block chain of the customhouse intelligent lock, and only supports one node;
the customhouse intelligent lock producer node is responsible for writing initialization data block chains of the customhouse intelligent lock as the basis of charging, is an expandable node and supports access of a plurality of customhouse intelligent lock producers;
the operation service provider node is responsible for writing in the transportation company payment data block chain;
the bank node is responsible for reading the block chain rule data and triggering deduction and payment; the bank node configures a certificate, is an extensible node, and supports the access of multiple banks.
2. The block chain based customs intelligent lock lease settlement system of claim 1, wherein: the customs intelligent lock manufacturer node is deployed with a customs intelligent lock device initialization chain code CD0001, the operator node is deployed with a carrier initialization chain code CD0002 using a customs intelligent lock, the customs node is deployed with a customs vehicle lock record initialization chain code CD0003, a customs transport vehicle release chain code CD0004 and a customs workload certification chain code CD0005, and the bank node is deployed with a bank deduction constraint chain code CD 0006;
when the data link code is written, the customs node, the bank node, the operation service provider node and the customs intelligent lock manufacturer node carry out link code service control according to four types of organization authorities;
the customhouse intelligent lock system comprises a customhouse node, a bank node, an operation service provider node and a customhouse intelligent lock producer node, wherein the customhouse node can write in sealing and unsealing data, the bank node can write in account recharging, balance and payment information of a transport company, the operation service provider node can write in transport company information, and the customhouse intelligent lock producer node can write in lock information;
when the data link code is read, the data link code data is shared by the customs node, the bank node, the operation service provider node and the customs intelligent lock manufacturer node.
3. The block chain based customs intelligent lock lease settlement system of claim 2, wherein:
the customhouse intelligent lock equipment initialization chain code CD0001 is responsible for writing basic information of the equipment into the block chain, judging whether the same equipment ID and state information exist in the block chain or not during writing, and if so, writing cannot be performed;
the basic information of the equipment comprises the ID of the equipment, the ID of the manufacturer of the equipment and the state information of the equipment;
the carrier initialization chain code CD0002 using the customs intelligent lock is responsible for writing carrier ID and carrier vehicle ID information into a block chain and forming a corresponding relation between the carrier ID and the carrier vehicle ID information;
the customhouse vehicle lock record initialization chain code CD0003 is responsible for writing the customhouse intelligent lock record information HashID into the block chain, and judging whether the equipment ID and the state in the block chain information are normal or not and whether the corresponding relation between the transport company ID and the transport company vehicle ID is normal or not during writing;
the record-forming information HashID is generated by Hash calculation of a customs intelligent lock ID, a carrier ID, carrier vehicle ID information and forming time;
the customhouse transportation vehicle decapsulation chain code CD0004 is responsible for writing the decapsulation state time and decapsulation state time of the corresponding filing information into the block chain according to the filing information HashID;
the customs workload certification chain code CD0005 is responsible for judging whether the sealing state and the unsealing state on the block chain are normal or not according to the record information HashID, if so, the workload verification is passed, and if one is abnormal, the verification is failed;
the bank deduction binding chain code CD0006 is responsible for calculating the formed quantity according to deduction services, and the customs worker workload proves that the chain code confirms the workload condition and calculates deduction.
4. The block chain based customs intelligent lock lease settlement system of claim 1, wherein: and an authorized Byzantine fault-tolerant consensus mechanism is adopted, and the set level is that more than 50% of nodes in the customs intelligent lock producer nodes and the bank nodes respectively achieve consensus and can be written into the block chain.
5. A customs intelligent lock lease settlement method based on a block chain is characterized by comprising the following steps:
first step, secure customs intelligent lock blockchain initialization
The method comprises the steps that a customs intelligent lock equipment initialization chain code CD0001 is deployed at a customs intelligent lock producer node, a customs intelligent lock ID is written into a block chain, a state code 01 is written into the block chain at the same time, and the customs intelligent lock ID is shared with other organization nodes, so that the customs intelligent lock ID is on the block chain in the subsequent charging process;
deploying a carrier initialization chain code CD0002 using a customs intelligent lock at an operation service provider node; when the customs intelligent lock information and the user information are written into the block chain, firstly, the ID information of the customs intelligent lock is verified by using a block chain intelligent contract, if the state code 01 corresponding to the customs intelligent lock ID to be written exists in the block chain, the user information is written into the block chain, and if not, the writing is forbidden;
second step, record information writing block chain
Deploying a customhouse lock record initialization chain code CD0003 at a customhouse node, chaining the transportation record information, writing the transportation record information into a state code 03, and sharing data to a bank node through a block chain; after the block chain releases the task, the task is completed by a designated transport company, and the vehicle information of the transport company is linked and shared to the bank node;
thirdly, triggering a sealing contract and a unsealing contract by a block chain
Deploying a customs transport vehicle sealing and unsealing chain code CD0004 at a customs node, chaining sealing and unsealing information flow information of a customs checkpoint, and verifying the workload of a designated transport company as a workload certificate of working hours; the customs card port sealing and unsealing information is a certificate for successful transportation and transfer of a transport company, and the transportation information without the sealing and unsealing states of the customs card port cannot be counted in a charging rule;
fourthly, deploying a customs workload certification chain code CD0005 at a customs node, and forming a workload task record as a basis of a bank charging deduction certificate according to a customs unsealing process;
and fifthly, deploying a bank deduction constraint chain code CD0006 at the bank node, acquiring the workload task record and verification data of the customs node, verifying the customs intelligent lock information and the transport vehicle information, and performing payment deduction calculation according to the workload task record to form automatic deduction data.
6. The block chain-based customs intelligent lock lease settlement method of claim 5, wherein: in the first step, a customs intelligent lock producer node writes basic information of a safety customs intelligent lock to be used, including a producer social credit code, a safety customs intelligent lock ID and equipment state information, into a block chain, and defines initialization state information as 01;
when data is written in, the ID and the state code of the intelligent lock of the security customs are used as key value storage information;
the operation service provider node writes the customs record number of the transport company, the vehicle license plate number of the transport company and the corresponding relation between the transport company and the vehicle license plate number of the transport company which receive the customs intelligent lock into the block chain, and defines the initialization state information as 02;
after a customs intelligent lock equipment initialization chain code CD0001 is deployed at a customs intelligent lock producer node and an operation service provider node deploys a carrier initialization chain code CD0002 using the customs intelligent lock, only information can be written in, and transaction data of the customs node and a bank node are not shared with the customs intelligent lock producer node and the operation service provider node.
7. The block chain-based customs intelligent lock lease settlement method of claim 6, wherein: in the second step, the customs intelligent lock record information is written into the block chain;
the customs intelligent lock records information once when used once, the customs intelligent lock record information written into the block chain comprises a record number, a social credit code of a transport company, a Hash value of a transport order number, a transport date, an ID of the customs intelligent lock and a state code 02, and a key value comprises the ID of the customs intelligent lock, the record number and the state;
when the customs intelligent lock filing information is written into the block chain, whether the information equipment is initialized or not is judged by using a carrier initialization chain code CD0002 of the customs intelligent lock, and if the information equipment is not initialized, the filing process fails.
8. The block chain-based customs intelligent lock lease settlement method of claim 7, wherein: in the third step, after the customs transportation vehicle seals the goods, the customs node writes the sealing information of the customs intelligent lock into the block chain;
meanwhile, the customs node is connected with the mobile equipment, and the mobile equipment reports the sealing information;
when writing, judging whether the intelligent customhouse lock ID Hash value exists on the block chain or not through a customhouse transport vehicle decapsulation chain code CD0004, if so, allowing writing, otherwise, not counting into the unified charging management;
the information sealing information written into the block chain comprises a customs code, a sealing date, a sealing state, a social credit code of a transport company, an ID of a customs intelligent lock and a status code 03;
after the customs transportation vehicle cargo is unsealed, the customs node writes unsealing information into the block chain;
before deblocking, judging a Hash value corresponding to the written deblocking lock corresponding to the custom intelligent lock ID on the block chain through a custom transport vehicle deblocking chain code CD0004, and deblocking if the last state is a sealing state;
the operation of unsealing is controlled to correspond to the seal one by one through a customs transport vehicle unsealing chain code CD0004, the transport use process is finished after the unsealing operation is finished, and right certificate is triggered;
the unsealing information written into the block chain comprises a customs code, an unsealing date, an unsealing state, a social credit code of a carrier, a customs intelligent lock ID and a state 04.
9. The block chain-based customs intelligent lock lease settlement method of claim 8, wherein: the complete process of one-time filing and numbering information of one customs intelligent lock is counted as one-time task workload; and in the fifth step, the bank node calculates the workload of the transport company according to the social credit code of the transport company with the account opened in the bank and the transaction date section of the customs intelligent lock, and pays the money according to the single calculated price.
CN202011154747.4A 2020-10-26 2020-10-26 Customs intelligent lock lease settlement system and method based on block chain Active CN112232799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011154747.4A CN112232799B (en) 2020-10-26 2020-10-26 Customs intelligent lock lease settlement system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011154747.4A CN112232799B (en) 2020-10-26 2020-10-26 Customs intelligent lock lease settlement system and method based on block chain

Publications (2)

Publication Number Publication Date
CN112232799A true CN112232799A (en) 2021-01-15
CN112232799B CN112232799B (en) 2022-09-13

Family

ID=74110757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011154747.4A Active CN112232799B (en) 2020-10-26 2020-10-26 Customs intelligent lock lease settlement system and method based on block chain

Country Status (1)

Country Link
CN (1) CN112232799B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905190A (en) * 2021-03-30 2021-06-04 飞豹链(深圳)信息科技有限公司 Differentiated chain code deployment method based on service
CN113269526A (en) * 2021-05-27 2021-08-17 山东浪潮商用系统有限公司 Customs intelligent lock management system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002042247A (en) * 2000-07-31 2002-02-08 Nec Eng Ltd Customer settlement control system by exclusive card system
CN109409953A (en) * 2018-10-22 2019-03-01 联动优势科技有限公司 A kind of marketing cost settlement system and method based on block chain
CN109559205A (en) * 2018-12-27 2019-04-02 链极智能科技(上海)有限公司 A kind of machine and equipment leasing system based on block chain
CN109934662A (en) * 2018-11-30 2019-06-25 阿里巴巴集团控股有限公司 Shared resource rent method, device and computer equipment based on block chain
CN110009388A (en) * 2019-02-02 2019-07-12 阿里巴巴集团控股有限公司 Equipment leasing method, apparatus, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002042247A (en) * 2000-07-31 2002-02-08 Nec Eng Ltd Customer settlement control system by exclusive card system
CN109409953A (en) * 2018-10-22 2019-03-01 联动优势科技有限公司 A kind of marketing cost settlement system and method based on block chain
CN109934662A (en) * 2018-11-30 2019-06-25 阿里巴巴集团控股有限公司 Shared resource rent method, device and computer equipment based on block chain
CN109559205A (en) * 2018-12-27 2019-04-02 链极智能科技(上海)有限公司 A kind of machine and equipment leasing system based on block chain
CN110009388A (en) * 2019-02-02 2019-07-12 阿里巴巴集团控股有限公司 Equipment leasing method, apparatus, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905190A (en) * 2021-03-30 2021-06-04 飞豹链(深圳)信息科技有限公司 Differentiated chain code deployment method based on service
CN113269526A (en) * 2021-05-27 2021-08-17 山东浪潮商用系统有限公司 Customs intelligent lock management system based on block chain

Also Published As

Publication number Publication date
CN112232799B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN112232799B (en) Customs intelligent lock lease settlement system and method based on block chain
CN111179082B (en) Method for carrying out commodity picking guarantee based on block chain and storage medium
WO2020259308A1 (en) Method and device for employing blockchain system to turn over asset
CN111985938A (en) Method, device and equipment for verifying authenticity of cross-border transaction
CN111160910A (en) Real estate transaction fund supervision system based on block chain
CN110866719A (en) Cold chain logistics management system and method based on block chain
CN103312680B (en) The moving method of a kind of NFC terminal application, Apparatus and system
CN104714804A (en) Track traffic automatic fare collection system reader-writer middleware
CN106850538A (en) Block chain route access system and method
CN111967821A (en) Method, device, equipment and system for generating clearance confirmation information
CN113256278A (en) Measuring equipment leasing method and device based on block chain
CN111784517B (en) Coupon management method, system, electronic equipment and storage medium based on block chain
CN111259077A (en) Method for importing deposit and remittance under collection item based on block chain and storage medium
CN112101941A (en) Noble metal transaction and lease-integration management method for catalysis based on block chain technology
CN115204786A (en) Block chain-based electronic warehouse receipt full life cycle management method, system and medium
CN111028078A (en) Method for applying block chain intelligent contract technology to bill pool service
CN100468452C (en) Method for accomplishment secure transaction for electronicbankbook (purse)
CN110910217A (en) Electronic ticket settlement method based on block chain
CN110659749A (en) Vehicle information management method and system based on block chain
Hulstijn et al. Integrity of supply chain visibility: Linking information to the physical world
CN113642975B (en) Block chain-based hydrogen energy supervision method and system
CN116385024A (en) Power battery information tracing system and method based on block chain
CN111210342A (en) Method and storage medium for exporting credit of buyer based on block chain
CN110135934A (en) A kind of warehouse rental shareware
CN114862517A (en) Automobile leasing method and device based on block chain

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