CN113543073A - Block checking method and block chain system - Google Patents

Block checking method and block chain system Download PDF

Info

Publication number
CN113543073A
CN113543073A CN202110632083.6A CN202110632083A CN113543073A CN 113543073 A CN113543073 A CN 113543073A CN 202110632083 A CN202110632083 A CN 202110632083A CN 113543073 A CN113543073 A CN 113543073A
Authority
CN
China
Prior art keywords
base station
verification
base stations
block
updating period
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
CN202110632083.6A
Other languages
Chinese (zh)
Other versions
CN113543073B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110632083.6A priority Critical patent/CN113543073B/en
Publication of CN113543073A publication Critical patent/CN113543073A/en
Application granted granted Critical
Publication of CN113543073B publication Critical patent/CN113543073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/46Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for vehicle-to-vehicle communication [V2V]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a block checking method and a block chain system. The method comprises the following steps: the leader base station acquires edge cache transactions among vehicle terminals in the block chain network, and generates a block to be checked based on the edge cache transactions; the leader base station broadcasts the blocks to be checked to a block chain network so that each checking base station can check the blocks to be checked, acquires the checking results generated by all the checking base stations, and adds the blocks to be checked to the block chain when the checking results exceeding the first preset number are all passed. The invention can improve the block checking efficiency and reduce the energy consumption of the block checking.

Description

