CN111198895A - Block chain updating method - Google Patents

Block chain updating method Download PDF

Info

Publication number
CN111198895A
CN111198895A CN202010098144.0A CN202010098144A CN111198895A CN 111198895 A CN111198895 A CN 111198895A CN 202010098144 A CN202010098144 A CN 202010098144A CN 111198895 A CN111198895 A CN 111198895A
Authority
CN
China
Prior art keywords
node
identity information
updated
updating
target data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010098144.0A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010098144.0A priority Critical patent/CN111198895A/en
Publication of CN111198895A publication Critical patent/CN111198895A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/23Updating
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The invention relates to a block chain updating method, wherein an updating node acquires user identity authentication request information sent by a user terminal, the updating node receives target data to be updated sent by the user terminal after the authentication is passed, each node in a first node set performs consensus processing on the target data to be updated, then each node in a second node set performs data synchronization on the target data to be updated, and when each node in the second node set completes the data synchronization on the target data to be updated, a block chain is updated. The updating process of the block chain updating method is simple, not complicated, high in updating efficiency and capable of updating the block chain rapidly and reliably, the number of the nodes capable of being accommodated in the network can be increased, the fault-tolerant capability and the expansibility of the network are enhanced, application occasions are further improved, and more and wider application requirements are met.

Description

