Blockchain-based information processing method and device

By adopting multi-subject group signature and encryption technology in the blockchain system, the data access risk caused by the authentication center failure or attack in traditional blockchain systems is solved, and the security and credibility of data are improved.

CN112906061BActive Publication Date: 2024-12-06INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110173354.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-08
Publication Date
2024-12-06
Estimated Expiration
2041-02-08

AI Technical Summary

Technical Problem

When a certification center (CA) fails or cyber attacks in traditional blockchain systems, data access is affected, increasing the risk of confidential information leakage.

Method used

The data sharing and access method of multi-subject group signature is adopted, and the storage address of transaction data is obtained is used to encrypt it, and the cipher text is signed using the associated identification information of multiple transaction parties, and the transaction data packet is generated and broadcasted to the blockchain. Avoid third-party notary participation.

Benefits of technology

It improves the credibility of transaction information, reduces the risk of data leakage caused by the participation of third-party notary, and is suitable for a decentralized distributed environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112906061B_ABST
    Figure CN112906061B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method based on blockchain, which can be applied to the fields of financial technology and other technical fields. The method includes: obtaining the storage address of transaction data, wherein the transaction data is completed by multiple transaction parties; encrypting the storage address to obtain a ciphertext involving the transaction data; obtaining associated identification information for each of the multiple transaction parties; signing the ciphertext using the acquired associated identification information to obtain a signature involving the transaction data; generating a transaction data message based on the acquired associated identification information, signature and ciphertext; and broadcasting the transaction data message to the blockchain. The present disclosure also provides a data processing device based on blockchain, an electronic device, a computer-readable storage medium and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of financial technology and other technical fields, and in particular to a blockchain-based information processing method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] Traditional blockchain systems use a certification authority (CA) to issue digital certificates to legitimate users. Before users access transaction data, they need to provide a digital certificate for identity verification to ensure the security and confidentiality of data sharing. This solution is similar to identity authentication using a certification authority (CA) as a third-party notary.

[0003] In the process of implementing the inventive concept of the present disclosure, the inventors discovered that in a traditional blockchain system, when a certification center (CA) experiences a system failure or is damaged by a network attack, data access will be affected, and may even increase the risk of confidential information leakage. Summary of the invention

[0004] The first aspect of the present disclosure provides an information processing method based on blockchain, including: obtaining a storage address of transaction data, wherein the transaction data is completed by multiple transaction parties; encrypting the storage address to obtain a ciphertext related to the transaction data; for each of the multiple transaction parties, obtaining associated identification information; using the obtained associated identification information, signing the ciphertext to obtain a signature related to the transaction data; generating a transaction data message based on the obtained associated identification information, the signature and the ciphertext; and broadcasting the transaction data message to the blockchain.

[0005] Optionally, the using the acquired association identification information to sign the ciphertext includes obtaining signature data by the following formula: ;in, The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the obtained signature data, function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met: ; Obtained by the following formula: ;in, An integer randomly picked by the user.

[0006] Optionally, the function Includes: hash function.

[0007] Optionally, Includes the username and / or user address of the transaction party.

[0008] Optionally, the transaction data message includes: a security parameter field, used to characterize the security of the transaction data message.

[0009] Optionally, the associated identification information includes identification information simultaneously associated with a user name and a node name, wherein the user name includes a user name of a transaction party, and the node name includes a name of a blockchain node used by the transaction party.

[0010] The second aspect of the present disclosure provides another information processing method based on blockchain, including: obtaining transaction data, wherein the transaction data is completed by multiple transaction parties; encrypting the transaction data to obtain transaction data ciphertext; for each of the multiple transaction parties, obtaining associated identification information; using the obtained associated identification information, signing the transaction data ciphertext to obtain a transaction data signature; generating a transaction data message based on the obtained associated identification information, the transaction data signature and the transaction data ciphertext; and broadcasting the transaction data message to the blockchain.

[0011] The third aspect of the present disclosure provides another information processing method based on blockchain, including: obtaining a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; based on the transaction data message, obtaining the associated identification information of each of the multiple transaction parties, the ciphertext of the storage address of the transaction data and the actual signature for the ciphertext; based on the obtained associated identification information and the ciphertext, verifying the signature; in response to the representation that the verification is passed, decrypting the ciphertext to obtain the plaintext of the storage address; and accessing the transaction data based on the plaintext of the storage address.

[0012] Optionally, the signature is verified based on the acquired associated identification information and the ciphertext, including: obtaining an expected signature for the ciphertext based on the acquired associated identification information and the ciphertext; comparing whether the expected signature is consistent with the actual signature; and in response to the expected signature being consistent with the actual signature, indicating that the verification has passed.

[0013] The fourth aspect of the present disclosure provides another information processing method based on blockchain, including: obtaining a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; based on the transaction data message, obtaining the associated identification information of each of the multiple transaction parties, the ciphertext of the transaction data and the actual signature for the ciphertext; based on the obtained associated identification information and the ciphertext, verifying the signature; and in response to the representation that the verification is passed, decrypting the ciphertext to obtain the plaintext of the transaction data and access it.

[0014] The fifth aspect of the present disclosure provides an information processing device based on blockchain, including: a first acquisition module, used to obtain a storage address of transaction data, wherein the transaction data is completed by multiple transaction parties; a first encryption module, used to encrypt the storage address to obtain a ciphertext involving the transaction data; a second acquisition module, used to obtain associated identification information for each of the multiple transaction parties; a first signature module, used to sign the ciphertext using the acquired associated identification information to obtain a signature involving the transaction data; a first generation module, used to generate a transaction data message based on the acquired associated identification information, the signature and the ciphertext; and a first broadcast module, used to broadcast the transaction data message to the blockchain.

[0015] The sixth aspect of the present disclosure provides an information processing device based on blockchain, including: a third acquisition module, used to acquire transaction data, wherein the transaction data is completed by multiple transaction parties; a second encryption module, used to encrypt the transaction data to obtain transaction data ciphertext; a fourth acquisition module, used to acquire associated identification information for each of the multiple transaction parties; a second signature module, used to sign the transaction data ciphertext using the acquired associated identification information to obtain a transaction data signature; a second generation module, used to generate a transaction data message based on the acquired associated identification information, the transaction data signature and the transaction data ciphertext; and a second broadcast module, used to broadcast the transaction data message to the blockchain.

[0016] The seventh aspect of the present disclosure provides an information processing device based on blockchain, including: a fifth acquisition module, used to obtain a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; a sixth acquisition module, used to obtain, based on the transaction data message, the associated identification information of each of the multiple transaction parties, the ciphertext of the storage address of the transaction data, and the actual signature for the ciphertext; a first signature verification module, used to verify the signature based on the acquired associated identification information and the ciphertext; a first decryption module, used to decrypt the ciphertext in response to the representation that the signature verification is passed to obtain the plaintext of the storage address; and a first access module, used to access the transaction data based on the plaintext of the storage address.