Block checking method and block chain system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a block checking method and a block chain system.
Background
In the internet of vehicles environment, the vehicles collect data generated by the vehicle-mounted sensors, including sensed road and surrounding environment information, vehicle own condition information, entertainment information stored by the vehicle-mounted application program, and the like. The vehicle has a certain cache, and the data can be stored in a vehicle local server.
However, due to the limited storage resources of the vehicles, when the resource-limited vehicles cannot store the data collected by the resource-limited vehicles in the local server, any vehicle with free cache resources can serve as a cache resource provider and provide the edge cache service for the resource-limited vehicles. The vehicles can borrow cache resources mutually to form a transaction, and further a block checking method of a block chain is used for ensuring the security of the transaction. The traditional block verification method usually adopts a workload certification (PoW) mode, but the requirements of low energy consumption and low time delay of the internet of vehicles cannot be met.
Disclosure of Invention
Therefore, the invention provides a block checking method and a block chain system, and aims to meet the requirements of low time delay and low energy consumption of the Internet of vehicles and improve user experience.
In order to achieve the above object, a first aspect of the present invention provides a block checking method, which is applied to a block chain system, where the block chain system includes a central node, a plurality of vehicle terminals, and a plurality of base stations, and some of the base stations in the plurality of base stations include a predetermined leading base station and a plurality of checking base stations, the method includes:
the leader base station acquires edge cache transactions among vehicle terminals in the block chain network, and generates a block to be checked based on the edge cache transactions;
the leader base station broadcasts the blocks to be checked to the block chain network so that each checking base station can check the blocks to be checked;
and the leader base station acquires all the verification results generated by the verification base stations, and adds the blocks to be verified into the block chain under the condition that the verification results exceeding a first preset number are all verified.
Optionally, each of the verification base stations performs verification on the block to be verified, including:
for each verification base station, the verification base station identifies the legality of the edge cache transaction contained in the block to be verified, and generates an identification result;
the verification base station receives the identification results sent by other verification base stations, and generates verification results based on the identification results sent by other verification base stations and the identification results generated by the verification base station;
and the checking base station sends the checking result to the leader base station.
Optionally, the verifying base station identifies the validity of the edge cache transaction included in the block to be verified, and generates an identification result, including:
if the verification base station identifies that the edge cache transaction contained in the block to be verified is a legal transaction, generating an identification result passing the verification;
and if the verification base station identifies that the edge cache transaction contained in the block to be verified is an illegal transaction, generating an identification result that the verification fails.
Optionally, the verifying base station receives the identification result sent by the other verifying base station, and generates the verifying result based on the identification result sent by the other verifying base station and the identification result generated by the verifying base station, where the method includes:
the verification base station judges whether the number of identification results passing verification in the identification results corresponding to all the verification base stations exceeds a second preset number or not;
the verification base station generates a verification result according to the identification result passing the verification under the condition that the number of identification results passing the verification in the identification results corresponding to all the verification base stations is judged to exceed a second preset number;
and the verification base station generates the verification result according to the identification result which is not verified under the condition that the number of the identification results which are verified to pass in the identification results corresponding to all the verification base stations is judged not to exceed a second preset number.
Optionally, before the leader base station acquires the edge cache transaction between the vehicle terminals in the block chain network, the method further includes:
the central node acquires voting information sent by each vehicle terminal in a current updating period, wherein the voting information is voting information for voting by the vehicle terminal for a base station corresponding to the vehicle terminal;
the central node acquires the voting ranking of all base stations according to all the voting information in the current updating period;
the central node selects the first n base stations in the voting ranking of the current updating period as representative base stations of the current updating period, wherein n is an odd number not greater than the total number of the base stations;
in the current updating period, the central node determines one representative base station as the leader base station and determines the rest representative base stations as the verification base stations from the representative base stations in the current updating period at intervals of a preset interval time period;
and when the current updating period is finished and the next updating period is entered, the central node takes the next updating period as the current updating period and executes the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
Optionally, after the central node selects the first n base stations in the voting ranking of the current update period as the representative base station of the current update period, the method further includes:
in the current updating period, under the condition that any one representative base station generates capacity early warning, the central node acquires voting information sent by each vehicle terminal in the current updating period.
Optionally, adding the to-be-checked block to the block chain comprises:
the leader base station stores the blocks to be checked and sends the blocks to be checked to all checking base stations for storage so as to update the block chains;
after adding the block to be checked into the block chain, the method further comprises the following steps:
and other base stations synchronize the updated block chains from the leader base station or the verification base station periodically.
The invention provides a block chain system, which comprises a central node, a plurality of vehicle terminals and a plurality of base stations, wherein a part of the base stations comprise a predetermined leader base station and a plurality of verification base stations;
the leader base station is used for acquiring edge cache transactions among vehicle terminals in the block chain network to which the leader base station belongs and generating a block to be checked based on the edge cache transactions; broadcasting the blocks to be checked to the block chain network so that each checking base station can check the blocks to be checked; and acquiring all the verification results generated by the verification base station, and adding the to-be-verified block into the block chain under the condition that the verification results exceeding the first preset number are all verified.
Optionally, the central node is configured to acquire voting information sent by each vehicle terminal in a current update period, where the voting information is voting information for the vehicle terminal to vote for a base station corresponding to the vehicle terminal; obtaining the voting ranking of all base stations according to all the voting information in the current updating period; selecting the first n base stations in the voting ranking of the current updating period as representative base stations of the current updating period, wherein n is an odd number not greater than the total number of the base stations; in the current updating period, determining one representative base station as the leader base station and determining the rest representative base stations as the verification base stations at intervals of a preset interval time period from the representative base stations in the current updating period; and when the current updating period is finished and the next updating period is entered, taking the next updating period as the current updating period, and triggering the vehicle terminal to execute the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
Optionally, the central node is further configured to:
and in the current updating period, under the condition that any one representative base station generates capacity early warning, triggering the representative base station to execute the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
The invention has the following advantages:
the invention provides a block checking method, a leader base station acquires edge cache transactions between vehicle terminals in a block chain network, and generates a block to be checked based on the edge cache transactions; the leader base station broadcasts the blocks to be checked to a block chain network so that each checking base station can check the blocks to be checked, the leader base station obtains checking results generated by all the checking base stations, and the blocks to be checked are added to the block chain under the condition that the checking results exceeding the first preset number are all passed through.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a block verification method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another block verification method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another block verification method according to an embodiment of the present invention;
fig. 4 is a flowchart of a specific implementation manner of step S103 according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a block chain system according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
In the internet of vehicles environment, the vehicles collect data generated by the vehicle-mounted sensors, including sensed road and surrounding environment information, vehicle own condition information, entertainment information stored by the vehicle-mounted application program, and the like. The vehicle has a certain cache, and the data can be stored in a vehicle local server.
However, due to the limited storage resources of the vehicles, when the resource-limited vehicles cannot store the data collected by the resource-limited vehicles in the local server, any vehicle with free cache resources can serve as a cache resource provider and provide the edge cache service for the resource-limited vehicles. The vehicles can borrow cache resources mutually to form a transaction, and further a block checking method of a block chain is used for ensuring the security of the transaction. The traditional block verification method usually adopts a workload certification (PoW) mode, but the requirements of low energy consumption and low time delay of the internet of vehicles cannot be met.
In order to solve the above problem, embodiments of the present invention provide a block verification method. The method is applied to a block chain system, the block chain system comprises a central node, a plurality of vehicle terminals and a plurality of base stations, wherein a part of the base stations in the plurality of base stations comprise a predetermined leading base station and a plurality of checking base stations.
The central node has an authentication function and a registration function, can generate corresponding identity information for the base station and the vehicle terminal, the identity information comprises a public key, a private key and an identity certificate, and the central node can also store the identity information and account information of each vehicle terminal and the identity information of each base station.
The vehicle terminals have a voting function, a caching function and a calculating function, and each vehicle terminal can be used as a caching service providing terminal and a caching service requesting terminal. The Vehicle terminals can be linked through a v2v (Vehicle to Vehicle) link.
The base station has a communication function and a calculation function, and also has a function of generating a block and a check block. The base station and the vehicle terminal may communicate with each other via a wireless link.
Fig. 1 is a block verification method applied to a block chain system according to an embodiment of the present invention. As shown in fig. 1, the block verification method includes the following steps:
step S101, the leader base station obtains the edge cache transaction between the vehicle terminals in the block chain network to which the leader base station belongs, and generates a block to be checked based on the edge cache transaction.
The leader base station is a base station determined by the central node from a plurality of base stations in advance. The edge cache transaction between the vehicle terminals is a transaction formed by mutually borrowing cache resources between the vehicle terminals and based on the affiliated blockchain network. The block to be checked includes the edge cache transaction acquired by the leader base station.
Step S102, the leader base station broadcasts the blocks to be checked to the block chain network, so that each checking base station can check the blocks to be checked.
The verification base station is a base station determined in advance by the central node from a plurality of base stations.
In one embodiment, the step of broadcasting the to-be-checked block to the block chain network by the leader base station specifically includes: the leader base station broadcasts a block broadcast message into the block chain network, wherein the data format of the block broadcast message can be expressed as:
Bro=(bromsg||PKlead||PKveri||tsbro||block)。
wherein Bro is a tile broadcast message, BromsgIdentifying a block broadcast message; PKleadA public key of the leader base station, which is used for identifying the source address of the block broadcast message; PKveriA public key of the base station is checked and used for identifying the destination address of the block broadcast message; ts isbroIs a timestamp for identifying the transmission time of the tile broadcast message; block represents a block to be checked.
Step S103, the leader base station acquires the verification results generated by all verification base stations, and adds the blocks to be verified into the block chain under the condition that the verification results exceeding the first preset number are all verified.
The first preset number is an integer not greater than the total number of the base stations. The first preset number may be specifically set according to a specific implementation scenario, and may be, for example, half of the total number of the verification base stations or two thirds of the total number of the verification base stations.
In one embodiment, the leader base station obtains the verification results generated by all the verification base stations, determines that the block to be verified is invalid when the verification results exceeding the first preset number are all verification-failed, ignores the block to be verified, and re-executes the step S101.
The embodiment of the invention provides a block checking method, which comprises the following steps that firstly, a leader base station acquires edge cache trading among vehicle terminals in a block chain network to which the leader base station belongs, and generates a block to be checked based on the edge cache trading; and then, the leader base station broadcasts the blocks to be checked to a block chain network so that each checking base station checks the blocks to be checked, and finally, the leader base station acquires the checking results generated by all the checking base stations and adds the blocks to be checked to the block chain under the condition that the checking results exceeding the first preset number are all checked to pass.
Fig. 2 is another block verification method provided in an embodiment of the present invention, and as shown in fig. 2, before the leader base station acquires an edge cache transaction between vehicle terminals in the block chain network to which the leader base station belongs (step S101), the method further includes the following steps:
step S201, the central node acquires voting information sent by each vehicle terminal in the current update period, where the voting information is voting information for the vehicle terminal to vote for the base station corresponding to the vehicle terminal.
The current update cycle refers to a cycle in which block verification is currently performed, and includes a voting time period and a verification time period. It should be noted that the voting period is short, and occupies a smaller proportion in the current update cycle.
In some embodiments, the base station corresponding to the vehicle terminal may be the base station currently closest to the vehicle terminal. It should be noted that, in this embodiment, the more votes of the vehicle terminals obtained by the base station, the more vehicles near the base station are indicated, and then the energy consumption of the base station for obtaining the edge cache transaction between the vehicle terminals in the belonging block chain network may be reduced due to the shortened communication distance, so as to further meet the requirements of low energy consumption and low time delay in the car networking scene.
Step S202, the central node acquires the voting ranking of all base stations according to all the voting information in the current updating period.
Wherein, the more votes the base station obtains, the more votes rank ahead.
Step S203, the central node selects the first n base stations in the voting ranking of the current updating period as the representative base stations of the current updating period, wherein n is an odd number not greater than the total number of the base stations.
The specific value of n may be set according to a specific implementation scenario, for example, the total number of base stations is 50, and the value of n may be 27.
The representative base station of the current update period constitutes a representative committee responsible for the process of generating blocks and the process of verifying the validity of the blocks in the current update period.
And S204, in the current updating period, the central node determines one representative base station as a leader base station and determines the rest representative base stations as verification base stations from the representative base stations in the current updating period at intervals of a preset interval time period.
And the duration of the current updating period is the sum of the duration corresponding to the preset interval time period multiplied by the duration corresponding to the n voting time period. Because the duration of the voting time period is short, the occupation ratio in the current update cycle is small, so in an actual application scene, the duration corresponding to the voting time period can be ignored, and the duration corresponding to the preset interval time period can be configured to be n times the duration of the current update cycle.
In one embodiment, the leader base station does not successfully create the block within the preset interval time period, that is, the block generated by the leader base station is not successfully added to the block chain, other verification base stations do not perform the verification process on the block any more, and the marginal cache transaction between the vehicle terminals included in the block is transferred to the block to be verified generated by the next leader base station, so as to avoid missed transactions.
And step S205, when the current updating period is ended and the next updating period is entered, the central node takes the next updating period as the current updating period and executes the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
Fig. 3 is a further block verification method provided by an embodiment of the present invention, in an implementation manner, as shown in fig. 3, after the central node selects the first n base stations in the voting ranking of the current update period as the representative base station of the current update period (step S205), the method further includes:
and S206, in the current updating period, under the condition that any representative base station generates capacity early warning, the central node executes the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
Wherein, the condition representing that the base station generates the early warning of the capability comprises the following steps: this represents a situation where the base station cannot generate a block and/or cannot check a block due to insufficient resources of the base station, or a situation where the base station fails to generate a block and/or cannot check a block.
In this embodiment, in the step that the central node acquires voting information sent by each vehicle terminal in a current update period, acquires voting ranks of all base stations according to all the voting information in the current update period, and selects the first n base stations in the voting ranks of the current update period as the representative base stations of the current update period, if the base station generating the early warning of the capability still ranks the first n base stations, the central node removes the base station generating the early warning of the capability from the representative base stations of the current update period, and supplements the (n + 1) th base station as the representative base station.
The block verification method provided by the embodiment of the invention utilizes a voting mechanism and an election mechanism to prevent a block chain from being attacked by a central node and a malicious node. Compared with the traditional PoW mechanism applied to the block chain, in the block verification process, the number of base stations participating in block verification is reduced, time and energy consumption for determining the verification result are greatly reduced, the requirements of low energy consumption and low time delay in the scene of the Internet of vehicles can be met, and user experience is improved.
In an embodiment, as shown in fig. 4, the verifying of the to-be-verified block by each verifying base station in step S102 includes the following steps:
step S401, for each verification base station, the verification base station identifies the validity of the edge cache transaction included in the block to be verified, and generates an identification result.
And the identification result comprises an identification result passing the verification or an identification result failing the verification.
In some embodiments, the verifying the validity of the edge cache transaction included in the block to be verified by the verification base station and generating the identification result specifically includes: if the verification base station identifies that the edge cache transaction contained in the block to be verified is a legal transaction, generating an identification result passing the verification; and if the verification base station identifies that the edge cache transaction contained in the block to be verified is an illegal transaction, generating an identification result that the verification fails.
In some embodiments, after the verification base station generates the identification result, the identification result is broadcast to other verification base stations in a distributed manner. Other verification base stations work the same way.
In some embodiments, before each checking base station checks the to-be-checked block in step S102, each checking base station first checks whether the signature of the received block broadcast message is correct, and if the signature of the to-be-checked block broadcast message is correct, acquires the to-be-checked area therein, and performs step S401.
Step S402, the verification base station receives the identification results sent by other verification base stations, and generates verification results based on the identification results sent by other verification base stations and the identification results generated by the verification base station.
In some embodiments, after the verification base station receives the identification result sent by the other verification base station, it verifies whether the signature of the identification result sent by the other verification base station is correct. And if the signatures of the identification results transmitted by all the other verification base stations are correct, executing a step of generating the verification result based on the identification results transmitted by the other verification base stations and the identification result generated by the verification base station. And under the condition that the signatures of the identification results sent by other verification base stations are incorrect, sending reminding information to the verification base station corresponding to the identification result with the incorrect signature so that the verification base station corresponding to the identification result with the incorrect signature can resend the identification result.
In some embodiments, the generating, by the verification base station, the verification result based on the identification result sent by the other verification base station and the identification result generated by the verification base station, specifically includes:
step one, the verification base station judges whether the number of identification results passing the verification in the identification results corresponding to all the verification base stations exceeds a second preset number.
The second preset number may be set according to actual needs, for example, may be set to be half of the total number of the verification base stations.
And step two, the verification base station generates a verification result according to the identification result passing the verification under the condition that the number of identification results passing the verification in the identification results corresponding to all the verification base stations is judged to exceed a second preset number.
Wherein, the check result is that the check is passed.
And step three, the verification base station generates the verification result according to the identification result which is not verified under the condition that the number of the identification results which are verified to pass in the identification results corresponding to all the verification base stations is judged not to exceed a second preset number.
Wherein, the check result is that the check fails.
And step S403, the verification base station sends the verification result to the leader base station.
In one embodiment, in order to perform mutual supervision and mutual verification, the verification base station sends information containing the verification result to the leader base station, wherein the data format of the information containing the verification result is as follows:
Con=(conmsg||PKveri||PKlead||Audself||Audother||Rsucomp);
wherein Con is the information containing the checking result, ConmsgAn information identifier, PK, for the information containing the verification resultleadTo leadThe public key of the base station is used for identifying the destination address of the information containing the verification result; PKveriA public key of the base station for verification, which is used for identifying the source address of the information containing the verification result; audselfAud for the identification result generated by the verification base station itselfotherIdentification results sent for other verification base stations received by the verification base station, RsucompAnd generating a verification result for the verification base station.
In an embodiment, in step S103, the adding, by the leader base station, the block to be checked into the block chain includes: and the leader base station stores the blocks to be checked and sends the blocks to be checked to all the checking base stations for storage so as to update the block chains.
In one embodiment, after the leader base station adds the block to be verified to the block chain, the central node transmits an award to the leader base station and the verification base station participating in the generation and verification process of the block so as to compensate for resources consumed by the leader base station and the verification base station participating in the generation and verification process of the block.
In one embodiment, after the leading base station adds the block to be checked into the block chain, the method further includes: and other base stations synchronize the updated block chains from the leader base station or the verification base station periodically so as to ensure that the block chains stored by the other base stations are the latest block chains.
Fig. 5 is a block chain system according to an embodiment of the present invention. As shown in fig. 5, the block chain system includes a central node 51, a plurality of vehicle terminals 52, and a plurality of base stations 53, where the plurality of base stations 53 include a predetermined leading base station 531, a plurality of verification base stations 532, and a plurality of other base stations 533.
The leader base station 531 is configured to acquire an edge cache transaction between vehicle terminals in the block chain network to which the leader base station belongs, and generate a block to be checked based on the edge cache transaction; the system is further configured to broadcast the to-be-checked block to the block chain network, so that each checking base station 532 can check the to-be-checked block; and is further configured to obtain all the verification results generated by the verification base station 532, and add the to-be-verified block to the block chain when all the verification results exceeding the first preset number are passed through verification.
The verification base station 532 is configured to verify a block to be verified. Specifically, for each verification base station 532, the verification base station 532 is configured to identify the validity of the edge cache transaction included in the block to be verified, and generate an identification result; the verification base station is further configured to receive the identification results sent by other verification base stations 532, and generate verification results based on the identification results sent by other verification base stations 532 and the identification results generated by the verification base station itself; and is further configured to send the verification result to the leader base station 531.
In one embodiment, the verification base station 532 identifies the validity of the edge cache transaction contained in the block to be verified, and generates an identification result, including: if the edge cache transaction contained in the block to be verified is identified as a legal transaction, generating an identification result passing verification; and if the edge cache transaction contained in the block to be verified is identified as an illegal transaction, generating an identification result of which the verification is not passed.
In one embodiment, the receiving, by the checking base station 532, the identification result sent by the other checking base station 532, and generating the checking result based on the identification result sent by the other checking base station 532 and the identification result generated by the checking base station, includes: the verification base station 532 is configured to determine whether the number of identification results passing verification in the identification results corresponding to all the verification base stations 532 exceeds a second preset number; under the condition that the number of identification results passing the verification in the identification results corresponding to all verification base stations is judged to exceed a second preset number, generating the verification result according to the identification results passing the verification; and under the condition that the number of identification results passing the verification in the identification results corresponding to all the verification base stations 532 is judged not to exceed a second preset number, generating a verification result according to the identification results failing the verification.
The central node 51 is configured to acquire voting information sent by each vehicle terminal in a current update period, where the voting information is voting information for the vehicle terminal to vote for a base station corresponding to the vehicle terminal; the base station is also used for acquiring the voting ranking of all the base stations according to all the voting information in the current updating period; the method is also used for selecting the first n base stations in the voting ranking of the current updating period as the representative base stations of the current updating period, wherein n is an odd number not greater than the total number of the base stations; in the current updating period, determining one representative base station as the leader base station and determining the rest representative base stations as the verification base stations at intervals of a preset interval time period from the representative base stations in the current updating period; and when the current updating period is finished and the next updating period is entered, taking the next updating period as the current updating period, and triggering the vehicle terminal to execute the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
In one embodiment, the central node 51 is further configured to: and in the current updating period, under the condition that any representative base station generates capacity early warning, triggering the vehicle terminal to execute the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
In one embodiment, the leading base station 531 adds the block to be checked to the block chain, which specifically includes: the leader base station 531 stores the blocks to be checked, and sends the blocks to be checked to all the checking base stations 532 for storage, so as to update the block chains.
In one embodiment, the other base stations 533 synchronize the updated blockchain periodically from the leader base station 531 or the verification base station 532.
The working method of each node in the blockchain system provided by the embodiment corresponds to each step in the block verification method applied to the blockchain system, and therefore, the detailed working method applied to each node in the blockchain system can be referred to the block verification method applied to the blockchain system provided by the embodiment.
The embodiment of the invention provides a block chain checking system, which comprises a central node, a plurality of vehicle terminals and a plurality of base stations, wherein part of the base stations in the plurality of base stations comprise a predetermined leading base station and a plurality of checking base stations; the leader base station is used for acquiring edge cache transactions among the vehicle terminals in the block chain network to which the leader base station belongs and generating a block to be checked based on the edge cache transactions; the system is also used for broadcasting the blocks to be checked to the block chain network so that each checking base station can check the blocks to be checked; and the method is also used for acquiring the verification results generated by all verification base stations, and adding the blocks to be verified into the block chain under the condition that the verification results exceeding the first preset number are all verified. The number of base stations participating in block verification in the block verification system is reduced, time and energy consumption for determining verification results are greatly reduced, requirements of low energy consumption and low time delay in an internet of vehicles scene can be met, and user experience is improved.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A block checking method is applied to a block chain system, the block chain system comprises a central node, a plurality of vehicle terminals and a plurality of base stations, wherein a part of the base stations in the plurality of base stations comprise a predetermined leader base station and a plurality of checking base stations, and the method comprises the following steps:
the leader base station acquires edge cache transactions among vehicle terminals in the block chain network, and generates a block to be checked based on the edge cache transactions;
the leader base station broadcasts the blocks to be checked to the block chain network so that each checking base station can check the blocks to be checked;
and the leader base station acquires all the verification results generated by the verification base stations, and adds the blocks to be verified into the block chain under the condition that the verification results exceeding a first preset number are all verified.
2. The method of claim 1, wherein the checking the to-be-checked block by each of the checking base stations comprises:
for each verification base station, the verification base station identifies the legality of the edge cache transaction contained in the block to be verified, and generates an identification result;
the verification base station receives the identification results sent by other verification base stations, and generates verification results based on the identification results sent by other verification base stations and the identification results generated by the verification base station;
and the checking base station sends the checking result to the leader base station.
3. The method of claim 2, wherein the verification base station identifies the validity of the edge cache transaction contained in the block to be verified and generates an identification result, comprising:
if the verification base station identifies that the edge cache transaction contained in the block to be verified is a legal transaction, generating an identification result passing the verification;
and if the verification base station identifies that the edge cache transaction contained in the block to be verified is an illegal transaction, generating an identification result that the verification fails.
4. The method of claim 3, wherein the checking base station receives the identification results sent by other checking base stations, and generates the checking result based on the identification results sent by other checking base stations and the identification result generated by itself, and the method comprises:
the verification base station judges whether the number of identification results passing verification in the identification results corresponding to all the verification base stations exceeds a second preset number or not;
the verification base station generates a verification result according to the identification result passing the verification under the condition that the number of identification results passing the verification in the identification results corresponding to all the verification base stations is judged to exceed a second preset number;
and the verification base station generates the verification result according to the identification result which is not verified under the condition that the number of the identification results which are verified to pass in the identification results corresponding to all the verification base stations is judged not to exceed a second preset number.
5. The method of claim 1, wherein before the leader base station acquires the edge cache transaction between the vehicle terminals in the block chain network, the method further comprises:
the central node acquires voting information sent by each vehicle terminal in a current updating period, wherein the voting information is voting information for voting by the vehicle terminal for a base station corresponding to the vehicle terminal;
the central node acquires the voting ranking of all base stations according to all the voting information in the current updating period;
the central node selects the first n base stations in the voting ranking of the current updating period as representative base stations of the current updating period, wherein n is an odd number not greater than the total number of the base stations;
in the current updating period, the central node determines one representative base station as the leader base station and determines the rest representative base stations as the verification base stations from the representative base stations in the current updating period at intervals of a preset interval time period;
and when the current updating period is finished and the next updating period is entered, the central node takes the next updating period as the current updating period and executes the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
6. The method of claim 5, wherein after the central node selects the first n base stations in the voting ranking of the current update period as the representative base station of the current update period, the method further comprises:
in the current updating period, under the condition that any one representative base station generates capacity early warning, the central node acquires voting information sent by each vehicle terminal in the current updating period.
7. The method of claim 1, wherein adding the block to be verified to a blockchain comprises:
the leader base station stores the blocks to be checked and sends the blocks to be checked to all checking base stations for storage so as to update the block chains;
after adding the block to be checked into the block chain, the method further comprises the following steps:
and other base stations synchronize the updated block chains from the leader base station or the verification base station periodically.
8. The block chain system is characterized by comprising a central node, a plurality of vehicle terminals and a plurality of base stations, wherein a part of the base stations in the plurality of base stations comprise a predetermined leader base station and a plurality of verification base stations;
the leader base station is used for acquiring edge cache transactions among vehicle terminals in the block chain network to which the leader base station belongs and generating a block to be checked based on the edge cache transactions; broadcasting the blocks to be checked to the block chain network so that each checking base station can check the blocks to be checked; and acquiring all the verification results generated by the verification base station, and adding the to-be-verified block into the block chain under the condition that the verification results exceeding the first preset number are all verified.
9. The system of claim 8, wherein the central node is configured to obtain voting information sent by each vehicle terminal in a current update period, where the voting information is voting information for the vehicle terminal to vote for a base station corresponding to the vehicle terminal; obtaining the voting ranking of all base stations according to all the voting information in the current updating period; selecting the first n base stations in the voting ranking of the current updating period as representative base stations of the current updating period, wherein n is an odd number not greater than the total number of the base stations; in the current updating period, determining one representative base station as the leader base station and determining the rest representative base stations as the verification base stations at intervals of a preset interval time period from the representative base stations in the current updating period; and when the current updating period is finished and the next updating period is entered, taking the next updating period as the current updating period, and triggering the vehicle terminal to execute the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
10. The blockchain system of claim 9, wherein the central node is further configured to:
and in the current updating period, under the condition that any one representative base station generates capacity early warning, triggering the representative base station to execute the step of acquiring the voting information sent by each vehicle terminal in the current updating period.
CN202110632083.6A 2021-06-07 2021-06-07 Block checking method and block chain system Active CN113543073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110632083.6A CN113543073B (en) 2021-06-07 2021-06-07 Block checking method and block chain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110632083.6A CN113543073B (en) 2021-06-07 2021-06-07 Block checking method and block chain system