Block chain updating method
Technical Field
The invention relates to a block chain updating method.
Background
The blockchain is a distributed book technology, and can also be regarded as a data structure for storing data in time sequence. The consensus mechanism is used as a core technology of the block chain, and means that the verification and confirmation of the transaction are completed in a short time through the voting of special nodes in the block chain network; if several nodes with irrelevant interests can achieve consensus on a transaction, the whole network can be considered to achieve consensus on the node. The updating process of the existing block chain updating method is complex and has low efficiency.
Disclosure of Invention
The invention aims to provide a block chain updating method, which is used for solving the problems of relatively complex updating process and relatively low efficiency of the existing block chain updating method.
In order to solve the problems, the invention adopts the following technical scheme:
a blockchain update method, comprising:
the method comprises the steps that an update node acquires user identity authentication request information sent by a user side, wherein the user identity authentication request information comprises identity information of a user to be authenticated;
the updating node verifies whether the identity information of the user to be verified is matched with one identity information in each identity information meeting the requirements or not according to each stored identity information meeting the requirements;
if the identity information of the user to be verified is matched with certain identity information, the updating node receives target data to be updated, which is sent by the user side;
the updating node broadcasts the target data to be updated to a first node set where the updating node is located, and each node in the first node set performs consensus processing on the target data to be updated;
when each node in the first node set agrees with the target data to be updated, each node in the second node set performs data synchronization on the target data to be updated;
and when each node in the second node set completes data synchronization on the target data to be updated, updating the block chain according to the target data to be updated.
Optionally, the identity information of the user to be authenticated is fingerprint information of the user to be authenticated.
Optionally, the verifying, by the update node, whether the identity information of the user to be verified matches with one of the identity information meeting the requirements according to the stored identity information meeting the requirements includes:
the updating node compares the identity information of the user to be verified with the stored identity information meeting the requirements one by one to obtain the matching values of the identity information of the user to be verified and the identity information meeting the requirements;
comparing each matching value with a preset matching threshold value;
and if the matching value larger than the preset matching threshold exists, judging that the identity information of the user to be verified is matched with certain identity information.
Optionally, each node in the first node set performs consensus processing on the target data to be updated, including:
and carrying out consensus processing on the target data to be updated by each node in the first node set through a practical Byzantine fault-tolerant PBFT algorithm.
Optionally, each node in the second node set performs data synchronization on the target data to be updated, including:
and each node in the second node set carries out data synchronization on the target data to be updated through a Gossip protocol.
The invention has the beneficial effects that: firstly, the updating node performs identity authentication according to user identity authentication request information sent by a user side, and only when the identity authentication is passed, namely the identity information of a user to be authenticated is matched with one of the stored identity information meeting the requirements, the subsequent updating process is performed, so that the operation of irrelevant personnel on the block chain data can be avoided, the important data is prevented from being stolen by the irrelevant personnel, and the safety of the block chain data is improved; then, after the update node receives the target data to be updated sent by the user side, the update node broadcasts the target data to be updated to the first node set where the update node is located, each node in the first node set performs consensus processing on the target data to be updated, then each node in the second node set performs data synchronization on the target data to be updated, the update process is simple and not complicated, accordingly, the update efficiency is high, the block chain can be updated quickly and reliably, moreover, the update method can also improve the number of nodes which can be accommodated by the network, enhance the fault tolerance and the expansibility of the network, further improve the application occasion and meet more and wider application requirements.
Drawings
In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings needed to be used in the embodiment will be briefly described as follows:
fig. 1 is a flow chart of a blockchain update method.
Detailed Description
As shown in fig. 1, the present embodiment provides a block chain updating method, which includes the following steps:
the method comprises the following steps that an update node acquires user identity authentication request information sent by a user side, wherein the user identity authentication request information comprises identity information of a user to be authenticated:
in this embodiment, before the block chain updating method is implemented, a block chain network needs to be established in advance, where the block chain network is constructed by block chains, and the block chain network is connected with at least one node. The user end connected with each node can be a mobile phone, a tablet computer, a computer and other devices, related communication ends for being in communication connection with the nodes can be preset on the devices, and the communication ends can be in a software form or a hardware form.
The execution subject of the blockchain updating method can be a computer device such as a server and the like with a data processing function. Each user side can have the functions of data acquisition and data provision, namely, the data acquisition side and the data provision side are both provided with the data.
One of the nodes can be specially set as an update node for updating the block chain; one of the nodes may also be randomly set as an update node. The update node acquires user authentication request information sent by the user side, where the user authentication request information includes identity information of a user to be authenticated.
The updating node verifies whether the identity information of the user to be verified is matched with one identity information in each identity information meeting the requirements according to each stored identity information meeting the requirements:
at least two identity information meeting the requirements are stored in the block chain network. The qualified personnel in the qualified identity information refer to personnel authorized to perform block chain update, such as: enterprise high-level managers or workers responsible for blockchain updates. And if the identity information is fingerprint information, the fingerprint information of all persons meeting the requirements is input in advance and stored in a related memory.
And the updating node compares the received identity information of the user to be verified with the stored identity information meeting the requirements one by one to obtain the matching values of the identity information of the user to be verified and the identity information meeting the requirements. The matching value refers to the similarity between the identity information of the user to be verified and each identity information meeting the requirements, and if a certain matching value is higher, the higher the corresponding similarity is, that is, the more similar the identity information of the user to be verified and the corresponding identity information meeting the requirements are. The number of the stored identity information meeting the requirements is equal to the number of the obtained matching values.
And comparing each matching value with a preset matching threshold, wherein the matching threshold is set according to actual needs, such as 90%.
If a matching value larger than a preset matching threshold value exists, namely if one matching value is larger than the preset matching threshold value, the identity information of the user to be verified is judged to be matched with the identity information meeting the requirement, and the identity information of the user to be verified is shown to meet the requirement.
If the identity information of the user to be verified is matched with certain identity information, the updating node receives target data to be updated sent by the user side:
and if the identity information of the user to be verified is matched with certain identity information, namely the identity information of the user to be verified meets the requirement, the update node receives target data to be updated sent by the user side, the target data is used for updating the block chain, and the specific data format and content are determined according to the actual situation.
The update node broadcasts the target data to be updated to a first node set where the update node is located, and each node in the first node set performs consensus processing on the target data to be updated:
the nodes of the blockchain are divided into two groups, namely a first node set and a second node set, the updating node and at least one other node form the first node set, and the rest nodes of the blockchain form the second node set. The update node is in the first set of nodes.
And broadcasting the target data to be updated to the first node set by the updating node, and then carrying out consensus processing on the target data to be updated by each node in the first node set. In this embodiment, each node in the first node set performs consensus processing on target data to be updated by using a practical byzantine fault-tolerant PBFT algorithm, and since the consensus processing on the data by using the practical byzantine fault-tolerant PBFT algorithm belongs to a conventional technical means, details are not repeated.
When each node in the first node set agrees with the target data to be updated, each node in the second node set performs data synchronization on the target data to be updated:
and when all the nodes in the first node set reach consensus on the target data to be updated, all the nodes in the second node set carry out data synchronization on the target data to be updated. In this embodiment, each node in the second node set performs data synchronization on target data to be updated through the Gossip protocol. Since the data synchronization of the data through the Gossip protocol belongs to the conventional technical means, the description is omitted.
When each node in the second node set completes data synchronization on the target data to be updated, updating a block chain according to the target data to be updated:
when each node in the second node set completes data synchronization on the target data to be updated, the block chain is updated according to the target data to be updated, and the specific updating process belongs to a conventional technical means and is not repeated.
The above-mentioned embodiments are merely illustrative of the technical solutions of the present invention in a specific embodiment, and any equivalent substitutions and modifications or partial substitutions of the present invention without departing from the spirit and scope of the present invention should be covered by the claims of the present invention.