[0017] The eighth aspect of the present disclosure provides an information processing device based on blockchain, including: a seventh acquisition module, used to obtain a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; an eighth acquisition module, used to obtain, based on the transaction data message, the associated identification information of each of the multiple transaction parties, the ciphertext of the transaction data and the actual signature for the ciphertext; a second signature verification module, used to verify the signature based on the acquired associated identification information and the ciphertext; a second decryption module, used to decrypt the ciphertext in response to the representation verification passing to obtain the plaintext of the transaction data; and a second access module, used to access the plaintext of the transaction data.

[0018] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the embodiments of the present disclosure.

[0019] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method described in the embodiments of the present disclosure when executed.

[0020] Another aspect of the present disclosure provides a computer program product, including a computer program, which implements the method according to the embodiment of the present disclosure when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] For a more complete understanding of the present disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, in which:

[0022] Figure 1 The system architecture of the method and device for data processing based on blockchain according to an embodiment of the present disclosure is schematically shown;

[0023] Figure 2 The flowchart of the data processing method based on blockchain according to an embodiment of the present disclosure is schematically shown;

[0024] Figure 3 A schematic diagram schematically illustrates the principle of blockchain data sharing with multi-subject signatures according to an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram schematically shows a transaction data message format according to an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of a blockchain consensus node according to an embodiment of the present disclosure is schematically shown;

[0027] Figure 6 A flowchart of a blockchain-based data processing method according to another embodiment of the present disclosure is schematically shown;

[0028] Figure 7 The encryption flow chart of the blockchain data transmission system with multi-subject signature according to an embodiment of the present disclosure is schematically shown;

[0029] Figure 8 A flowchart of a blockchain-based data access method according to an embodiment of the present disclosure is schematically shown;

[0030] Fig. 9 A flowchart of a blockchain-based data access method according to another embodiment of the present disclosure is schematically shown;

[0031] Fig.10 The decryption flow chart of the blockchain data transmission system with multi-subject signature according to an embodiment of the present disclosure is schematically shown;

[0032] Fig.11 The data processing flow chart of the blockchain data transmission system with multi-subject signature according to an embodiment of the present disclosure is schematically shown;

[0033] Fig.12 A block diagram of a blockchain-based data processing device according to an embodiment of the present disclosure is schematically shown;

[0034] Fig.13 A block diagram of a blockchain-based data processing device according to another embodiment of the present disclosure is schematically shown;

[0035] Fig.14 A block diagram of a blockchain-based data access device according to an embodiment of the present disclosure is schematically shown;

[0036] Fig.15A block diagram schematically shows a data access device based on blockchain according to another embodiment of the present disclosure; and

[0037] Fig.16 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0038] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0039] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0040] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0041] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0042] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or in combination with an instruction execution system.

[0043] It should be understood that blockchain technology is a decentralized consensus accounting technology that uses group consensus to ensure transaction consistency. Group consensus is a mechanism that uses multiple nodes to jointly record and vote. Specifically, the blockchain network is composed of several consensus accounting nodes. Each accounting node stores the full amount of ledger data and votes independently, and finally gathers to form a group decision. Therefore, malicious modifications to the full amount of ledger by a few nodes cannot affect the results of the group vote. This determines that the blockchain system has the characteristics of being tamper-proof, safe and reliable.

[0044] The blockchain network can have multiple participants and their consensus nodes that participate in accounting. The generated transaction data is stored in each consensus accounting node, and users can access the data by calling smart contracts. Due to the confidentiality, privacy and sensitivity of transaction data, it is not suitable to be disclosed to all visitors. For example, private item transactions, exclusive information sharing, asset transfers, etc. involve multiple relatively closed authorized entities (i.e., multiple transaction parties), so multiple transaction parties are required to verify and authorize the identity of the visitor to ensure that legitimate users can safely access confidential information.

[0045] In the process of implementing the inventive concept of the present disclosure, the inventors discovered that in a traditional blockchain system, when a certification center (CA) experiences a system failure or is damaged by a network attack, data access will be affected, and may even increase the risk of confidential information leakage.

[0046] In view of this, the disclosed embodiment provides an improved data processing solution based on blockchain. In this solution, the traditional blockchain system uses the authentication center to issue digital certificates to legitimate users and the user needs to provide digital certificates for identity verification when accessing transaction data, but adopts a data sharing and access method with multi-subject group signatures. This method is more suitable for application in a decentralized distributed environment. Compared with previous methods, this method can realize the ciphertext verification of transaction information signed by the subject group without the participation of a third-party notary, which can improve the credibility of transaction information.

[0047] Specifically, the embodiments of the present disclosure provide a data processing method based on blockchain and a data processing device based on blockchain to which the method can be applied. The method includes: obtaining a storage address of transaction data, wherein the transaction data is completed by multiple transaction parties; encrypting the storage address to obtain a ciphertext involving the transaction data; obtaining associated identification information for each of the multiple transaction parties; signing the ciphertext using the acquired associated identification information to obtain a signature involving the transaction data; generating a transaction data message based on the acquired associated identification information, signature and ciphertext; and broadcasting the transaction data message to the blockchain.

[0048] Figure 1 The system architecture of the data processing method and device based on blockchain according to the embodiment of the present disclosure is schematically shown. It should be noted that Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0049] like Figure 1 As shown, the block system 100 includes: a blockchain infrastructure cloud 101, a blockchain consensus accounting node 102 (referred to as the consensus accounting node) and a blockchain authorization center 103 (referred to as the authorization center). It should be understood that in the blockchain, different transaction participants (i.e., different transaction parties) can participate in transactions and record transaction data based on different consensus accounting nodes.

[0050] Blockchain Infrastructure Cloud 101 is responsible for allocating network resources, computing resources, and storage resources, as well as creating blockchain networking services based on the user's networking resource requests. It supports selecting blockchain product images, configuring virtual node resources, and creating blockchain networks based on the user's blockchain product standards.

[0051] In the blockchain infrastructure cloud 101, the consensus accounting node 102 is a virtual computing node and a basic component of the blockchain network. The blockchain network has several blockchain consensus accounting nodes. The consensus accounting node 102 is mainly responsible for blockchain transaction access and processing, providing smart contract execution, transaction consensus and transaction accounting; it also provides data encryption, decryption, identity authentication and other security services for transaction data.

[0052] The transaction party is the user who participates in the blockchain consensus transaction. Figure 1 As shown, transaction parties A, B, C, D, and E can access the blockchain network through different blockchain consensus accounting nodes, execute smart contracts on the blockchain network to conduct transactions, generate transaction data, have the authority to encrypt, authorize, and share transaction data, and can act as senders of transaction data to transmit and share transaction information with recipients.

[0053] The blockchain authorization center 103 can provide secure encryption algorithms and public parameters.

[0054] It should be noted that the blockchain-based data processing method provided by the embodiment of the present disclosure adopts a blockchain data transmission method with multi-subject (i.e., multiple transaction parties) identity signatures. The data sender can be composed of multiple subjects, who are responsible for the authenticity of the transaction data and the reliability of the access object. First, multiple subjects (assuming A, ) signs the transaction data object (it should be understood that the transaction data object can be the storage address of the transaction data or the transaction data itself); then, determine the recipient of the transaction data (assuming it is B). A can encrypt the data with B's identity ID, and then package it into a message and transmit it to the blockchain. B can obtain the encrypted data through the blockchain, and then decrypt the data with the private key, and then use A's public key for batch verification, and finally achieve data access.