Publications (2)

Publication Number Publication Date
CN113543073A true CN113543073A (en) 2021-10-22
CN113543073B CN113543073B (en) 2023-05-09

Family

ID=78124600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110632083.6A Active CN113543073B (en) 2021-06-07 2021-06-07 Block checking method and block chain system

Country Status (1)

Country Link
CN (1) CN113543073B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234470A (en) * 2017-12-28 2018-06-29 江苏通付盾科技有限公司 Block packaging method and system, electronic equipment, storage medium in block chain network
CN109729504A (en) * 2018-12-04 2019-05-07 深圳供电局有限公司 Vehicle credibility authentication and caching method based on block chain
CN110535687A (en) * 2019-07-30 2019-12-03 大连理工大学 The collaboration caching method of lightweight block chain under a kind of environment based on car networking
CN110730450A (en) * 2019-10-18 2020-01-24 中国联合网络通信集团有限公司 Mobile communication method and system
US20200082398A1 (en) * 2018-09-07 2020-03-12 Nebulas IO Limited Proof-of-Devotion Blockchain Consensus Algorithm
CN111800495A (en) * 2020-06-30 2020-10-20 华北电力大学 Task unloading system and method in vehicle fog calculation
WO2020216280A1 (en) * 2019-04-26 2020-10-29 腾讯科技(深圳)有限公司 Block processing methods, node and system
CN112445727A (en) * 2020-11-27 2021-03-05 鹏城实验室 Edge cache replacement method and device based on viewport characteristics
CN112637822A (en) * 2020-12-26 2021-04-09 北京工业大学 Cellular network safe transaction platform based on block chain
CN112700333A (en) * 2021-01-11 2021-04-23 东北大学 Electronic archive consensus method based on block chain

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234470A (en) * 2017-12-28 2018-06-29 江苏通付盾科技有限公司 Block packaging method and system, electronic equipment, storage medium in block chain network
US20200082398A1 (en) * 2018-09-07 2020-03-12 Nebulas IO Limited Proof-of-Devotion Blockchain Consensus Algorithm
CN109729504A (en) * 2018-12-04 2019-05-07 深圳供电局有限公司 Vehicle credibility authentication and caching method based on block chain
WO2020216280A1 (en) * 2019-04-26 2020-10-29 腾讯科技(深圳)有限公司 Block processing methods, node and system
CN110535687A (en) * 2019-07-30 2019-12-03 大连理工大学 The collaboration caching method of lightweight block chain under a kind of environment based on car networking
CN110730450A (en) * 2019-10-18 2020-01-24 中国联合网络通信集团有限公司 Mobile communication method and system
CN111800495A (en) * 2020-06-30 2020-10-20 华北电力大学 Task unloading system and method in vehicle fog calculation
CN112445727A (en) * 2020-11-27 2021-03-05 鹏城实验室 Edge cache replacement method and device based on viewport characteristics
CN112637822A (en) * 2020-12-26 2021-04-09 北京工业大学 Cellular network safe transaction platform based on block chain
CN112700333A (en) * 2021-01-11 2021-04-23 东北大学 Electronic archive consensus method based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘勇;李飞;高路路;徐翔;: "基于区块链技术的车联网汽车身份认证可行性研究", 汽车技术 *