Claims (5)

1. A blockchain update method, comprising:
the method comprises the steps that an update node acquires user identity authentication request information sent by a user side, wherein the user identity authentication request information comprises identity information of a user to be authenticated;
the updating node verifies whether the identity information of the user to be verified is matched with one identity information in each identity information meeting the requirements or not according to each stored identity information meeting the requirements;
if the identity information of the user to be verified is matched with certain identity information, the updating node receives target data to be updated, which is sent by the user side;
the updating node broadcasts the target data to be updated to a first node set where the updating node is located, and each node in the first node set performs consensus processing on the target data to be updated;
when each node in the first node set agrees with the target data to be updated, each node in the second node set performs data synchronization on the target data to be updated;
and when each node in the second node set completes data synchronization on the target data to be updated, updating the block chain according to the target data to be updated.
2. The blockchain updating method of claim 1, wherein the identity information of the user to be authenticated is fingerprint information of the user to be authenticated.
3. The blockchain updating method of claim 1, wherein the updating node verifies whether the identity information of the user to be verified matches with one of the identity information that meets the requirements according to the stored identity information that meets the requirements, including:
the updating node compares the identity information of the user to be verified with the stored identity information meeting the requirements one by one to obtain the matching values of the identity information of the user to be verified and the identity information meeting the requirements;
comparing each matching value with a preset matching threshold value;
and if the matching value larger than the preset matching threshold exists, judging that the identity information of the user to be verified is matched with certain identity information.
4. The blockchain updating method of claim 1, wherein each node in the first set of nodes performs consensus processing on the target data to be updated, including:
and carrying out consensus processing on the target data to be updated by each node in the first node set through a practical Byzantine fault-tolerant PBFT algorithm.
5. The blockchain updating method of claim 1, wherein each node in the second set of nodes performs data synchronization on the target data to be updated, and the method comprises:
and each node in the second node set carries out data synchronization on the target data to be updated through a Gossip protocol.
CN202010098144.0A 2020-02-18 2020-02-18 Block chain updating method Pending CN111198895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010098144.0A CN111198895A (en) 2020-02-18 2020-02-18 Block chain updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010098144.0A CN111198895A (en) 2020-02-18 2020-02-18 Block chain updating method

Publications (1)

Publication Number Publication Date
CN111198895A true CN111198895A (en) 2020-05-26

Family

ID=70746662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010098144.0A Pending CN111198895A (en) 2020-02-18 2020-02-18 Block chain updating method

Country Status (1)