[0055] It should be noted that in the embodiments of the present disclosure, a unique global identifier GID can be configured for each block node user in the blockchain network. GID can be formally expressed as:

[0056]

[0057] It should be understood that GID is the identity ID of blockchain nodes and users in the blockchain network. It can be synchronized to each consensus accounting node through the blockchain network and stored in the block. The blockchain network provides smart contracts and query services for visitors.

[0058] Figure 2 The flowchart of the blockchain-based data processing method according to an embodiment of the present disclosure is schematically shown.

[0059] like Figure 2 As shown, the method may include operations S210 to S260.

[0060] In operation S210, a storage address of transaction data is obtained.

[0061] Among them, the transaction data is completed by multiple transaction parties.

[0062] In operation S220, the storage address is encrypted to obtain a ciphertext related to the transaction data.

[0063] In operation S230 , associated identification information is obtained for each of the plurality of transaction parties.

[0064] In operation S240, the ciphertext is signed using the acquired association identification information to obtain a signature related to the transaction data.

[0065] In operation S250, a transaction data message is generated based on the acquired association identification information, signature, and ciphertext.

[0066] In operation S260, the transaction data message is broadcast to the blockchain.

[0067] In one embodiment of the present disclosure, only the storage address of the transaction data may be encrypted instead of directly encrypting the transaction data itself. Thus, when sharing data, only the encrypted storage address may be shared in the blockchain without sharing the encrypted transaction data, thereby saving the storage resources of the blockchain.

[0068] In the disclosed embodiment, each transaction party may use its global identifier GID in the blockchain as associated identification information to sign the ciphertext of the storage address of the transaction data.

[0069] In the disclosed embodiment, after completing data encryption and data signing, a transaction data message can be generated based on the obtained ciphertext, signature and associated identification information of all transaction parties that completed the transaction data, and broadcast to the blockchain so that the recipient can access it normally.

[0070] It should be noted that in the disclosed embodiments, the above ciphertext, signature and associated identification information can be used as separate fields in the transaction data message. In addition, in addition to the above fields, the transaction data message may also include but is not limited to a security parameter field and a verification identification field. Among them, when accessing the transaction data, the recipient can perform data signature verification based on the associated identification information field in the transaction data message, and can verify the legitimacy of the message based on the security parameter field, and can verify the integrity of the transaction data based on the verification identification field.

[0071] Through the embodiments of the present disclosure, in a blockchain network, by implementing signatures through group decision-making of multiple transaction parties (i.e., multiple subjects signing), it is possible to avoid the high risk of data leakage caused by using a blockchain CA for signature verification or other third-party platforms for signature verification, while avoiding affecting data access.

[0072] It should be noted that in the embodiment of the present disclosure, in operation S220, the storage address of the transaction data may be encrypted using the public key of the recipient.

[0073] For example, transaction data provider A can store transaction data in access address Waddr. Then, Encrypt(Waddr, kd(B)) is executed through the corresponding consensus accounting node, and the access address Waddr is encrypted with the public key of transaction data receiver B to generate ciphertext C; then, Sign(C, Gid(B)) is executed to sign C with the GID of transaction data receiver B to generate signature information S (referred to as signature S); finally, C and S are packaged into a transaction data message through the consensus accounting node and broadcast to the blockchain network.

[0074] Specifically, the model elements of the encryption algorithm Encrypt(Waddr, kd(B)) are defined as:

[0075]

[0076] Define the Encrypt function as:

[0077]

[0078] in, , represents the storage address of transaction data M, is the public key of the transaction data recipient B, , which represents the product of two large prime numbers p and q. It is the security parameter pre-set by the transaction data recipient B. p and q are private parameters and are not disclosed to the public. is B's public key.

[0079] As an optional embodiment, using the acquired association identification information to sign the ciphertext may include obtaining signature data through the following formula:

[0080] Formula (1)

[0081] In formula (1), The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the obtained signature data (signature for short), function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met (i.e. and Intermediate substances):

[0082] ;

[0083] Obtained by the following formula:

[0084] ;

[0085] in, A randomly picked integer for the user, which could be, for example, a username.

[0086] It should be noted that in the embodiments of the present disclosure, and can be two large prime numbers, It can also be a large prime number.

[0087] As an optional embodiment, the function in the above formula It may include: a hash function. This can prevent multiplication attacks on GIDs between different users. For example, if the user names of two transaction parties are both "Xiao Ming", the embodiment of the present disclosure can prevent multiplication attacks on the GIDs between the two transaction parties.

[0088] As an optional embodiment, in the above formula This may include the usernames and / or user addresses of the transacting parties.

[0089] As an optional embodiment, the transaction data message may include: a security parameter field, which is used to characterize the security of the transaction data message.

[0090] It should be understood that in a blockchain network, a pre-set security parameter field can be used to verify whether a message is a message that is allowed to be legally transmitted in the blockchain network.

[0091] As an optional embodiment, the above-mentioned associated identification information may include identification information associated with both the user name and the node name. The user name may include the user name of the transaction party, and the node name may include the name of the blockchain node used by the transaction party.

[0092] Figure 3 A schematic diagram schematically illustrates the principle of blockchain data sharing with multi-subject signatures according to an embodiment of the present disclosure.

[0093] like Figure 3 As shown, the transaction data sender A may include transaction participants 301, 302 and 303 (transaction participants are also called transaction parties), and the transaction data receiver B may include at least one of receivers 304, 305 and 306. The blockchain network 307 includes consensus accounting nodes VP0 to VP5. Transaction participants 301, 302 and 303 access the blockchain network 307 through consensus accounting nodes VP0 to VP2 in turn; receivers 304, 305 and 306 access the blockchain network 307 through consensus accounting nodes VP3 to VP5 in turn.

[0094] The transaction data sender A can store the transaction data in the access address Waddr. Then, the corresponding consensus accounting node executes Encrypt (Waddr, kd (B)), encrypts the access address Waddr with the public key of the transaction data receiver B, and generates the ciphertext C; then, by executing Sign (C, Gid (B)), C is signed with the GID of the transaction data receiver B to generate the signature information S (referred to as signature S); finally, the consensus accounting node packages C and S into a transaction data message and broadcasts it to the blockchain network.

[0095] For example, the RSA encryption algorithm can be introduced as the basis of the identity signature algorithm, and the security parameters are input. , then the multi-party identity signature algorithm can be formally expressed as:

[0096] Formula (1)

[0097] In formula (1), The ciphertext representing the storage address of transaction data M, Represents the global identification information of n transaction parties, Represents the obtained signature data (signature for short), function is a one-way function, Represents two large prime numbers and The product of is a large prime number, and and The following conditions are met (i.e. and Intermediate substances):

[0098] Formula (2)

[0099] It can be obtained by the following formula:

[0100] ;

[0101] in, A randomly picked integer for the user, which could be, for example, a username.

[0102] Complete multiple trading parties of transaction data The modulus of the GID, that is The module can be expressed as:

[0103]

[0104] According to Euler's extension theorem, g is easy to calculate when n and e are known.

[0105] In addition, in the embodiment of the present disclosure, the encryption function Encrypt(Waddr, kd(B)) can be used to encrypt the storage address of the transaction data, implement the encryption operation based on the storage address, and generate the corresponding ciphertext C. Specifically, the model element of the encryption algorithm Encrypt(Waddr, kd(B)) is defined as:

[0106]

[0107] Define the Encrypt function as:

[0108]

[0109] in, , represents the storage address of transaction data M, is the public key of the transaction data recipient B, , which represents the product of two large prime numbers p and q. It is the security parameter pre-set by the transaction data recipient B. p and q are private parameters and are not disclosed to the public. is B's public key.

[0110] In addition, in the embodiment of the present disclosure, a signature function can be used Perform identity signature to enable multiple transaction parties to sign the ciphertext C of the storage address of the transaction data and generate a signature S. Users can randomly select an integer And calculate:

[0111]

[0112] Substituting the above formula into formula (1), the identity encryption algorithm becomes formula (3):

[0113] Formula (3)

[0114] According to formula (2), e and Coprime, formula (3) can be further simplified to formula (4):

[0115] Formula (4)

[0116] The function f is a one-way function. In the embodiment of the present disclosure, the function f adopts a hash function, which can prevent a "multiplicative relationship attack" between different user GIDs.

[0117] In addition, in the embodiment of the present disclosure, Indicates a loosely coupled transaction data message generated for transaction data, which formally satisfies:

[0118]

[0119] in, Indicates the identity identifiers GID of multiple transaction parties involved in the transaction data, S indicates the user identity signature (referred to as signature) for the ciphertext of the storage address Waddr of the transaction data, C indicates the ciphertext of the storage address Waddr of the transaction data, params is the security parameter, and chksum is the checksum bit. Among them, params can be used to verify whether the transaction data message is a legal message; chksum can be used to verify whether the transaction data message is a complete message. The transaction data message format can be as follows Figure 4 The format shown.

[0120] The transaction data receiver B, that is, the visitor of the blockchain consensus transaction data, is also the target user for the transaction data provider A to deliver the transaction data. The transaction data receiver B can obtain the transaction data message through the consensus accounting node VP3. After obtaining the transaction data message, first, the signature verification function ChkSign (S) can be executed to verify the signature of the transaction data sender A; then, if the signature verification passes, the decryption function Decrypt (C) is executed to convert the ciphertext C of the storage address of the transaction data into the corresponding plaintext; then, the identity authentication function ChkIdent (C) is executed to verify whether the transaction data receiver B has the transaction data access right; finally, in response to passing the access right verification, the transaction data M can be obtained through the data address.

[0121] It should be noted that in the embodiment of the present disclosure, the signature verification function ChkSign(S) can be as shown in formula (1). This function is used to check whether S is the digital identity signature of all transaction parties involved in the accessed transaction data. The verification method is to parse the GID of all transaction parties from the transaction data message and substitute it into the following formula (i.e., formula (1)):

[0122] Formula (1)

[0123] In formula (1), The ciphertext representing the storage address of transaction data M, Represents the global identification information of n transaction parties, Represents the obtained signature data (signature for short), function is a one-way function, Represents two large prime numbers and The product of is a large prime number, and and The following conditions are met (i.e. and Intermediate substances):

[0124] Formula (2)

[0125] It can be obtained by the following formula:

[0126] ;

[0127] in, A randomly picked integer for the user, which could be, for example, a username.

[0128] It should be understood that in the embodiment of the present disclosure, if the S calculated by the signature verification function ChkSign(S) is consistent with the S obtained by parsing the signature field contained in the transaction data message, it means that the signature is correct and the signature verification is passed. Otherwise, the signature verification fails.

[0129] Specifically, during the signature verification process, multiple parties to the transaction data The modulus of the GID, that is The module can be expressed as:

[0130]

[0131] According to Euler's extension theorem, g is easy to calculate when n and e are known.

[0132] User randomly picks an integer And calculate:

[0133]

[0134] Substituting the above formula into formula (1), the signature verification algorithm becomes formula (3):

[0135] Formula (3)

[0136] According to formula (2), e and Coprime, formula (3) can be further simplified to formula (4):

[0137] Formula (4)

[0138] In addition, in the disclosed embodiment, the ciphertext C can be decrypted by the decryption function Decrypt(C) to generate the plaintext Waddr of the storage address of the transaction data, which is defined as:

[0139]

[0140] in, , represents the ciphertext of the storage address of transaction data M, is the private key of the transaction data recipient B, is the product of two large prime numbers p and q. The security parameters pre-set for the transaction data recipient B are all private parameters.

[0141] Consensus accounting node 102: It is the consensus accounting node of the blockchain network, stores the transaction world state, identity encrypted data message information, receives instructions from transaction senders and transaction receivers, and provides data information routing, information sending and receiving and other services.

[0142] In the disclosed embodiment, the transaction participants are the transaction parties that execute the blockchain consensus transaction. Transaction participant 301 can transmit transaction data to transaction participant 302 through the blockchain network. The transaction participants execute smart contract transactions on the blockchain network, generate transaction data, have the authority to encrypt, authorize and share information of the transaction data, and can act as the sender of transaction data to transmit and share the transaction data with the receiver of transaction data.

[0143] Blockchain network 307 is a decentralized network built using consensus accounting technology. The blockchain network consists of consensus / accounting nodes, authentication nodes, etc. This technology uses group consensus to ensure transaction consistency. Ledger data is stored in consensus accounting nodes, and transaction data has the characteristics of decentralization, immutability, security and reliability.

[0144] like Figure 5 As shown, in one embodiment, the blockchain consensus node may include: a main control unit 501, an initialization unit 502, a data processing unit 503, and a transaction data transceiver 504.

[0145] The main control unit 501 is responsible for data transmission and overall calling of each processing unit.

[0146] Initialization unit 502 is used to execute GlobalSetup() algorithm to initialize variables and input random security parameters , output global security parameters params, namely:

[0147]

[0148] The data processing unit 503 is responsible for executing the Encrypt() algorithm to encrypt the storage address of the transaction data provided by the transaction party, executing the Decrypt() algorithm to decrypt the storage address of the transaction data, executing the Sign() algorithm to sign the ciphertext of the storage address of the transaction data, and executing ChkSign() to implement signature verification. At the same time, it can also receive identity authorization applications and identity authorization. The data processing unit 503 may include a transaction data encryption module 5031, an identity information signature module 5032, a transaction data decryption module 5033, an identity authority verification module 5034, and an identity authorization module 5035. Each module is described as follows.

[0149] The transaction data encryption module 5031 is responsible for encrypting the storage address of the transaction data. The Encrypt() algorithm is executed to encrypt the data and implement the RSA encryption operation based on the storage address. The model element of the encryption algorithm is defined as:

[0150]

[0151] Define the Encrypt function as:

[0152]

[0153] in, , represents the storage address of transaction data M, is the public key of the transaction data recipient B, , which represents the product of two large prime numbers p and q. It is the security parameter pre-set by the transaction data recipient B. p and q are private parameters and are not disclosed to the public. is B's public key.

[0154] The identity information signature module 5032 is used to sign the ciphertext of the storage address of the transaction data. The user can randomly select an integer. , and calculate:

[0155]

[0156] Substituting the above formula into formula (1), the signature algorithm becomes formula (4):

[0157] Formula (4)

[0158] function is a one-way function. In the embodiment of the present disclosure, the function A hash function may be used.

[0159] The transaction data decryption module 5033 is used to implement the RSA decryption operation based on the storage address. The decryption algorithm Decrypt() is defined as:

[0160]

[0161] in, The ciphertext representing the storage address of the transaction data, is the private key of the transaction data recipient B, Indicates that n is the product of two large prime numbers. The security parameters pre-set for the transaction data recipient B are all private parameters.

[0162] The identity authority verification module 5034 is used to check whether the above signature is the digital identity signature of all transaction parties. The verification method is to substitute the identity GID of all transaction parties into the following formula (Formula 1):

[0163] Formula (1)

[0164] In formula (1), The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the obtained signature data (signature for short), function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met (i.e. and Intermediate substances):

[0165] ;

[0166] Obtained by the following formula:

[0167] ;

[0168] in, ,and A randomly picked integer for the user, which could be, for example, a username.

[0169] The above formula Substituting into formula (1), the signature algorithm becomes formula (3):

[0170] Formula (3)

[0171] e and Coprime, formula (3) can be further simplified to the following formula (4):

[0172] Formula (4)

[0173] The identity authorization module 5035 is used to authorize the data access request of the transaction data receiver B.

[0174] The transaction data transceiver 504 is used to receive a transaction data request message submitted by a transaction data requester, and send relevant information of the transaction data to the transaction data requester.

[0175] The disclosed embodiment also provides another data processing method based on blockchain.

[0176] Figure 6 The figure schematically shows a flowchart of a blockchain-based data processing method according to another embodiment of the present disclosure.

[0177] like Figure 6 As shown, the method may include operations S610 to S660.

[0178] In operation S610, transaction data is acquired.

[0179] Among them, the transaction data is completed by multiple transaction parties.

[0180] In operation S620, the transaction data is encrypted to obtain a transaction data ciphertext.

[0181] In operation S630, associated identification information is obtained for each of the plurality of transaction parties.

[0182] In operation S640, the transaction data ciphertext is signed using the acquired association identification information to obtain a transaction data signature.

[0183] In operation S650, a transaction data message is generated based on the acquired association identification information, the transaction data signature, and the transaction data ciphertext.

[0184] In operation S660, the transaction data message is broadcast to the blockchain.

[0185] In one embodiment of the present disclosure, the transaction data itself may be directly encrypted instead of encrypting the storage address of the transaction data, so that when data is shared, the encrypted transaction data may be shared in the blockchain instead of sharing the storage address of the encrypted transaction data, which may waste the storage resources of the blockchain.

[0186] In the disclosed embodiment, each transaction party may use its global identifier GID in the blockchain as associated identification information to sign the ciphertext of the transaction data.

[0187] In the disclosed embodiment, after completing data encryption and data signing, a transaction data message can be generated based on the obtained ciphertext, signature and associated identification information of all transaction parties that completed the transaction data, and broadcast to the blockchain so that the recipient can access it normally.

[0188] It should be noted that in the disclosed embodiments, the above ciphertext, signature and associated identification information can be used as separate fields in the transaction data message. In addition, in addition to the above fields, the transaction data message may also include but is not limited to a security parameter field and a verification identification field. Among them, when accessing the transaction data, the recipient can perform data signature verification based on the associated identification information field in the transaction data message, and can verify the legitimacy of the message based on the security parameter field, and can verify the integrity of the transaction data based on the verification identification field.

[0189] Through the embodiments of the present disclosure, in a blockchain network, by implementing signatures through group decision-making of multiple transaction parties (i.e., multiple subjects signing), it is possible to avoid the high risk of data leakage caused by using a blockchain CA for signature verification or other third-party platforms for signature verification, while avoiding affecting data access.

[0190] like Figure 7 As shown, the encryption process may include the following operations.

[0191] In operation S710, the authorization center (CA) in the blockchain network starts the initialization program GlobalSetup(), executes the GlobalSetup() algorithm to initialize variables, and inputs random security parameters , output global security parameters params, namely:

[0192]

[0193] in, Represents random security parameters, and params represents global security parameters. Params can be shared with other consensus accounting nodes through the blockchain network to generate legal messages.

[0194] In operation S720, the transaction data sender A stores the transaction data M at the address Waddr, and then executes the encryption function Encrypt(Waddr) on Waddr, introducing the public key of the transaction data receiver B during the execution process. , generating the ciphertext C of the storage address. The model elements of the encryption algorithm are defined as:

[0195]

[0196] Define the Encrypt function as:

[0197]

[0198] in, Indicates the storage address of data information M, is the public key of data receiver B, is the product of two large prime numbers. The security parameters pre-set by the data receiver B. p and q are private parameters and are not disclosed to the public. is B's public key.

[0199] In operation S730, the transaction data sender Execute the Sign() algorithm, using its own identity GID , perform identity signature on the ciphertext C and generate the signature S of the transaction data.

[0200] Multiple subjects of transaction data (multiple trading parties) The modulus of the GID, that is The module can be expressed as:

[0201]

[0202] Users can randomly pick integers , and calculate:

[0203]

[0204] Substituting the above formula into formula (1), the signature algorithm becomes the following formula (3):

[0205] Formula (3)

[0206] Further simplified to the following formula (4):

[0207] Formula (4)

[0208] Among them, the function is a one-way function. In the embodiment of the present disclosure, the function Use hash function.

[0209] In operation S740, the blockchain consensus node executes the transaction smart contract and packages the generated transaction data message , and send a broadcast message to the entire network. Synchronize and store evidence in the blockchain network.

[0210] Assumptions A loosely coupled transaction data message representing transaction data is formally represented as:

[0211]

[0212] in, Indicates the identity identifiers GID of multiple transaction parties involved in the transaction data, S indicates the user identity signature (referred to as signature) for the ciphertext of the storage address Waddr of the transaction data, C indicates the ciphertext of the storage address Waddr of the transaction data, params is the security parameter, and chksum is the checksum bit. Among them, params can be used to verify whether the transaction data message is a legal message; chksum can be used to verify whether the transaction data message is a complete message. The transaction data message format can be as follows Figure 4 The format shown.

[0213] The disclosed embodiment also provides a data access method based on blockchain.

[0214] Figure 8 The flowchart of the data access method based on blockchain according to an embodiment of the present disclosure is schematically shown.

[0215] like Figure 8 As shown, the method may include operations S810 to S860.