Also Published As

Publication number Publication date
CN113543073B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN111601258B (en) Vehicle networking node data safety communication method based on block chain
CN107993149B (en) Account information management method, system and readable storage medium
CN109671205B (en) Voting method, device and equipment based on block chain and computer storage medium
JP2020517144A (en) V2X communication device and data communication method thereof
CN111224781B (en) Method and apparatus for managing registration credentials in a security credential management system
EP3637672B1 (en) V2x communication device and secured communication method thereof
KR20120055683A (en) Methods and apparatus for deriving, communicating and/or verifying ownership of expressions
CN110784461A (en) Safe 6LoWPAN communication method and system based on block chain
CN112749968B (en) Service data recording method and device based on block chain
KR101426294B1 (en) Reputation system for vehicles based on local community
US11523278B2 (en) Method for secured communication and apparatus therefor
CN113536284A (en) Method, device, equipment and storage medium for verifying digital certificate
CN113259326B (en) Consensus optimization method and device based on alliance chain network and computer equipment
CN112672321B (en) Relay vehicle selection method and device
WO2020259519A1 (en) Certificate update method and related device
CN116668987B (en) Side chain-based internet of vehicles data sharing method and system
CN113543073B (en) Block checking method and block chain system
JP6022704B2 (en) Method and terminal for message verification
CN111432028A (en) Service processing method and device based on block chain
CN112988412B (en) Edge caching method, base station and system based on block chain network
CN102421094B (en) Distributed safety reprogramming method of wireless sensor network
CN113076560A (en) Block chain-based vehicle management method, device, equipment and storage medium
CN113051621A (en) Secure communication method, device and system
CN113301117B (en) Node joining consensus and quitting consensus method, device and computer equipment
CN115189882B (en) Block chain-based distributed identity authentication method in crowd sensing

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