Two-way blockchain

Through the two-way blockchain and multi-party computing protocol, the security risk of forging data after the private key is stolen or cracked in the existing data authentication system is solved. By generating a new public key/private key pair and the combination of the two-way blockchain, it is realized It provides high-security authentication and key expiration mechanisms for data, reducing the time window for attackers to forge data.

CN112219371BActive Publication Date: 2024-08-30HRL LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201980035917.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-18
Publication Date
2024-08-30
Estimated Expiration
2039-06-18

AI Technical Summary

Technical Problem

In the existing data authentication system, after the private key is stolen or cracked, the attacker can forge data, and the key is valid for a long time, resulting in a large time window for the attacker to forge data, posing security risks.

Method used

Adopting two-way blockchain technology and multi-party computing protocol, the forward blockchain stores new data elements and the reverse blockchain stores the public key for verification, ensuring the correctness and integrity of the data, and updating each new data A new public/private key pair is generated when signing an element to ensure that the key expires, thus reducing the time window for attackers to forge data.

Benefits of technology

It effectively reduces the time window for attackers to forge data, improves the security of the data authentication system, prevents the risk of forging data after the private key is cracked, and eliminates the need to rely on a trusted third party to verify the validity of the public key.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112219371B_ABST
    Figure CN112219371B_ABST
Patent Text Reader

Abstract

A system for improving data authentication using blockchain technology and multi-party computation (MFC) is described. The system ensures the authenticity of distributed data sent from one or more servers to distributed clients, and the system initializes the MFC protocol to ensure the confidentiality of the key used to sign new data elements. Blockchain technology is used to ensure the correctness and integrity of the new data elements. A two-way blockchain is used, so that the forward blockchain stores the new data elements to be received by the distributed clients, and the reverse blockchain stores the public keys used by the distributed clients to verify the authenticity of the new data elements stored in the forward blockchain. Signing the new data element with the public key causes the previous public key to expire.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a non-provisional application of U.S. Provisional Application No. 62 / 711,355, entitled “Bidirectional Blockchain”, filed in the United States on July 27, 2018, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present invention relates to a system for improving data authentication, and more particularly, to a system for improving data authentication using blockchain technology and multi-party computing. Background Art

[0004] Secure multi-party computation (MPC) is a subfield of cryptography that aims to create methods for parties to jointly compute functions on their inputs while keeping those inputs secret. Unlike traditional cryptographic tasks, the attacker in this model controls the actual participants. A blockchain is a collection of data divided into a series of blocks. Each block is cryptographically linked to the previous block, making it impossible to edit one block without editing all subsequent blocks.

[0005] Checking the integrity of the data involves computing a cryptographic checksum on the data, and a popular approach is to apply a cryptographic hash function (such as the functions SHA128, SHA256, or SHA512) to the data. In addition to data integrity, checking the authenticity of the data also involves verifying the signature on the data using a public key signature scheme such as RSA (Rivest-Shamir-Adleman). To generate the signature, the data generator signs the data using its private key, and the recipient verifies the signature using the known public key of the data generator. A major drawback of signature-based authentication is that if an attacker steals or cracks the private key, the attacker can forge data until the key is revoked or expires.

[0006] Therefore, there is an ongoing need for a system that requires a new public / private key pair to be used each time new software is signed, so that the key is valid and the window of time during which an attacker can crack the key in order to forge data is small. Summary of the invention

[0007] The present invention relates to a system for improving data authentication, and more specifically, to a system for improving data authentication using blockchain technology and multi-party computing. The system includes: a non-transitory computer-readable medium encoded with executable instructions and one or more processors, so that when the executable instructions are executed, the one or more processors perform multiple operations. The system ensures the authenticity of a set of distributed data sent from one or more servers to distributed clients, wherein, when ensuring the authenticity of a set of distributed data, the system initializes multiple multi-party (MPC) protocols to ensure the confidentiality of the key used to sign the new data element. Blockchain technology is used to ensure the correctness and integrity of the new data element, wherein a two-way blockchain including a forward blockchain and a reverse blockchain is used, so that the forward blockchain stores the new data element to be received by the distributed client, and the reverse blockchain stores the public key used by the distributed client to verify the authenticity of the new data element stored in the forward blockchain, wherein signing the new data element with the public key causes the previous public key to expire.

[0008] On the other hand, the plurality of MPC protocols include: an Initialize protocol, wherein a list of public / private key pairs is generated, the reverse blockchain including a reverse data block is constructed, and the list of public / private key pairs including public keys and private keys and the reverse data block are stored in a distributed manner among a group of MPC servers; a GenerateBlock protocol, which allows a signature server to generate a new forward data block and distribute the new forward data block to a group of blockchain nodes, wherein the group of blockchain nodes verify the new forward data block, and if the new forward data block is verified, the group of blockchain nodes relay the new forward data block to the distributed client; and a VerifyBlock protocol, wherein the distributed client verifies the authenticity of the new forward data block using a new public key, and if the new forward data block is determined to be authentic, the distributed client stores at least one of the reverse data block and the new forward data block.

[0009] On the other hand, following the Initialize protocol, erases all generated data.