Country Link
CN (1) CN111198895A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182009A (en) * 2020-10-27 2021-01-05 安信数字(广州)科技有限公司 Data updating method and device of block chain and readable storage medium
CN114840545A (en) * 2022-06-29 2022-08-02 北京大学 Block chain fine-grained editing method supporting rapid state updating

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180285869A1 (en) * 2017-03-28 2018-10-04 Alibaba Group Holding Limited Method and apparatus for processing transaction requests
CN109327548A (en) * 2018-11-27 2019-02-12 北京瑞卓喜投科技发展有限公司 A kind of block chain update method and block chain more new system
CN109347804A (en) * 2018-09-19 2019-02-15 电子科技大学 A kind of Byzantine failure tolerance common recognition optimization method for block chain
CN109472675A (en) * 2018-11-29 2019-03-15 阿里巴巴集团控股有限公司 Processing method, device, system and the equipment of charter business
CN110636113A (en) * 2019-08-23 2019-12-31 上海电力大学 Byzantine fault-tolerant consensus method, system, device and storage medium for blockchains

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180285869A1 (en) * 2017-03-28 2018-10-04 Alibaba Group Holding Limited Method and apparatus for processing transaction requests
CN109347804A (en) * 2018-09-19 2019-02-15 电子科技大学 A kind of Byzantine failure tolerance common recognition optimization method for block chain
CN109327548A (en) * 2018-11-27 2019-02-12 北京瑞卓喜投科技发展有限公司 A kind of block chain update method and block chain more new system
CN109472675A (en) * 2018-11-29 2019-03-15 阿里巴巴集团控股有限公司 Processing method, device, system and the equipment of charter business
CN110636113A (en) * 2019-08-23 2019-12-31 上海电力大学 Byzantine fault-tolerant consensus method, system, device and storage medium for blockchains

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张仕将;柴晶;陈泽华;贺海武;: "基于Gossip协议的拜占庭共识算法" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182009A (en) * 2020-10-27 2021-01-05 安信数字(广州)科技有限公司 Data updating method and device of block chain and readable storage medium
CN112182009B (en) * 2020-10-27 2024-03-12 安信数字(广州)科技有限公司 Block chain data updating method and device and readable storage medium
CN114840545A (en) * 2022-06-29 2022-08-02 北京大学 Block chain fine-grained editing method supporting rapid state updating
CN114840545B (en) * 2022-06-29 2022-10-14 北京大学 Block chain fine-grained editing method supporting rapid state updating

Similar Documents

Publication Publication Date Title
CN107396360B (en) Block verification method and device
KR101962686B1 (en) System and method for electronic voting
CN110912893B (en) Account number merging method
CN111198895A (en) Block chain updating method
CN104601602A (en) Terminal device network security enhanced access and authentication method
KR102308859B1 (en) Surrogate authentication service system and method based on biometric information
CN110943840A (en) Signature verification method and system
CN110223075B (en) Identity authentication method and device, computer equipment and storage medium
CN113536250B (en) Token generation method, login verification method and related equipment
CN114584326B (en) Block chain data processing method and device, electronic equipment and storage medium
CN107330104A (en) A kind of utilization communication network verifies the method and system of user real identification
US20040073799A1 (en) Method for loading a software program onto a mobile communication terminal
CN1731722A (en) Method for forming and checking dynamic cipher
CN113961600A (en) Data query method and device, computer equipment and storage medium
CN108882230B (en) Call record management method, device and system
CN111988781A (en) Verification method and system for safe access of Internet of things equipment
CN104717177A (en) Mobile application security control method and mobile application security control device
CN110569649A (en) Data access service interface authentication method and device based on asynchronous processing
CN112702171B (en) Distributed identity authentication method facing edge gateway
US11722320B2 (en) Digital certificate validation using untrusted data
CN114070594B (en) Cloud anti-attack system and method based on log abstract
CN109657447B (en) Equipment fingerprint generation method and device
CN116582338A (en) Face authentication method and device
CN117852014A (en) Big data-based server file data authentication query method
CN113538138A (en) Method and device for generating grouping consensus model and computer equipment

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