[0216] In operation S810, a transaction data message is obtained from the blockchain.

[0217] The transaction data involved in the transaction data message is completed by multiple transaction parties.

[0218] In operation S820, based on the transaction data message, the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the storage address of the transaction data, and the actual signature for the ciphertext are obtained.

[0219] In operation S830, the signature is verified based on the acquired associated identification information and ciphertext.

[0220] In operation S840, in response to the representation signature verification being passed, the ciphertext is decrypted to obtain a plaintext of the storage address.

[0221] In operation S850, the transaction data is accessed based on the plain text of the storage address.

[0222] Further, as an optional embodiment, the signature is verified based on the acquired associated identification information and ciphertext, including the following operations.

[0223] Based on the obtained associated identification information and the ciphertext, an expected signature for the ciphertext is obtained.

[0224] Compare the expected signature with the actual signature to see if they are consistent.

[0225] In response to the expected signature being consistent with the actual signature, the signature verification is successful.

[0226] In the disclosed embodiment, since each transaction party can use its global identifier GID in the blockchain as associated identification information to sign the ciphertext of the storage address of the transaction data. Therefore, in the disclosed embodiment, the global identifier GID of all transaction parties involved in the transaction data can also be used to verify the signature contained in the transaction data message. Specifically, all GIDs can be parsed from the acquired transaction data message and substituted into the above formula (1) to obtain the corresponding expected signature, and then the corresponding actual signature can be parsed from the transaction data message and compared with the aforementioned expected signature. If the two are consistent, it means that the signature verification is passed; if the two are inconsistent, it means that the signature verification fails.

[0227] In the disclosed embodiment, after completing the data signature verification, the data can be decrypted to obtain the plain text of the storage address of the transaction data, and the transaction data can be accessed by accessing the plain text address.

[0228] It should be noted that in the embodiment of the present disclosure, the transaction data message may include a ciphertext field, a signature field and an associated identification information field, so parsing the transaction data message can obtain the corresponding ciphertext, signature and associated identification information, which can be used as basic data for signature verification and decryption.

[0229] Specifically, in the embodiment disclosed herein, in the decryption and signature verification part, the transaction data message can be first unpacked to obtain the ciphertext of the signature and the storage address of the transaction data; then the signature can be verified using the identities of multiple transaction parties to check whether the signature is correct; then the private key of the transaction data recipient is used to decrypt the ciphertext of the above address to obtain the access address of the transaction data; finally, the transaction data recipient can obtain the plaintext of the transaction data by accessing the address.

[0230] Through the embodiments of the present disclosure, not only can the signature verification problem of multiple authorized entities be solved, but also batch verification of the signatures of all transaction parties can be achieved.

[0231] The disclosed embodiment also provides another data access method based on blockchain.

[0232] Fig. 9 The flowchart of the data access method based on blockchain according to an embodiment of the present disclosure is schematically shown.

[0233] like Fig. 9 As shown, the method may include operations S910 to S940.

[0234] In operation S910, a transaction data message is obtained from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties.

[0235] In operation S920, based on the transaction data message, the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the transaction data, and the actual signature for the ciphertext are obtained.

[0236] In operation S930, the signature is verified based on the acquired associated identification information and ciphertext.

[0237] In operation S940, in response to the representation signature verification being passed, the ciphertext is decrypted to obtain the plaintext of the transaction data and access it.

[0238] It should be noted that in the embodiment of the present disclosure, the signature verification method and Figure 8 The data access method shown uses the same signature verification method for the signature, which will not be repeated here in the embodiment of the present disclosure.

[0239] like Fig.10 As shown, the decryption process includes the following operations.

[0240] In operation S1010, the transaction data recipient B can call the smart contract to obtain the transaction data message. , for transaction data messages Unpack the packet and check whether the packet data transmission is complete by parsing the checksum chksum obtained from the packet check bit.

[0241] In operation S1020, based on the signature S of the ciphertext C of the storage address of the transaction data, combined with the multi-subject identity GID, i.e., Gid(A1), ... Gid(An), the signature verification algorithm ChkSign() is executed to verify the transaction data message The verification method is to substitute Gid(A1),…Gid(An) into the following formula (i.e., Formula 1):

[0242]

[0243] In formula (1), The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the obtained signature data (signature for short), function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met (i.e. and Intermediate substances):

[0244] ;

[0245] Obtained by the following formula:

[0246] ;

[0247] in, A randomly picked integer for the user, which could be, for example, a username.

[0248] Multiple parties to transaction data The modulus of the GID, that is The module can be expressed as:

[0249]

[0250] The above formula Substituting into formula (1), the signature algorithm becomes the following formula (i.e. formula (3)):

[0251]

[0252] e and Coprime, formula (3) can be further simplified to the following formula (i.e. formula (4)):

[0253]

[0254] In operation S1030, if the signature verification passes, that is, the signature is legal, the transaction data recipient B can execute the decryption algorithm Decrypt() through the consensus verification node, combined with security parameters such as (p, q, b), generate the access address Waddr of the transaction data, and return it to the transaction data recipient B, thereby finally realizing the access to the transaction data.

[0255] The decryption algorithm Decrypt() can be defined as:

[0256]

[0257] in, , represents the ciphertext of the storage address of transaction data M, is the private key of the transaction data recipient B, is the product of two large prime numbers p and q. The security parameters pre-set for the transaction data recipient B are all private parameters.

[0258] like Fig.11 As shown, the blockchain-based data transmission and access may include the following operations.

[0259] In step S1110, the transaction data sender A stores the transaction data at the storage address Waddr, and encrypts the address Waddr with the public key of the transaction data receiver B to generate the corresponding ciphertext C; then the ciphertext C is signed with the identity GID of multiple subjects, namely Gid(A1),…Gid(An), to generate a signature S.

[0260] Step S1120: Pack the signature S, ciphertext C, security parameters, and multi-subject identities GID into a message , Including (C, S, Gid(A1),...Gid(An)), calling the smart contract, and sending the message Broadcast to the blockchain network.

[0261] Step S1130: The consensus accounting node executes the smart contract and sends the message Synchronize to the consensus accounting node of the entire network, and then send a message notification to the transaction data recipient B.

[0262] Step S1140, transaction data recipient B receives a message from the blockchain consensus accounting node ,Verify the integrity of data transmission after unpacking.

[0263] Step S1150, read chksum and check whether the message data integrity is normal. If an abnormality is found, exit this processing flow, otherwise continue to execute the next step.

[0264] Step S1160, from the message Read the signature S and ciphertext C, execute the ChkSign(S) function, add the identity GID of multiple subjects, that is, Gid(A1),...Gid(An) to verify the user identity. If the signature is abnormal during the verification process, exit this process, otherwise continue to the next step.

[0265] Step S1170, execute the Decrypt(C) function, and use the private key of the transaction data recipient B to decrypt the ciphertext C. If an exception occurs during the decryption process, exit this processing flow, otherwise continue to the next step.

[0266] Step S1180, after decrypting the ciphertext C, the address plaintext Waddr is generated, which can be used by the transaction data recipient B to access the transaction data.