[0010] In another aspect, the forward blockchain includes data blocks, wherein each data block after a first data block in the forward blockchain includes a hash digest of a previous data block, and wherein the reverse blockchain includes data blocks, wherein each data block before a last data block in the reverse blockchain includes a hash digest of a next data block.

[0011] In another aspect, the set of MPC servers discloses the reverse data block and one or more private keys to the signing server.

[0012] Finally, the present invention also includes a computer program product and a computer-implemented method. The computer program product includes computer-readable instructions stored on a non-transitory computer-readable medium, and the computer-readable instructions can be executed by a computer having one or more processors, so that when the instructions are executed, the one or more processors perform the operations listed herein. Alternatively, the computer-implemented method includes an action of causing a computer to execute such instructions and perform the resulting operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The objects, features and advantages of the present invention will become apparent from the following detailed description of various aspects of the present invention with reference to the accompanying drawings, in which:

[0014] Figure 1 is a block diagram depicting components of a system for improving data authentication according to some embodiments of the present disclosure;

[0015] Figure 2 is an illustrative diagram of a computer program product according to some embodiments of the present disclosure;

[0016] Figure 3 is an illustrative diagram of a basic blockchain structure according to some embodiments of the present disclosure;

[0017] Figure 4 is an illustrative diagram of the basic structure of a two-way blockchain according to some embodiments of the present disclosure;

[0018] Figure 5 is an illustration of a flow chart of an Initialize protocol for data authentication according to some embodiments of the present disclosure;

[0019] Figure 6 is an illustration of a flow chart of a GenerateBlock protocol for data authentication according to some embodiments of the present disclosure;

[0020] Fig. 7A is an illustration of a flow chart of a first portion of a VerifyBlock protocol for data authentication according to some embodiments of the present disclosure; and

[0021] Figure 7B is an illustration of a flow chart of a second portion of the VerifyBlock protocol for data authentication according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0022] The present invention relates to a system for improving data authentication, and more specifically, to a system for improving data authentication using blockchain technology and multi-party computing. The following description is presented to enable a person of ordinary skill in the art to make and use the invention and incorporate it into the context of a specific application. It will be apparent to those skilled in the art that various modifications and multiple uses in different application aspects are possible, and the general principles defined herein can be applied to a wide range of aspects. Therefore, the present invention is not intended to be limited to the aspects presented, but rather covers the widest range consistent with the principles and novel features disclosed herein.

[0023] In the following detailed description, many specific details are set forth to provide a more thorough understanding of the present invention. However, it should be understood by those skilled in the art that the present invention can be practiced without being limited to these specific details. In other cases, known structures and devices are shown in block diagram form rather than in detail to avoid hindering the understanding of the present invention.

[0024] The reader is also invited to pay attention to all documents and files filed with this specification, which are open to the public for inspection together with this specification, and the contents of all these documents and files are incorporated herein by reference. All features disclosed in this specification (including any attached claims, abstracts and drawings) can be replaced by alternative features for the same, equivalent or similar purposes, unless otherwise expressly stated. Therefore, unless otherwise expressly stated, each feature disclosed is only an example of a series of equivalent or similar features.

[0025] Before describing the present invention in detail, a list of cited references is first provided. Next, a description of each major aspect of the present invention is provided. Finally, specific details of each embodiment of the present invention are provided to enable an understanding of the specific aspects.

[0026] (1) List of incorporated references

[0027] The following references are cited and incorporated throughout this application. For clarity and convenience, these references are listed here as a central resource for the reader. The following references are incorporated herein by reference as if fully set forth herein. These references are cited in this application by reference to the following corresponding reference numbers:

[0028] 1. Guy Zyskind, Oz Nathan, and Alex Pentland. Enigma: DecentralizedComputation Platform with Guaranteed Privacy. https: / / enigma.co / enigma_full.pdf. Retrieved March 30, 2018.

[0029] 2. I., Nielsen JB (2007) Scalable and Uncondiittionally SecureMultiparty Computation. In: Menezes A. (eds) Advances in Cryptology-CRYPTO 2007. CRYPTO 2007. Lecture Notes in Computer Science, vol 4622. Springer, Berlin, Heidelberg.

[0030] 3.FIPS PUB 180-4, FEDERAL INFORMATION PROCESSING STANDARDSPUBLICATION, SecureHash Standard (SHS).

[0031] 4.Internet Engineering Task Force, PKCS#1: RSA CryptographySpecifications Version2.2, Sections 7 and8.

[0032] (2) Main aspects

[0033] Various embodiments of the present invention include three "main" aspects. The first aspect is a system for improving data authentication. The system is typically in the form of computer system operating software or in the form of a "hard-coded" instruction set. The system can be incorporated into a variety of devices that provide different functions. The second main aspect is a method that is typically in the form of software for operating using a data processing system (computer). The third main aspect is a computer program product. The computer program product typically represents computer readable instructions stored on a non-transitory computer readable medium such as an optical storage device (e.g., a compact disk (CD) or a digital versatile disk (DVD)) or a magnetic storage device (e.g., a floppy disk or magnetic tape). Other non-limiting examples of computer readable media include: hard disks, read-only memories (ROMs), and flash-type memories. These aspects will be described in more detail below.

