Method, electronic device and computer storage medium for data redundancy backup verification
Generating data labels through elliptic curve operations and using them to verify redundant backup relationships solves the problem of insufficient security in data redundant backup verification in the existing technology, and achieves high-security data label verification and redundant backup generation.
Patent Information
- Application Number
- CN202010232308.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-03-27
AI Technical Summary
When verifying data redundancy backup, the existing technology usually uses plain text data comparison, which leads to the leakage of sensitive data information and lacks security.
Use elliptic curve addition and multiplication operations to generate data labels, verify the redundant backup relationship between data through data labels, use the elliptic curve discrete logarithm problem to ensure the security of data labels, and generate redundant backups through Lagrangian interpolation. data to avoid clear text transmission of data.
It improves the security of data verification, prevents data leakage, ensures the uniqueness and information hiding effect of data labels, prevents malicious tampering, and enables verification of redundant backup relationships without clear text data.
Smart Images

Figure CN111444044B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to the field of information processing, and in particular to a method for verifying redundant data backup, a method for generating redundant backup data, an electronic device, and a computer storage medium. Background Art
[0002] Due to system or equipment failures, data needs to be backed up redundantly. When there are multiple sets of redundant backup data, it is often necessary to verify whether the data meets the redundant backup relationship. The current practice is often to use plain text data for comparison, which will leak sensitive information of the data. Summary of the invention
[0003] The embodiments of the present disclosure provide a method for verifying redundant backup of data, a method for generating redundant backup data, an electronic device and a computer storage medium, whereby the present invention can verify a 2-3 redundant backup relationship between data through data tags.
[0004] In a first aspect of the present disclosure, a method for verifying data redundancy backup is provided. The method comprises: receiving, at a verification party device, a first data tag corresponding to first data, a second data tag corresponding to second data, a third data tag corresponding to third data, a first value, and a second value from a data party device, wherein each data tag is generated based on the following steps: dividing the corresponding data into N data blocks, wherein the size of each data block in the N data blocks does not exceed a predetermined size, where N is an integer greater than 1, comparing the N data blocks with a predetermined N data block; elliptic curve multiplication operations are performed one by one on elliptic curve base points to obtain N elliptic curve points, and elliptic curve addition operations are performed on the N elliptic curve points to obtain the data label; an elliptic curve addition operation is performed on the elliptic curve point obtained by performing elliptic curve addition on the first value and the first data label and the elliptic curve point obtained by performing elliptic curve addition on the second value and the second data label to obtain the elliptic curve point to be verified; if it is determined that the elliptic curve point to be verified is equal to the third data label, it is determined that the first data, the second data and the third data satisfy the 2-3 data redundancy backup; and if it is determined that the elliptic curve point to be verified is not equal to the third data label, it is determined that the first data, the second data and the third data do not satisfy the 2-3 data redundancy backup.
[0005] In a second aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the device executes the steps of the method according to the first aspect of the present disclosure.
[0006] In a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a machine, the method according to the first aspect of the present disclosure is implemented.
[0007] In a fourth aspect of the present disclosure, a method for generating redundant backup data is provided, comprising: at a data party device, dividing first data into N first data blocks, the size of each of the N first data blocks not exceeding a predetermined size, where N is an integer greater than 1; dividing second data into N second data blocks, the size of each of the N second data blocks not exceeding the predetermined size; determining a first random number, a second random number, and a third random number; calculating a first quotient of a difference between the third random number and the second random number and a difference between the first random number and the second random number; calculating a second quotient of a difference between the third random number and the first random number and a difference between the second random number and the first random number; for each first data block and the corresponding second data block, adding the product of the first quotient and the first data block and the product of the second quotient and the second data block to obtain a third data block; and composing the N third data blocks into third data as 2-3 redundant backup data of the first data and the second data.
[0008] In a fifth aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the device executes the steps of the method according to the fourth aspect of the present disclosure.
[0009] In a sixth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a machine, the method according to the fourth aspect of the present disclosure is implemented.
[0010] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.
[0012] Figure 1A schematic flow chart of a method 100 for generating redundant backup data according to an embodiment of the present disclosure is shown;
[0013] Figure 2 A schematic flow chart of a method 200 for verifying data redundancy backup according to an embodiment of the present disclosure is shown; and
[0014] Figure 3 The block diagram of an electronic device 300 suitable for implementing the embodiments of the present disclosure is schematically shown.
[0015] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0016] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0017] The term "including" and its variations as used in this document represent open inclusion, that is, "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below. It should be understood that the "data tags" in this document may also be referred to as "data summaries", "data fingerprints", etc.
[0018] As mentioned above, currently data redundancy backup relationships are often verified through plain text data, which can easily lead to data leakage.
[0019] In order to at least partially solve one or more of the above problems and other potential problems, an exemplary embodiment of the present disclosure proposes a solution for verifying data redundancy backup. In this scheme, at a verification party device, a first data tag corresponding to the first data, a second data tag corresponding to the second data, a third data tag corresponding to the third data, a first value, and a second value are received from a data party device, and each data tag is generated based on the following steps: the corresponding data is divided into N data blocks, the size of each data block in the N data blocks does not exceed a predetermined size, and N is an integer greater than 1, an elliptic curve multiplication operation is performed on the N data blocks and predetermined N elliptic curve base points in a one-to-one correspondence to obtain N elliptic curve points, an elliptic curve addition operation is performed on the N elliptic curve points to obtain a data tag, an elliptic curve addition operation is performed on an elliptic curve point obtained by performing elliptic curve addition on the first value and the first data tag and an elliptic curve point obtained by performing elliptic curve addition on the second value and the second data tag to obtain an elliptic curve point to be verified, if it is determined that the elliptic curve point to be verified is equal to the third data tag, then it is determined that the first data, the second data, and the third data satisfy 2-3 data redundancy backup, and if it is determined that the elliptic curve point to be verified is not equal to the third data tag, then it is determined that the first data, the second data, and the third data do not satisfy 2-3 data redundancy backup.
[0020] In the above scheme, a 2-3 redundant backup operation is performed on the three data tags through the first value and the second value sent by the data party. If it is determined that the data tag satisfies the 2-3 redundant backup relationship, then it is determined that the data corresponding to the data tag satisfies the 2-3 redundant backup relationship. Therefore, the 2-3 data redundant backup relationship can be verified without the need for plaintext data, thereby improving the security of data verification.
[0021] Figure 1 1 shows a schematic flow chart of a method 100 for generating redundant backup data according to an embodiment of the present disclosure. For example, the method 100 may be performed by a data party device or a Figure 3 The method 100 is performed by the electronic device 300 shown. It should be understood that the method 100 may further include additional blocks not shown and / or may omit the blocks shown, and the scope of the present disclosure is not limited in this respect.
[0022] At block 102, at a data party device, the first data is divided into N first data blocks, and the size of each of the N first data blocks does not exceed a predetermined size, where N is an integer greater than 1. For example, the first data blocks are represented as A1, A2, ..., AN, respectively. The predetermined size is, for example, but not limited to, 256 bits, etc. The data party device is, for example, but not limited to, a terminal device, a server, etc.
[0023] At block 104, the second data is divided into N second data blocks, and the size of each second data block in the N second data blocks does not exceed a predetermined size. For example, the second data blocks are represented as B1, B2, ... BN. The first data and the second data herein include, but are not limited to, location data, financial data, health data, biometric data, etc.
[0024] At block 106, a first random number, a second random number, and a third random number are determined. For example, the first random number is denoted as X1, the second random number is denoted as X2, and the third random number is denoted as X3.
[0025] At block 108, a first quotient of the difference between the third random number and the second random number and the difference between the first random number and the second random number is calculated. The first quotient may be expressed, for example, as (X3-X2) / (X1-X2).
[0026] At block 110, a second quotient of the difference between the third random number and the first random number and the difference between the second random number and the first random number is calculated. The second quotient may be expressed, for example, as (X3-X1) / (X2-X1).
[0027] At block 112, for each first data block and the corresponding second data block, the product of the first quotient and the first data block and the product of the second quotient and the second data block are added to obtain a third data block. For example, for each first data block Ai and the corresponding second data block Bi, where i is greater than or equal to 1 and less than or equal to N, the third data block Ci is expressed as Ai*(X3-X2) / (X1-X2)+Bi*(X3-X1) / (X2-X1). That is, Lagrange interpolation is performed on the points (Ai, X1) and (Bi, X2) to obtain (Ci, X3), which satisfies a linear relationship, thereby achieving 2-3 backup.
[0028] At block 114 , the N third data blocks are combined into third data as 2-3 redundant backup data of the first data and the second data.
[0029] Thus, 2-3 redundant backup data are generated through Lagrange interpolation method.
[0030] In some embodiments, method 100 may further include generating a first data tag corresponding to the first data, a second data tag corresponding to the second data, and a third data tag corresponding to the third data, each data tag being generated based on the following steps: dividing the corresponding data into N data blocks, the size of each data block in the N data blocks not exceeding a predetermined size, N being an integer greater than 1, performing elliptic curve multiplication operations on the N data blocks in one-to-one correspondence with predetermined N elliptic curve base points to obtain N elliptic curve points, performing elliptic curve addition operations on the N elliptic curve points to obtain data tags, and sending the first data tag, the second data tag, the third data tag, the first quotient and the second quotient to the verification device.
[0031] Thus, the verification device can verify the 2-3 redundant backup relationship between the data based on the first and second quotients based on the 2-3 interpolation between the three data tags and the data, thereby improving the security of data verification. The data tag technology based on elliptic curves ensures the security of the data tag itself through the elliptic curve discrete logarithm problem; the data tag does not exceed the predetermined size, such as the domain width of the elliptic curve, so its size is very short and suitable for various blockchain scenarios; because the elliptic curve base point is used to encrypt the original data and randomize the data tag, the data tag will not leak any information of the original data, achieving the effect of information hiding; the data tag guarantees uniqueness, and once the data tag is on the chain, it is bound to the original data, effectively preventing malicious users from tampering with the original data.
[0032] Figure 2 1 shows a schematic flow chart of a method 100 for verifying data redundancy backup according to an embodiment of the present disclosure. For example, the method 200 may be performed by a verification party device or a Figure 3 The method 200 is performed by the electronic device 300 shown. It should be understood that the method 200 may further include additional blocks not shown and / or may omit the blocks shown, and the scope of the present disclosure is not limited in this respect.
[0033] At block 202, at a verifier device, a first data tag corresponding to the first data, a second data tag corresponding to the second data, a third data tag corresponding to the third data, a first value, and a second value are received from a data source device. The verifier device and the data source device are, for example, but not limited to, a terminal device, a server, etc.
[0034] Each data tag is generated based on the following steps: divide the corresponding data into N data blocks, the size of each data block in the N data blocks does not exceed the predetermined size, N is an integer greater than 1, perform elliptic curve multiplication operations on the N data blocks and the predetermined N elliptic curve base points one by one to obtain N elliptic curve points, and perform elliptic curve addition operations on the N elliptic curve points to obtain data tags. The predetermined size may include the domain width of the elliptic curve. For example, if the domain width of the elliptic curve is 256 bits, the size of the data block may not exceed 256 bits, for example, not more than 31 bytes. The size of each data block may be the same or different. The predetermined N elliptic curve base points may be, for example, N elliptic curve base points that are predetermined and disclosed, or N elliptic curve base points that are pre-coordinated by the data party and the verification party. Perform elliptic curve multiplication operations on the N data blocks and the predetermined N elliptic curve base points one by one. For example, the result of the digitization of the data block is subjected to an elliptic curve multiplication operation with the corresponding elliptic curve base point, that is, multiplication, to obtain the elliptic curve point corresponding to the data block. Multiplication can be achieved through elliptic curve addition operations. For example, if the base point of the elliptic curve is G, 2*G can be achieved through G+G, and 3*G can be achieved through G+G+G.
[0035] For example, the predetermined N elliptic curve base points are represented as G1, G2..., GN, and the first data block is represented as A1, A2...AN, then the first data label L1 = A1*G1+A2*G2+A3*G3 +A4*G4+...+AN*GN, where "+" represents the elliptic curve addition operation. Similarly, the second data block is represented as B1, B2...BN, the second data label L2 = B1*G1+ B2*G2+B3*G3+B4*G4+...+BN*GN, and the third data block is represented as C1, C2...CN, the third data label L3 = C1*G1+C2*G2+C3*G3+C4*G4 +...+CN*GN. The addition operation of two elliptic curve points can be obtained by calculating the point of intersection between the line connecting the two elliptic curve points and the elliptic curve that is symmetrical about the X-axis. The addition operation of multiple elliptic curve points can be split into the addition operation of two elliptic curve points, and finally an elliptic curve point is obtained, which is the data label for the target data.
[0036] In some embodiments, the third data is generated based on the following steps: determining a first random number, a second random number, and a third random number, calculating a first quotient of a difference between the third random number and the second random number and a difference between the first random number and the second random number, calculating a second quotient of a difference between the third random number and the first random number and a difference between the second random number and the first random number, for each first data block and the corresponding second data block, adding the product of the first quotient and the first data block and the product of the second quotient and the second data block to obtain a third data block, and composing N third data blocks into the third data as 2-3 redundant backup data of the first data and the second data. For details, please refer to the above and will not be repeated here.
[0037] Alternatively or additionally, in some embodiments, the first value comprises a first quotient and the second value comprises a second quotient.
[0038] At box 204, the verifier device performs an elliptic curve addition operation on the elliptic curve point obtained by performing elliptic curve addition on the first value and the first data tag and the elliptic curve point obtained by performing elliptic curve addition on the second value and the second data tag to obtain the elliptic curve point to be verified. The first value is represented by a, for example, and the second value is represented by b, for example, then the elliptic curve point to be verified is represented by a*L1+b*L2=a*(A1*G1+A2*G2+A3*G3+A4*G4+…+ AN*GN)+b*(B1*G1+B2*G2+B3*G3+B4*G4+…+ BN*GN)=(a*A1+b*B1)*G1+(a*A2+b*B2)*G2+…+ (a*AN+b*BN)*GN.
[0039] At block 206, the verification device determines whether the elliptic curve point to be verified is equal to the third data label. If the first data, the second data, and the third data satisfy 2-3 data backup, that is, the first data block, the second data block, and the third data block satisfy a*A1+b*B1=C1, a*A2+b*B2=C2, ..., a*AN+b*BN=CN, in this case, it can be determined that the elliptic curve point to be verified is (a*A1+b*B1)*G1+(a*A2+b*B2)*G2+…+ (a*AN+b*BN)*GN=C1*G1+C2*G2+…+CN*GN, that is, the third data label, so that by verifying whether the elliptic curve point to be verified is equal to the third data label, it can be determined whether the first data, the second data, and the third data satisfy the 2-3 backup relationship.
[0040] If at block 206 , the verifier device determines that the elliptic curve point to be verified is equal to the third data tag, then at block 208 , it is determined that the first data, the second data, and the third data satisfy 2-3 data redundancy backup.
[0041] If at box 206 , the verifier device determines that the elliptic curve point to be verified is not equal to the third data tag, then at box 210 , it is determined that the first data, the second data, and the third data do not satisfy the 2-3 data redundancy backup.
[0042] Thus, the 2-3 redundant backup operation is performed on the three data tags through the first value and the second value sent by the data party. If it is determined that the data tag satisfies the 2-3 redundant backup relationship, then it is determined that the data corresponding to the data tag satisfies the 2-3 redundant backup relationship, so that the 2-3 data redundant backup relationship can be verified without the need for data plaintext, thereby improving the security of data verification. In addition, the storage method of data can also be managed based on the relationship between data tags.
[0043] Figure 3 A block diagram of an electronic device 300 suitable for implementing an embodiment of the present disclosure is schematically shown. The data party device and the verification party device described above can be implemented by the electronic device 300. As shown in the figure, the device 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 302 or computer program instructions loaded from a storage unit 308 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0044] A number of components in the device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0045] The processing unit 301 performs the various methods and processes described above, such as performing methods 100-200. For example, in some embodiments, methods 100-200 may be implemented as a computer software program, which is stored in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the CPU 301, one or more operations of the methods 100-200 described above may be performed. Alternatively, in other embodiments, the CPU 301 may be configured to perform one or more actions of the methods 100-200 by any other appropriate means (e.g., by means of firmware).
[0046] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0047] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0048] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0049] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0050] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0051] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0052] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0053] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0054] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for verifying data redundancy backup, comprising: At the verification party device, a first data tag corresponding to the first data, a second data tag corresponding to the second data, a third data tag corresponding to the third data, a first value, and a second value are received from the data party device, and each data tag is generated based on the following steps: the corresponding data is divided into N data blocks, the size of each data block in the N data blocks does not exceed a predetermined size, N is an integer greater than 1, the N data blocks are subjected to elliptic curve multiplication operations corresponding to predetermined N elliptic curve base points one by one to obtain N elliptic curve points, and the N elliptic curve points are subjected to elliptic curve addition operations to obtain the data tags; Performing an elliptic curve addition operation on an elliptic curve point obtained by performing elliptic curve addition on the first value and the first data tag and an elliptic curve point obtained by performing elliptic curve addition on the second value and the second data tag to obtain an elliptic curve point to be verified; In response to determining that the to-be-verified elliptic curve point is equal to the third data tag, determining that the first data, the second data, and the third data satisfy 2-3 data redundancy backup; as well as In response to determining that the to-be-verified elliptic curve point is not equal to the third data tag, it is determined that the first data, the second data, and the third data do not satisfy 2-3 data redundancy backup.
2. The method according to claim 1, wherein the third data is generated based on the following steps: Determine a first random number, a second random number, and a third random number; Calculating a first quotient of a difference between the third random number and the second random number and a difference between the first random number and the second random number; Calculating a second quotient of a difference between the third random number and the first random number and a difference between the second random number and the first random number; For each first data block and the corresponding second data block, add the product of the first quotient and the first data block and the product of the second quotient and the second data block to obtain a third data block; as well as The N third data blocks are combined into third data as 2-3 redundant backup data of the first data and the second data. The method of claim 2 , wherein the first value comprises the first quotient and the second value comprises the second quotient.
4. A method for generating redundant backup data, comprising: At the data party device, the first data is divided into N first data blocks, the size of each of the N first data blocks does not exceed a predetermined size, and N is an integer greater than 1; Divide the second data into N second data blocks, wherein the size of each second data block in the N second data blocks does not exceed the predetermined size; Determine a first random number, a second random number, and a third random number; Calculating a first quotient of a difference between the third random number and the second random number and a difference between the first random number and the second random number; Calculating a second quotient of a difference between the third random number and the first random number and a difference between the second random number and the first random number; For each first data block and the corresponding second data block, add the product of the first quotient and the first data block and the product of the second quotient and the second data block to obtain a third data block; as well as The N third data blocks are combined into third data as 2-3 redundant backup data of the first data and the second data.
5. The method according to claim 4, further comprising: Generate a first data label corresponding to the first data, a second data label corresponding to the second data, and a third data label corresponding to the third data, each data label being generated based on the following steps: divide the corresponding data into N data blocks, the size of each data block in the N data blocks does not exceed a predetermined size, N is an integer greater than 1, perform elliptic curve multiplication operations on the N data blocks in one-to-one correspondence with predetermined N elliptic curve base points to obtain N elliptic curve points, and perform elliptic curve addition operations on the N elliptic curve points to obtain the data label; as well as The first data tag, the second data tag, the third data tag, the first quotient, and the second quotient are sent to a verifier device.
6. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform the steps of the method according to any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 5 when executed by a machine.
Citation Information
Patent Citations
Method, device and system for realizing multi-backup-data dynamic updating
CN104978239A
Methods and apparatus to facilitate distributed data backup
CN108292250A