[0267] Fig.12 The block diagram of a blockchain-based data processing device according to an embodiment of the present disclosure is schematically shown.

[0268] like Fig.12As shown, the apparatus 1200 includes a first acquisition module 1201, a first encryption module 1202, a second acquisition module 1203, a first signature module 1204, a first generation module 1205 and a first broadcast module 1206. The apparatus can execute the above reference Figure 2 The method shown and the methods corresponding to its variant implementations are not described in detail here.

[0269] The first acquisition module 1201 is used to acquire a storage address of transaction data, wherein the transaction data is completed by multiple transaction parties.

[0270] The first encryption module 1202 is used to encrypt the storage address to obtain a ciphertext related to the transaction data.

[0271] The second acquisition module 1203 is used to acquire associated identification information for each of the multiple transaction parties.

[0272] The first signature module 1204 is used to sign the ciphertext using the acquired association identification information to obtain a signature related to the transaction data.

[0273] The first generating module 1205 is used to generate a transaction data message based on the acquired association identification information, the signature and the ciphertext.

[0274] The first broadcast module 1206 is used to broadcast the transaction data message to the blockchain.

[0275] Fig.13 A block diagram of a blockchain-based data processing device according to another embodiment of the present disclosure is schematically shown.

[0276] like Fig.13 As shown, the apparatus 1300 includes a third acquisition module 1301, a second encryption module 1302, a fourth acquisition module 1303, a second signature module 1304, a second generation module 1305, and a second broadcast module 1306. The apparatus can execute the above reference Figure 6 The method shown and the methods corresponding to its variant implementations are not described in detail here.

[0277] The third acquisition module 1301 is used to acquire transaction data, wherein the transaction data is completed by multiple transaction parties.

[0278] The second encryption module 1302 is used to encrypt the transaction data to obtain the transaction data ciphertext.

[0279] The fourth acquisition module 1303 is used to acquire associated identification information for each transaction party among the multiple transaction parties.

[0280] The second signature module 1304 is used to sign the transaction data ciphertext using the acquired association identification information to obtain a transaction data signature.

[0281] The second generating module 1305 is used to generate a transaction data message based on the acquired association identification information, the transaction data signature and the transaction data ciphertext.

[0282] The second broadcast module 1306 is used to broadcast the transaction data message to the blockchain.

[0283] Fig.14 A block diagram of a blockchain-based data access device according to an embodiment of the present disclosure is schematically shown.

[0284] like Fig.14 As shown, the apparatus 1400 includes a fifth acquisition module 1401, a sixth acquisition module 1402, a first signature verification module 1403, a first decryption module 1404 and a first access module 1405. The apparatus can execute the above reference Figure 8 The method shown and the methods corresponding to its variant implementations are not described in detail here.

[0285] The fifth acquisition module 1401 is used to obtain a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties.

[0286] The sixth acquisition module 1402 is used to acquire, based on the transaction data message, the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the storage address of the transaction data, and the actual signature for the ciphertext.

[0287] The first signature verification module 1403 is used to verify the signature based on the acquired association identification information and the ciphertext.

[0288] The first decryption module 1404 is configured to decrypt the ciphertext in response to the representation signature verification being passed, so as to obtain the plaintext of the storage address.

[0289] The first access module 1405 is used to access the transaction data based on the plain text of the storage address.

[0290] Fig.15 A block diagram of a blockchain-based data access device according to another embodiment of the present disclosure is schematically shown.

[0291] like Fig.15 As shown, the apparatus 1500 includes a seventh acquisition module 1501, an eighth acquisition module 1502, a second signature verification module 1503, a second decryption module 1504, and a second access module 1505. The apparatus can execute the above reference Fig. 9The method shown and the methods corresponding to its variant implementations are not described in detail here.

[0292] The seventh acquisition module 1501 is used to obtain a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties.

[0293] The eighth acquisition module 1502 is used to acquire, based on the transaction data message, the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the transaction data, and the actual signature for the ciphertext.

[0294] The second signature verification module 1503 is used to verify the signature based on the acquired association identification information and the ciphertext.

[0295] The second decryption module 1504 is configured to decrypt the ciphertext in response to the representation signature verification being passed, so as to obtain the plaintext of the transaction data.

[0296] The second access module 1505 is used to access the plain text of the transaction data.

[0297] It should be noted that the implementation method of the device part is similar to the implementation method of the method part, and the technical effects achieved are also similar, which will not be repeated here.

[0298] According to the embodiments of the present invention, any multiple of the modules and units, or at least part of the functions of any multiple of them, can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules and units can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules and units can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or in any one of the three implementation methods of software, hardware and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules and units can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0299] For example, any multiple of the first acquisition module 1201, the first encryption module 1202, the second acquisition module 1203, the first signature module 1204, the first generation module 1205 and the first broadcast module 1206 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 1201, the first encryption module 1202, the second acquisition module 1203, the first signature module 1204, the first generation module 1205 and the first broadcast module 1206 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, at least one of the first acquisition module 1201, the first encryption module 1202, the second acquisition module 1203, the first signature module 1204, the first generation module 1205 and the first broadcast module 1206 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.

[0300] Fig.16 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. Fig.16 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0301] like Fig.16 As shown, the electronic device 1600 includes a processor 1610 and a computer-readable storage medium 1620. The electronic device 1600 can execute the method according to the embodiment of the present disclosure.

[0302] Specifically, the processor 1610 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1610 may also include an onboard memory for cache purposes. The processor 1610 may be a single processing unit or multiple processing units for executing different actions of the method flow according to an embodiment of the present disclosure.

[0303] Computer-readable storage medium 1620 , for example, may be a non-volatile computer-readable storage medium, specific examples of which include but are not limited to: magnetic storage devices, such as magnetic tapes or hard disks (HDDs); optical storage devices, such as compact disks (CD-ROMs); memories, such as random access memories (RAMs) or flash memories; and the like.

[0304] The computer-readable storage medium 1620 may include a computer program 1621 , which may include code / computer-executable instructions that, when executed by the processor 1610 , cause the processor 1610 to perform a method according to an embodiment of the present disclosure or any variation thereof.

[0305] The computer program 1621 may be configured to have, for example, a computer program code including a computer program module. For example, in an example embodiment, the code in the computer program 1621 may include one or more program modules, for example, including 1621A, module 1621B, ... It should be noted that the division method and number of modules are not fixed, and those skilled in the art may use appropriate program modules or program module combinations according to actual conditions, and when these program module combinations are executed by the processor 1610, the processor 1610 may execute the method according to the embodiment of the present disclosure or any variation thereof.

[0306] According to an embodiment of the present disclosure, at least one of the main control unit 501, the initialization unit 502, the data processing unit 503, and the transaction data transceiver 504 can be implemented as a reference Fig.16 The computer program modules described herein, when executed by the processor 1610, can implement the corresponding operations described above.