[0034] Figure 1A block diagram depicting an example of a system of the present invention (i.e., computer system 100) is provided in . The computer system 100 is configured to perform calculations, processes, operations, and / or functions associated with a program or algorithm. In one aspect, certain processes and steps discussed herein are implemented as a series of instructions (e.g., software programs) that reside in a computer-readable memory unit and are executed by one or more processors of the computer system 100. When executed, these instructions cause the computer system 100 to perform specific actions and exhibit specific behaviors, as described herein.

[0035] Computer system 100 may include an address / data bus 102 configured to transmit information. In addition, one or more data processing units (such as processor 104 (or multiple processors) are connected to address / data bus 102. Processor 104 is configured to process information and instructions. In one aspect, processor 104 is a microprocessor. Alternatively, processor 104 can be a different type of processor, such as a parallel processor, an application specific integrated circuit (ASIC), a programmable logic array (PLA), a complex programmable logic device (CPLD), or a field programmable gate array (FPGA).

[0036] The computer system 100 is configured to utilize one or more data storage units. The computer system 100 may include a volatile memory unit 106 (e.g., random access memory (“RAM”), static RAM, dynamic RAM, etc.) coupled to the address / data bus 102, wherein the volatile memory unit 106 is configured to store information and instructions for the processor 104. The computer system 100 may also include a non-volatile memory unit 108 (e.g., read-only memory (“ROM”), programmable ROM (“PROM”), erasable programmable ROM (“EPROM”), electrically erasable programmable ROM (“EEPROM”), flash memory, etc.) coupled to the address / data bus 102, wherein the non-volatile memory unit 108 is configured to store static information and instructions for the processor 104. Alternatively, the computer system 100 may execute instructions retrieved from an online data storage unit such as in “cloud” computing. In one aspect, the computer system 100 may also include one or more interfaces, such as interface 110, coupled to the address / data bus 102. The one or more interfaces are configured to enable the computer system 100 to connect to other electronic devices and computer systems. The communication interface implemented by the one or more interfaces may include wired (e.g., serial cable, modem, network adapter, etc.) and / or wireless (e.g., wireless modem, wireless network adapter, etc.) communication technology.

[0037] In one aspect, the computer system 100 may include an input device 112 coupled to the address / data bus 102, wherein the input device 112 is configured to transmit information and command selections to the processor 100. According to one aspect, the input device 112 is an alphanumeric input device (such as a keyboard), which may include alphanumeric keys and / or function keys. Alternatively, the input device 112 may be an input device other than an alphanumeric input device. In one aspect, the computer system 100 may include a cursor control device 114 coupled to the address / data bus 102, wherein the cursor control device 114 is configured to transmit user input information and / or command selections to the processor 100. In one aspect, the cursor control device 114 is implemented using a device such as a mouse, a trackball, a trackpad, an optical tracking device, or a touch screen. Nevertheless, in one aspect, the cursor control device 114 is directed and / or activated via input from the input device 112, for example, in response to using special keys and key sequence commands associated with the input device 112. In another aspect, the cursor control device 114 is configured to be directed or guided by voice commands.

[0038] In one aspect, computer system 100 may also include one or more optional computer usable data storage devices, such as storage device 116, coupled to address / data bus 102. Storage device 116 is configured to store information and / or computer executable instructions. In one aspect, storage device 116 is a storage device such as a magnetic or optical drive (e.g., a hard disk drive ("HDD"), a floppy disk, a compact disk read only memory ("CD-ROM"), a digital versatile disk ("DVD")). According to one aspect, display device 118 is coupled to address / data bus 102, wherein display device 118 is configured to display video and / or graphics. In one aspect, display device 118 may include a cathode ray tube ("CRT"), a liquid crystal display ("LCD"), a field emission display ("FED"), a plasma display, or any other display device suitable for displaying video and / or graphic images and alphanumeric characters recognizable by a user.

[0039] The computer system 100 presented herein is an example computing environment according to one aspect. However, the non-limiting example of the computer system 100 is not strictly limited to being a computer system. For example, one aspect stipulates that the computer system 100 represents a class of data processing analysis that can be used according to various aspects described herein. In addition, other computing systems can also be implemented. In fact, the spirit and scope of the present technology are not limited to any single data processing environment. Therefore, on the one hand, one or more operations of various aspects of the present technology are controlled or implemented using computer executable instructions (such as program modules) executed by a computer. In one implementation, such program modules include routines, programs, objects, components and / or data structures configured to perform specific tasks or implement specific abstract data types. In addition, one aspect provides one or more aspects of the present technology implemented by utilizing one or more distributed computing environments, for example, in this computing environment, tasks are performed by remote processing devices linked by a communication network, or for example, in this computing environment, various program modules are located in local and remote computer storage media including memory-storage devices.

[0040] Figure 2 An illustrative diagram of a computer program product (i.e., storage device) embodying the present invention is depicted in . The computer program product is depicted as a floppy disk 200 or an optical disk 202 such as a CD or DVD. However, as previously mentioned, the computer program product generally represents computer-readable instructions stored on any compatible non-transitory computer-readable medium. The term "instructions" as used in connection with the present invention generally indicates a set of operations to be performed on a computer, and may represent a fragment of an entire program or a single, separable software module. Non-limiting examples of "instructions" include computer program code (source or target code) and "hard-coded" electronic devices (i.e., computer operations encoded into a computer chip). "Instructions" are stored on any non-transitory computer-readable medium, such as in a computer's memory or on a floppy disk, CD-ROM, and flash drive. In any case, the instructions are encoded on a non-transitory computer-readable medium.

[0041] (3) Specific details of various implementations

[0042] Describes a set of protocols that ensure the authenticity of data sent from a set of one or more servers to a distributed client (e.g., an Internet of Things (IoT) device). The invention described herein uses multi-party computation (MPC) protocols to ensure the confidentiality of keys used to sign distributed data, and blockchain technology to ensure the correctness and integrity of the received data. Specifically, a two-way blockchain is utilized, where the hash sequence that links the blocks runs both forward and backward in time, making the communication process and the associated system itself more secure in doing so, thus making a significant technical improvement to the authentication system.

[0043] (3.1) Multi-Party Computation (MPC)

[0044] MPC protocols allow a group of servers to store data (referred to as secrets) in a distributed manner and perform computations on the distributed data without leaking the secrets to any individual server. Once the computation is complete, the servers can provide the computation output to one or more recipients.

[0045] During the execution of an MPC protocol, some servers may become corrupted. Server corruption is any change that may cause a server to leak confidential data or operate in a manner not specified by the protocol description. Server corruption may mean: the server is infected with malware that may allow an attacker to view all server data and cause the server to execute arbitrary code; the server has lost or deleted data that should have been retained; the server has a hardware failure that results in unexpected behavior; or the server is experiencing network connectivity issues that cause the server to be unable to send or receive data correctly.

[0046] MPC protocols are designed to be secure under the assumption that no more than a threshold number of servers are corrupted. The number of servers is denoted as n, and the corruption threshold is denoted as t. This notation is common in the MPC literature and is used throughout this disclosure. For example, as long as fewer than one-third of the servers are corrupted, the MPC protocol can claim that it is secure. In this case, the protocol requires t < n / 3. Thus, for example, if n = 7, the protocol will require t to be no greater than 2, meaning that no more than 2 out of 7 servers are corrupted. The specific values of n and t for the system according to embodiments of this disclosure will depend on the MPC protocol used.

[0047] In this disclosure, MPC sub-protocols are used to construct a two-way blockchain protocol. Any MPC protocol in the literature will meet the requirements (e.g., Reference No. 2) as long as it includes the sub-protocols described below.

[0048] 1. A secret sharing protocol that allows a dealer to distribute shares of a secret among a group of servers and possibly pass auxiliary information to the servers. Whether auxiliary information is included will depend on which sub-protocol in the literature is used.

[0049] 2. A secret reconstruction protocol that allows servers to use their shares and possibly auxiliary information to reveal the secret to the receiver.

[0050] (3.2) Blockchain

[0051] A blockchain is a collection of data divided into a series of blocks. Each block is cryptographically linked to the previous block, making it impossible to edit one block without editing all subsequent blocks. This cryptographic linking is usually achieved by including a hash digest of the previous block (or a hash digest of some portion of the previous block) in the subsequent block. Figure 3 A basic blockchain structure diagram is depicted in FIG, which shows a series of data blocks (block 1 (element 300), block 2 (element 302), and block 3 (element 304)). As shown, block 2 (element 302) includes a hash (element 306) of the previous block 1 (element 300), and block 3 (element 304) includes a hash (element 308) of the previous block 2 (element 302).

[0052] The blockchain is stored by a set of blockchain nodes. The block generation protocol will vary depending on the blockchain protocol used, but once a new block is generated, it is sent to one or more blockchain nodes. The recipients then confirm that the received block is valid, and if so, they distribute that received block to other blockchain nodes; invalid blocks are ignored. It may take some time for all blockchain nodes to receive the new block, but it is expected that eventually all blockchain nodes will agree on the contents of a given block in the chain. The method by which blockchain nodes reach consensus on the contents of a given block will vary depending on the blockchain protocol.

[0053] In most blockchain protocols, including the protocols described in this disclosure, the longest correctly formed blockchain that exists is considered the correct blockchain. It is possible to have two correctly formed blockchains of the same length. When there are two correctly formed blockchains, each with a maximum length, this event is called a fork. For example, a fork occurs if a malicious attacker creates two different blockchains by adding two different blocks to an existing blockchain, and then distributes the two blockchains to two different sets of entities. When an entity (such as a blockchain node) sees that a fork has occurred (which means that it has received two conflicting maximum length blockchain updates), the entity cannot tell which is correct. How a fork is resolved depends on the blockchain protocol.

[0054] (3.3) Bidirectional blockchain

[0055] The protocol described in this paper builds and utilizes a bidirectional blockchain. Figure 4 As shown, the bidirectional blockchain consists of two separate blockchains: a forward blockchain (element 400) in which each block (element 302, 304, and 402) after the first block (element 300) contains a hash digest of the previous block (as in a normal blockchain). The bidirectional blockchain also includes a reverse blockchain (element 404) in which each block (element 406, 408, and 410) before the last block (element 412) contains a hash digest of the next block. The two blockchains (element 400 and 404) contain the same public key (hereinafter referred to as p k ), thus linking them together to form a two-way blockchain. Figure 4 Throughout this disclosure, FB k represents the kth forward block, RB k represents the kth reverse block.

[0056] The forward blockchain (element 400) stores the actual data to be received / consumed by the client. Since the longest blockchain that exists is considered the correct blockchain, the forward blockchain (element 400) ensures that the data recipient has the correct current data. The reverse blockchain (element 404) stores the public key used by the client to verify the authenticity of the data stored in the forward blockchain (element 400). This allows the client to know that the public key is valid without referring to a trusted third party (by ensuring that the public key is part of the reverse blockchain (element 404)). Non-limiting examples of systems that can utilize the invention described herein include vehicle systems that are wirelessly connected to coordinate actions and share information. Wireless communications between connected vehicles are susceptible to security threats, which may lead to vehicle safety hazards. Any warning messages exchanged must be authenticated. In this example, the system described herein will enable the vehicle to know that the public key used to access the message (or other data) is valid (by ensuring that it is part of the reverse blockchain (element 404)) without referring to a trusted third party. For example, once authenticated, a file containing the message can be uploaded to the network.

[0057] Furthermore, since the public key remains hidden until needed, it helps prevent scenarios where a vulnerability is discovered in a public key cryptographic scheme that allows an attacker to more quickly compute the private key from the public key; since the time window during which the public key is valid and visible to a node (such as a blockchain node) is narrow, the time to compute the private key is also short. Thus, combining the forward blockchain (element 400) and the reverse blockchain (element 404) into a bidirectional blockchain provides an improvement over current technology. Specifically, the invention described herein provides a higher degree of security than can be achieved with conventional blockchain or public key infrastructure (PKI) schemes (as in the prior art).

[0058] (3.4) Entities involved in the agreement

[0059] The protocol according to an embodiment of the present disclosure involves five different entity groups, which are Figure 5 and Figure 6 . After the protocol starts (element 500), the key generator (element 502), which is a computer or server, generates a private key / public key pair (element 504) and a reverse blockchain (element 506). The key generator (element 502) then participates in a secret sharing protocol with the MPC server to share the reverse blockchain and the private key / public key pair (element 508), and distributes the first reverse block to the client (element 510).

[0060] The MPC server stores the secret key and the reverse block. The MPC server reveals the secret key and the reverse block to the signing server when appropriate. The signing server is responsible for creating new blocks and distributing them to the blockchain nodes. The blockchain node stores the reverse blockchain and the forward blockchain in full and provides them to the client when it receives a newly generated block. The client is the final consumer of the data contained in the bidirectional blockchain. The client can be any type of distributed device. For example, a client can be a mobile phone, vehicle, or airplane that receives software updates from a blockchain node. When a client or blockchain node notices that there is a fork, they report this fact to the fork server. Any entity (e.g., client or blockchain node) that notices the fork sends two conflicting blockchains to the fork server, which can then contact the MPC server and the signing server so that a new block can be published to resolve the fork by calling the protocol GenerateBlock. Since the newly generated block will create a longer blockchain than either of the current blockchains, the fork will be resolved.

[0061] Note that the protocol described herein is agnostic as to which real-world entities and organizations control the protocol entities. For example, if the data provided to the client is a software update from a manufacturer, the manufacturer may control the key generator, MPC server, signature server, blockchain node, and fork server, leaving the client under the control of the customer only. Alternatively, the manufacturer may control the key generator and fork server, outsource the roles of the MPC server and blockchain node to a distributed computing provider, and outsource the role of the signature server to a third-party software provider.

[0062] (3.5) Preliminary knowledge of cryptography

[0063] The protocol according to the embodiments of the present disclosure assumes the existence of a one-way, collision-resistant hash function H (such as SHA-256 (see reference No. 3)). The protocol also assumes the existence of a public key encryption protocol (such as RSA (see reference No. 4)) for key generation, signing, and signature verification. For the secret key s k , use s k The signature on the data D is given by σ k (D) indicates that this can be done using the public key p k to verify.

[0064] The key generator (element 502) must have a secure erase of all protocol data ( Figure 5Element 512 in ) to prevent this data from being stolen by an attacker at some point in the future. To achieve this, it is assumed that the key generator (element 502) is able to isolate a specific portion of memory and store the key and all temporary memory used to generate the key in that memory portion. At the end of the Initialize protocol (described below), the signing server can then erase the entire memory portion. This allows for efficient and secure data erasure.

[0065] (3.6) Protocol Usage

[0066] The following is an overview of how the protocol is used. The key generator (element 502) and the MPC server ( Figure 6 Each time the signing server (element 600) is to sign a new piece of data (such as a software update), the signing server (element 600), the MPC server (element 602), and the blockchain node (element 604) participate in the GenerateBlock protocol, as shown in Figure 6 Each time a blockchain node (element 604) or client receives a new block (element 626), the blockchain node or client calls the VerifyBlock protocol (element 628) to ensure that the new block is authentic. The flowcharts of these protocols are shown in Figure 5 , Figure 6 , Fig. 7A and Figure 7B , which respectively illustrate the Initialize protocol, GenerateBlock protocol and VerifyBlock protocol.

[0067] As a non-limiting example, consider the following scenario: the data provided is a software update and the client is a mobile phone. In this scenario, the MPC server and key generator are owned by the mobile phone company, the signature server is owned by some third-party software provider, and the blockchain node and fork server are operated by a cloud computing service. Before the initial software state is provided to the mobile phone, the key generator (element 502) and the MPC protocol participate in the Initialize protocol, and then distribute the initial software state and the reverse block to the mobile phone. When a software update is required, one of the signature servers with the update participates in the protocol GenerateBlock with the MPC server to generate a new forward block containing the software update, which is then distributed to the blockchain node and mobile phone. The blockchain node and mobile phone call the protocol VerifyBlock on the received data to confirm its authenticity. If any blockchain node or mobile phone detects a fork, it is reported to the fork server, which is then resolved by the fork server.

[0068] (3.7) Protocol Specifications

[0069] In this section, details of the protocol unique to the invention described herein are given. The protocol assumes that the client sends some initial data fragment u 0 (which may be an initial software state) as part of the hard-coded state of the device. 0 Defined as the initial forward block FB 0 In addition, the protocol assumes that the key generator (element 502) has the ability to convert the first reverse block RB 1 Some means of distributing it to distributed devices so that it becomes part of the hard-coded state of those distributed devices.

[0070] (3.7.1) Initialize

[0071] like Figure 5 As shown, the key generator (element 502) and the MPC server take as input a length l, which is the number of reverse blocks they wish to generate.

[0072] 1. The key generator (element 502) generates a reverse blockchain as follows.

[0073] 1.1. Generate a list of l private key / public key pairs (element 504) {(s 1 ,p 1 ),(s 2 ,p 2 ),...,(s l ,p l )}.

[0074] 1.2. By setting RB l =H(p l ) and set RB k =H(p k ,RB k+1 ) to calculate the reverse blockchain (element 506) {RB k} k=1,…,l , where k = l-1,…,1.

[0075] 2. The key generator (element 502) participates in a secret sharing protocol (element 508) to convert each p k 、s k , and RB k The shares are distributed to MPC servers, where k = 1,…,l.

[0076] 3. The key generator (element 502) converts RB 1 Distributed to the client (element 510), this will be part of the client's hard-coded initial state.

[0077] 4. The key generator (element 502) erases all data it generated during the protocol (element 512).

[0078] (3.7.2)GenerateBlock

[0079] like Figure 6 As shown, at the beginning of the protocol (element 606), the signing server (element 600) takes as input a certain piece of data u that is intended to be distributed as part of the next block.

[0080] 1. The Signature Server sends a request for a secret key to the MPC Server (element 608).

[0081] 2. The MPC server receives the request (element 610) and independently determines whether to honor the request from the signing server (element 612). (The details of how this determination is made will depend on the type of data being signed, but, for example, it may be done by having the MPC server check the credentials provided by the signing server to ensure that the signing server can be trusted to sign the data.)

[0082] 3. Any MPC server that determines to grant the request participates in a secret reconstruction protocol (element 614) with the signing server to reconstruct p w 、s w , and RB w+1 Reconstruct to the signature server, where w is such that the MPC server does not w The minimum index exposed to any entity. (However, if w=l, RB is not rebuilt w+1 . ) If any MPC server determines that the request should not be granted, the protocol terminates (element 616).

[0083] 4. If the reconstruction process is successful, the signature server defines u w =u and calculate D w =(H(FB w-1 ),H(u w ),p w ,RB w+1 )(unless w = l, in which case D w =(H(FB w-1 ),H(u w ),p w )) and σ w (D w ). The signing server determines whether the key pair and reverse block were obtained from the reconstruction protocol (element 618). If not, the protocol terminates (element 620). If the key pair and reverse block were obtained, the signing server compiles and calculates the forward block (element 622).

[0084] 5. Signature server definition FB w =(u w ,D w ,σ w (D w )) and FB w Distribute to blockchain nodes (element 624)

[0085] 6. The blockchain nodes (element 604) receive the new forward block from the signature server (element 626) and use the VerifyBlock protocol to check the new block (element 628), and if the verification passes (element 630), the blockchain nodes relay the new block to other blockchain nodes and clients to update the network (element 632). If the verification does not pass, the protocol terminates (element 634).

[0086] (3.7.3)VerifyBlock

[0087] like Fig. 7A As shown, at the beginning (element 700), an entity (hereinafter referred to as a "sender") sends an initial forward block to a recipient (e.g., a blockchain node or client) (element 702). Upon receiving a new forward block FB from the sender, w (Element 704), the receiver performs the following steps of the VerifyBlock protocol (Element 628) to verify the authenticity of the received data.

[0088] 1. If the index of the received forward block is lower than the index of the currently stored forward block (element 706), the message is rejected and the protocol is terminated (element 708).

[0089] 2. The receiving party determines whether the index of the received block is the same as the currently stored block (element 710). If the received forward block has the same index as the currently stored forward block (i.e., the lengths of the two forward blockchains are the same) but is not exactly the same as the currently stored forward block, go to step 5 to send a request for the complete blockchain to the sender (element 712), which is received by the sender (element 701).

[0090] 3. If the index of the received forward block is greater than the index of the currently stored forward block, the receiver performs a sub-step for checking data (element 714) and checks the following:

[0091] a. The format of the forward block is correct according to the specifications given in the protocols GenerateBlock and Initialize respectively (element 716).

[0092] b. Given Dw The public key p in w , σ w (D w ) is D w A valid signature on (element 718).

[0093] cD w The first element H(FB w-1 ) is a valid hash of the current forward block stored by the device (element 720).

[0094] dD w The second element H(u w ) is u w 's valid hash (element 722).

[0095] e. Let RB c Indicates the latest reverse block stored by the receiver. If w≠l, the receiver verifies D w The last two elements in (p w ,RB w+1 ) satisfies RB c =H(p w ,RB w+1 ). If w = 1, the receiver verifies D w The last element p in w Meet RB c =H(p w )(element 724). When a hash function is computed, the input is called the preimage and the output is called the hash or hash digest. More specifically, if H(A)=B, then A is the preimage of hash digest B.

[0096] 4. If all the above checks pass (element 726), the receiver moves to step 9. Otherwise, the checks fail (element 728) and the receiver moves to step 5.

[0097] 5. FB is provided in the receiving direction w The sender sends a request to the blockchain from (FB 1 ,RB 2 ) to (FB w ,RB w+1 )'s forward and reverse blocks (element 712).

[0098] 6. Once received (element 716) from the sender sending the complete blockchain to the receiver (element 703), the receiver performs a check on each pair of forward and reverse blocks received from the sender in step 3 (element 714).

[0099] 7. If all checks in step 6 succeed (ie, all checks pass (element 718), then go to step 8. Otherwise, the receiver terminates the protocol and rejects all data received from the sender (element 708).

[0100] 8. The receiver determines whether the received forward block has the same index as the currently stored forward block (element 720). If so, both the newly received blockchain and the stored forward block (or the entire blockchain, if stored) are sent to the fork server and the protocol is terminated (element 722). Otherwise, go to step 9.

[0101] 9. The receiver will receive the forward and reverse blocks (FB w ,RB w+1 ) as its current forward and reverse blocks (element 724). If the recipient is a blockchain node, it will retain all blocks received during the protocol execution. If the recipient is a client, it will delete all blocks except (FB w ,RB w+1 ) and hard-coded pairs (FB 0 ,RB 1 ) all forward and reverse blocks except .

[0102] In a system according to an embodiment of the present disclosure, each time new software is signed, a new public / private key pair is used, and the use of the new key causes the previous key to expire. Therefore, the time window in which the key is valid is small, and therefore, the time window in which an attacker must crack the key in order to forge data is small. This is achieved by storing the data in the forward blockchain and storing the public key used to verify the data in the reverse blockchain. The two blockchains together constitute a two-way blockchain. By updating the current state of the reverse blockchain, the data recipient can verify the authenticity of the key without contacting a trusted third party, and each time such an update occurs, the previous key expires. The Enigma project (see Reference No. 1) combines blockchain technology with multi-party computing. However, the combination is being used to provide publicly auditable MPC.

[0103] Vehicle manufacturers can use the invention described herein to ensure the integrity of software updates delivered to vehicles or aircraft. The MPC protocol ensures that the secret keys used to sign software updates are safe from attackers trying to steal them. Blockchain technology enables vehicles or aircraft to verify that the software is legitimate without having to communicate with a central trusted server.

[0104] Finally, although the present invention has been described according to several embodiments, it should be readily recognized by those skilled in the art that the present invention may have other applications in other contexts. It should be noted that there may be many embodiments and implementations. In addition, any "means for..." terminology is intended to elicit a device-plus-function reading of elements and claims, and any element that does not specifically use the "means for..." terminology should not be interpreted as a device-plus-function element, even if the claim otherwise includes the term "means." Moreover, although specific method steps have been stated in a particular order, these method steps may occur in any desired order and fall within the scope of the present invention.

Claims

1. A system for verifying the authenticity of data sent to a distributed client, the system comprising: A non-transitory computer-readable medium encoded with executable instructions and one or more processors, such that when the executable instructions are executed, the one or more processors perform the following operations: Ensuring the authenticity of a set of distributed data sent from one or more servers to the distributed client, wherein when ensuring the authenticity of the set of distributed data, the one or more processors perform the following operations: Initializing a plurality of multi-party computation (MPC) protocols to ensure confidentiality of keys used to sign new data elements; and utilizing blockchain technology to ensure the correctness and integrity of the new data element, wherein a bidirectional blockchain comprising a forward blockchain and a reverse blockchain is used, such that the forward blockchain stores the new data element to be received by the distributed client, and the reverse blockchain stores a public key used by the distributed client to verify the authenticity of the new data element stored in the forward blockchain, Wherein, using the public key to sign the new data element causes the previous public key to expire.

2. The system according to claim 1, wherein: The multiple MPC protocols include: Initialize protocol, wherein a list of public / private key pairs is generated, the reverse blockchain including a reverse data block is constructed, and the list of public / private key pairs including public keys and private keys and the reverse data block are stored in a distributed manner among a group of MPC servers; a GenerateBlock protocol that allows a signing server to generate a new forward data block and distribute the new forward data block to a set of blockchain nodes, wherein the set of blockchain nodes validate the new forward data block and, if the new forward data block is validated, the set of blockchain nodes relay the new forward data block to the distributed clients; and The invention relates to a VerifyBlock protocol, wherein the distributed client verifies the authenticity of the new forward data block using a new public key, and if the new forward data block is determined to be authentic, the distributed client stores at least one of the reverse data block and the new forward data block.

3. The system according to claim 2, wherein: Follows the Initialize protocol, erasing all generated data.

4. The system according to claim 1, wherein: The forward blockchain includes data blocks, wherein each data block after a first data block in the forward blockchain includes a hash digest of a previous data block, and wherein the reverse blockchain includes data blocks, wherein each data block before a last data block in the reverse blockchain includes a hash digest of a next data block.

5. The system according to claim 2, wherein: The set of MPC servers discloses the reverse data block and one or more private keys to the signing server.

6. A computer-implemented method for verifying the authenticity of data sent to a distributed client, the method comprising the following actions: causing one or more processors to execute instructions encoded on a non-transitory computer readable medium such that, when executing the instructions, the one or more processors perform the following operations: Ensuring the authenticity of a set of distributed data sent from one or more servers to the distributed clients, wherein: When ensuring the authenticity of the set of distributed data, the one or more processors perform the following operations: Initialize multiple multi-party computation (MPC) protocols to ensure the confidentiality of the keys used to sign new data elements; as well as utilizing blockchain technology to ensure the correctness and integrity of the new data element, wherein a bidirectional blockchain comprising a forward blockchain and a reverse blockchain is used, such that the forward blockchain stores the new data element to be received by the distributed client, and the reverse blockchain stores a public key used by the distributed client to verify the authenticity of the new data element stored in the forward blockchain, Wherein, using the public key to sign the new data element causes the previous public key to expire.

7. The method according to claim 6, wherein: The multiple MPC protocols include: Initialize protocol, wherein a list of public / private key pairs is generated, the reverse blockchain including a reverse data block is constructed, and the list of public / private key pairs including public keys and private keys and the reverse data block are stored in a distributed manner among a group of MPC servers; a GenerateBlock protocol that allows a signing server to generate a new forward data block and distribute the new forward data block to a set of blockchain nodes, wherein the set of blockchain nodes validate the new forward data block and, if the new forward data block is validated, the set of blockchain nodes relay the new forward data block to the distributed clients; and The invention relates to a VerifyBlock protocol, wherein the distributed client verifies the authenticity of the new forward data block using a new public key, and if the new forward data block is determined to be authentic, the distributed client stores at least one of the reverse data block and the new forward data block.

8. The method according to claim 7, wherein: Follows the Initialize protocol, erasing all generated data.

9. The method according to claim 6, wherein: The forward blockchain includes data blocks, wherein each data block after a first data block in the forward blockchain includes a hash digest of a previous data block, and wherein the reverse blockchain includes data blocks, wherein each data block before a last data block in the reverse blockchain includes a hash digest of a next data block.

10. The method according to claim 7, wherein: The set of MPC servers discloses the reverse data block and one or more private keys to the signing server.

11. A computer program product for verifying the authenticity of data sent to a distributed client, the computer program product comprising: Computer readable instructions stored on a non-transitory computer readable medium, the computer readable instructions being executable by a computer having one or more processors to cause the processor to: Ensuring the authenticity of a set of distributed data sent from one or more servers to the distributed client, wherein when ensuring the authenticity of the set of distributed data, the one or more processors perform the following operations: Initializing a plurality of multi-party computation (MPC) protocols to ensure confidentiality of keys used to sign new data elements; and utilizing blockchain technology to ensure the correctness and integrity of the new data element, wherein a bidirectional blockchain comprising a forward blockchain and a reverse blockchain is used, such that the forward blockchain stores the new data element to be received by the distributed client, and the reverse blockchain stores a public key used by the distributed client to verify the authenticity of the new data element stored in the forward blockchain, Wherein, using the public key to sign the new data element causes the previous public key to expire.

12. The computer program product according to claim 11, wherein: The multiple MPC protocols include: Initialize protocol, wherein a list of public / private key pairs is generated, the reverse blockchain including a reverse data block is constructed, and the list of public / private key pairs including public keys and private keys and the reverse data block are stored in a distributed manner among a group of MPC servers; a GenerateBlock protocol that allows a signing server to generate a new forward data block and distribute the new forward data block to a set of blockchain nodes, wherein the set of blockchain nodes validate the new forward data block and, if the new forward data block is validated, the set of blockchain nodes relay the new forward data block to the distributed clients; and The invention relates to a VerifyBlock protocol, wherein the distributed client verifies the authenticity of the new forward data block using a new public key, and if the new forward data block is determined to be authentic, the distributed client stores at least one of the reverse data block and the new forward data block.

13. The computer program product of claim 12, wherein: Follows the Initialize protocol, erasing all generated data.

14. The computer program product of claim 11, wherein: The forward blockchain includes data blocks, wherein each data block after a first data block in the forward blockchain includes a hash digest of a previous data block, and wherein the reverse blockchain includes data blocks, wherein each data block before a last data block in the reverse blockchain includes a hash digest of a next data block.

15. The computer program product of claim 12, wherein: The set of MPC servers discloses the reverse data block and one or more private keys to the signing server.

Citation Information

Patent Citations

  • Processing device and method of bidirectional forwarding detection (BFD) messages

    CN101800677A

  • Block chain whole network splitting method and system

    CN107528886A