[0307] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0308] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession 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 box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0309] It will be appreciated by those skilled in the art that, although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, it will be appreciated by those skilled in the art that, without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents, various changes in form and detail may be made to the present disclosure. Therefore, the scope of the present disclosure should not be limited to the above-described embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A data processing method based on blockchain, comprising: Obtaining a storage address of transaction data, wherein the transaction data is completed by multiple transaction parties; Encrypting the storage address to obtain a ciphertext related to the transaction data; For each of the multiple transaction parties, obtaining associated identification information; Using the acquired association identification information, signing the ciphertext to obtain a signature related to the transaction data; Generate a transaction data message based on the acquired association identification information, the signature and the ciphertext; and Broadcasting the transaction data message to the blockchain; The step of using the acquired association identification information to sign the ciphertext includes obtaining signature data through the following formula: ; in, The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the obtained signature data, function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met: ; Obtained by the following formula: ; in, An integer randomly picked by the user.

2. The method according to claim 1, wherein: The function Includes: hash function.

3. The method according to claim 1, wherein: Includes the username and / or user address of the transaction party.

4. The method according to claim 1, wherein: The transaction data message includes: a security parameter field, which is used to characterize the security of the transaction data message.

5. The method according to claim 1, wherein: The associated identification information includes identification information simultaneously associated with a user name and a node name, wherein the user name includes a user name of a transaction party, and the node name includes a name of a blockchain node used by the transaction party.

6. A data processing method based on blockchain, comprising: Acquiring transaction data, wherein the transaction data is completed by multiple transaction parties; Encrypting the transaction data to obtain transaction data ciphertext; For each of the multiple transaction parties, obtaining associated identification information; Using the acquired association identification information, signing the transaction data ciphertext to obtain a transaction data signature; generating a transaction data message based on the acquired association identification information, the transaction data signature and the transaction data ciphertext; and Broadcasting the transaction data message to the blockchain; The step of using the acquired association identification information to sign the transaction data ciphertext includes obtaining the transaction data signature through the following formula: ; in, Indicates the ciphertext of the transaction data involved. Indicates the association identification information of n transaction parties, Represents the obtained transaction data signature, function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met: ; Obtained by the following formula: ; in, An integer randomly picked by the user.

7. A data access method based on blockchain, comprising: Obtaining a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; Based on the transaction data message, obtaining the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the storage address of the transaction data, and the actual signature for the ciphertext; Verifying the signature based on the acquired association identification information and the ciphertext; In response to the representation signature verification being passed, decrypting the ciphertext to obtain a plaintext of the storage address; and Accessing the transaction data based on the plain text of the storage address; The step of verifying the signature based on the acquired association identification information and the ciphertext includes: Based on the obtained association identification information and the ciphertext, obtaining an expected signature for the ciphertext; comparing the expected signature with the actual signature to see if they are consistent; and In response to the expected signature being consistent with the actual signature, indicating that the signature verification is successful; Wherein, obtaining the expected signature for the ciphertext based on the obtained association identification information and the ciphertext includes obtaining the expected signature of the ciphertext by using the following formula: ; in, The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the expected signature of the resulting ciphertext, function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met: ; Obtained by the following formula: ; in, An integer randomly picked by the user.

8. A data access method based on blockchain, comprising: Obtaining a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; Based on the transaction data message, obtaining the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the transaction data, and the actual signature for the ciphertext; Verifying the signature based on the acquired association identification information and the ciphertext; and In response to the representation signature verification being passed, decrypting the ciphertext to obtain the plaintext of the transaction data and accessing it; The step of verifying the signature based on the acquired association identification information and the ciphertext includes: Based on the obtained association identification information and the ciphertext, obtaining an expected signature for the ciphertext; comparing the expected signature with the actual signature to see if they are consistent; and In response to the expected signature being consistent with the actual signature, indicating that the signature verification is successful; Wherein, obtaining the expected signature for the ciphertext based on the obtained association identification information and the ciphertext includes obtaining the expected signature of the ciphertext by using the following formula: ; in, The ciphertext representing the transaction data involved, Indicates the association identification information of n transaction parties, Represents the expected signature of the resulting ciphertext, function is a one-way function, Represents two prime numbers and The product of is a prime number, and and The following conditions are met: ; Obtained by the following formula: ; in, An integer randomly picked by the user.

9. A data processing device based on blockchain, the device implementing the method according to any one of claims 1 to 5, comprising: A first acquisition module is used to acquire a storage address of transaction data, wherein the transaction data is completed by multiple transaction parties; A first encryption module, used for encrypting the storage address to obtain a ciphertext related to the transaction data; A second acquisition module, configured to acquire associated identification information for each of the plurality of transaction parties; A first signature module, used to sign the ciphertext using the acquired association identification information to obtain a signature related to the transaction data; A first generating module, configured to generate a transaction data message based on the acquired association identification information, the signature and the ciphertext; and The first broadcast module is used to broadcast the transaction data message to the blockchain.

10. A data processing device based on blockchain, the device implementing the method according to claim 6, comprising: A third acquisition module is used to acquire transaction data, wherein the transaction data is completed by multiple transaction parties; A second encryption module, used for encrypting the transaction data to obtain a ciphertext of the transaction data; A fourth acquisition module, configured to acquire associated identification information for each of the plurality of transaction parties; A second signature module, used to sign the transaction data ciphertext using the acquired association identification information to obtain a transaction data signature; a second generating module, configured to generate a transaction data message based on the acquired association identification information, the transaction data signature and the transaction data ciphertext; and The second broadcast module is used to broadcast the transaction data message to the blockchain.

11. A data access device based on blockchain, the device implementing the method according to claim 7, comprising: A fifth acquisition module is used to acquire a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; a sixth acquisition module, configured to acquire, based on the transaction data message, the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the storage address of the transaction data, and the actual signature for the ciphertext; A first signature verification module, used to verify the signature based on the acquired association identification information and the ciphertext; A first decryption module is configured to decrypt the ciphertext in response to the representation signature verification being passed, so as to obtain the plaintext of the storage address; and The first access module is used to access the transaction data based on the plain text of the storage address.

12. A data access device based on blockchain, the device implementing the method according to claim 8, comprising: A seventh acquisition module is used to acquire a transaction data message from the blockchain, wherein the transaction data involved in the transaction data message is completed by multiple transaction parties; an eighth acquisition module, configured to acquire, based on the transaction data message, the associated identification information of each transaction party among the multiple transaction parties, the ciphertext of the transaction data, and the actual signature for the ciphertext; A second signature verification module, used to verify the signature based on the acquired association identification information and the ciphertext; A second decryption module is used to decrypt the ciphertext in response to the representation signature verification passing to obtain the plaintext of the transaction data; and The second access module is used to access the plain text of the transaction data.

13. An electronic device comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

14. A computer-readable storage medium storing computer-executable instructions, wherein the instructions are used to implement the method according to any one of claims 1 to 8 when executed.

15. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and system for privacy protection of block chain transaction

    CN107911216A

  • Block chain data processing method and device as well as computer readable storage medium

    CN108647964A

  • Blockchain access authorization method and node

    CN111767569A

  • Loosely coupled block chain transaction method and block chain node

    CN112231731A