Transaction information sharing method, device and system and computer readable storage medium

Through envelope encryption and re-encryption technology, the problems of low data sharing efficiency, poor security and high performance consumption in the existing technology are solved, and an efficient and safe data sharing process is realized.

CN118784643APending Publication Date: 2024-10-15THE PEOPLES BANK OF CHINA DIGITAL CURRENCY INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310388416.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing technology requires multiple encryptions and multi-party keys to be managed locally during data sharing, which leads to problems of low data sharing efficiency, poor security, and high local performance consumption.

Method used

By obtaining the public-private key pair and session key of the target transaction information, the ciphertext and re-encryption key are sent to the server using envelope encryption. The server performs re-encryption, and the recipient of the shared information downloads the re-encrypted ciphertext to obtain it. Target transaction information to achieve secure transmission of shared information.

Benefits of technology

It reduces the local encryption calculation pressure of the sender of shared information, improves the security and efficiency of information sharing, and avoids the complexity of multi-party key management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784643A_ABST
    Figure CN118784643A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction information sharing method, device and system and a computer readable storage medium. The method comprises the following steps: acquiring target transaction information, a first public and private key pair and a session key; encrypting the target transaction information by using the session key to obtain a first ciphertext, and encrypting the session key by using the first public key to obtain a second ciphertext; obtaining a second public key, and generating a re-encryption key based on the second public key and the first private key; and sending the re-encryption key, the first ciphertext and the second ciphertext to a server for the server to generate a re-encryption ciphertext, so that a shared information receiver downloads the re-encryption ciphertext to obtain the target transaction information. According to the method and the device, the technical problems of low data sharing efficiency, poor security and high local performance consumption due to the fact that encryption needs to be carried out for multiple times locally and multi-party keys need to be managed are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security, and in particular to a transaction information sharing method, device, system and computer-readable storage medium. Background Art

[0002] Regarding the issue of how to encrypt data when sharing data, in related technologies, the user usually encrypts the data multiple times locally and then transmits it to the chain through the network. However, this method consumes a lot of performance on the party initiating data sharing, and is inefficient and has poor security.

[0003] Therefore, in the related art, there are technical problems such as low data sharing efficiency, poor security and high local performance consumption due to the need to perform multiple encryptions locally and manage multiple party keys.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] Embodiments of the present invention provide a transaction information sharing method, device, system and computer-readable storage medium to at least solve the technical problems of low data sharing efficiency, poor security and high local performance consumption caused by the need to perform multiple encryptions locally and manage keys of multiple parties.

[0006] According to one aspect of an embodiment of the present invention, a transaction information sharing method is provided, including: obtaining target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to a sender of the shared information, including a first public key and a first private key; encrypting the target transaction information with the session key to obtain a first ciphertext, and encrypting the session key with the first public key to obtain a second ciphertext; obtaining the second public key, and generating a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in the public-private key pair corresponding to a receiver of the shared information; sending the re-encryption key, the first ciphertext, and the second ciphertext to a server, for the server to generate a re-encrypted ciphertext, so that the receiver of the shared information can download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in a blockchain formed with the sender of the shared information and multiple receivers of the shared information as nodes.

[0007] According to another aspect of an embodiment of the present invention, a transaction information sharing method is also provided, including: receiving a re-encryption key, a first ciphertext and a second ciphertext sent by a sender of shared information, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the shared information receiver, the first private key is a private key in a public-private key pair corresponding to the shared information sender, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in the public-private key pair corresponding to the sender of the shared information; based on a predetermined re-encryption algorithm, the first ciphertext and the second ciphertext are encrypting using the re-encryption key to obtain a re-encrypted ciphertext; receiving a download request from a shared information receiver; and sending the re-encrypted ciphertext to the shared information receiver in response to the download request to obtain the target transaction information, wherein the shared information sender and multiple shared information receivers are nodes in a blockchain.

[0008] According to another aspect of an embodiment of the present invention, a transaction information sharing method is also provided, including: obtaining a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to a shared information recipient, including a second public key and a second private key; sending the second public key to a shared information sender; sending a download request to a server, and receiving a re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed with a shared information sender and multiple shared information recipients as nodes, the re-encrypted ciphertext is generated by the server based on the re-encryption key, a first ciphertext and a second ciphertext, the re-encryption key is generated based on the second public key and the first private key, the first private key is a private key in the public-private key pair corresponding to the shared information sender, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in the public-private key pair corresponding to the shared information sender; based on a predetermined decryption algorithm, the re-encrypted ciphertext is decrypted using the second private key to obtain a session key and a first ciphertext; the first ciphertext is decrypted using the session key to obtain the target transaction information.

[0009] According to another aspect of an embodiment of the present invention, a transaction information sharing method is also provided, including: a sender of shared information obtains target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of shared information, including a first public key and a first private key; the sender of shared information encrypts the target transaction information using the session key to obtain a first ciphertext, and encrypts the session key using the first public key to obtain a second ciphertext; a receiver of shared information obtains a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the receiver of shared information, including a second public key and a second private key; the receiver of shared information The second public key is sent to the sender of the shared information; the sender of the shared information generates a re-encryption key based on the second public key and the first private key, and sends the re-encryption key, the first ciphertext and the second ciphertext to the server; the server encrypts the first ciphertext and the second ciphertext with the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; the receiver of the shared information sends a download request to the server; the server sends the re-encrypted ciphertext to the receiver of the shared information in response to the download request; the receiver of the shared information decrypts the re-encrypted ciphertext based on the second private key to obtain the target transaction information; wherein the sender of the shared information and multiple receivers of the shared information are nodes in the blockchain.

[0010] According to another aspect of an embodiment of the present invention, a transaction information sharing device is also provided, which is applied to a sender of shared information, and includes: a first acquisition module, used to obtain target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of shared information, including a first public key and a first private key; a first encryption module, used to encrypt the target transaction information using the session key to obtain a first ciphertext, and to encrypt the session key using the first public key to obtain a second ciphertext; a first generation module, used to obtain a second public key, and to generate a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in the public-private key pair corresponding to the receiver of shared information; a first sending module, used to send the re-encryption key, the first ciphertext, and the second ciphertext to a server, and used for the server to generate a re-encrypted ciphertext for the receiver of shared information to download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in a blockchain formed with the sender of shared information and multiple receivers of shared information as nodes.

[0011] According to another aspect of an embodiment of the present invention, a transaction information sharing device is also provided, which is applied to a shared information recipient, and includes: a first receiving module, which is used to receive a re-encryption key, a first ciphertext, and a second ciphertext sent by a shared information sender, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the shared information recipient, the first private key is a private key in a public-private key pair corresponding to the shared information sender, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in the public-private key pair corresponding to the shared information sender; a second encryption module, which is used to encrypt the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; a second receiving module, which is used to receive a download request from a shared information recipient; a second sending module, which is used to send the re-encrypted ciphertext to the shared information recipient in response to the download request to obtain the target transaction information, wherein the shared information sender and multiple shared information recipients are nodes in a blockchain.

[0012] According to another aspect of an embodiment of the present invention, a transaction information sharing device is also provided, which is applied to a server, including: a second acquisition module, used to obtain a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to a shared information recipient, including a second public key and a second private key; a third sending module, used to send the second public key to the shared information sender; a third receiving module, used to send a download request to the server, and receive a re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed with a shared information sender and multiple shared information recipients as nodes, and the re-encrypted ciphertext is a ciphertext obtained by the server based on the re-encryption key, the first ciphertext, and the second public key. The re-encryption key is generated based on the second public key and the first private key, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information with the session key, the second ciphertext is the ciphertext obtained by encrypting the session key with the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information; the first decryption module is used to decrypt the re-encrypted ciphertext with the second private key based on a predetermined decryption algorithm to obtain the decryption key corresponding to the session key and the first ciphertext; the second decryption module is used to decrypt the first ciphertext with the decryption key to obtain the target transaction information.

[0013] According to another aspect of an embodiment of the present invention, a transaction information sharing system is also provided, including: a shared information sender, a shared information receiver and a server, wherein the shared information sender is used to obtain target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the shared information sender, including a first public key and a first private key; the shared information sender is also used to encrypt the target transaction information using the session key to obtain a first ciphertext, and to encrypt the session key using the first public key to obtain a second ciphertext; the shared information receiver is used to obtain a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information receiver, including a second public key and a second private key; The information receiver is further used to send the second public key to the shared information sender; the shared information sender is further used to generate a re-encryption key based on the second public key and the first private key, and send the re-encryption key, the first ciphertext and the second ciphertext to the server; the server is used to encrypt the first ciphertext and the second ciphertext with the re-encryption key based on a predetermined re-encryption algorithm to obtain the re-encrypted ciphertext; the shared information receiver is further used to send a download request to the server; the server is further used to send the re-encrypted ciphertext to the shared information receiver in response to the download request; the shared information receiver is further used to decrypt the re-encrypted ciphertext based on the second private key to obtain the target transaction information; wherein the shared information sender and multiple shared information receivers are nodes in the blockchain.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the transaction information sharing methods described above.

[0015] According to another aspect of an embodiment of the present invention, a computer device is provided, including: a memory and a processor, the memory storing a computer program; the processor, configured to execute the computer program stored in the memory, wherein when the computer program is executed, the processor executes any one of the transaction information sharing methods described above.

[0016] In an embodiment of the present invention, the sender of shared information encrypts the shared information for the first time, and uses envelope encryption to send the first ciphertext, the second ciphertext and the re-encryption key to the server, and the server completes the subsequent re-encryption. The receiver of the shared information only needs to send the receiver's public key to the sender of the shared information. The sender of the shared information will generate a re-encryption key based on the sender's private key and the receiver's public key, and then download the re-encrypted ciphertext from the server. The re-encrypted ciphertext can be decrypted using the private key of the receiver of the shared information to obtain the shared information, thereby achieving the technical effect that the user only encrypts once on the local end, and the server performs subsequent re-encryption, and the user does not need to manage the key to complete the flexible sharing of multi-party information, thereby solving the technical problems of low data sharing efficiency, poor security and high local performance consumption caused by the need to perform multiple encryptions locally and manage multi-party keys. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a schematic diagram of the architecture of a transaction information sharing system provided according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a transaction information sharing method 1 according to an embodiment of the present invention;

[0020] Figure 3 is a flow chart of a second transaction information sharing method according to an embodiment of the present invention;

[0021] Figure 4 is a flow chart of a third transaction information sharing method according to an embodiment of the present invention;

[0022] Figure 5 is a flow chart of a fourth transaction information sharing method according to an embodiment of the present invention;

[0023] Figure 6 is an interactive sequence diagram of a transaction information sharing method according to an embodiment of the present invention;

[0024] Figure 7 is a flowchart of a method for multi-party sharing of transaction supervision information based on blockchain according to an optional implementation mode of the present invention;

[0025] Figure 8 is a structural block diagram of a transaction information sharing device 1 provided according to this embodiment;

[0026] Fig. 9is a structural block diagram of a second transaction information sharing device provided according to this embodiment;

[0027] Fig.10 is a structural block diagram of a transaction information sharing device 3 provided according to this embodiment;

[0028] Fig.11 It is a structural block diagram of the transaction information sharing system provided according to this embodiment. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Terminology

[0032] Proxy re-encryption is a key conversion mechanism between ciphertexts. In proxy re-encryption, a semi-trusted agent converts the ciphertext encrypted with the public key Pa of the authorizer Alice into the ciphertext encrypted with the public key Pb of the authorized person Bob through the conversion key Rk generated by the proxy authorizer. In this process, the agent cannot obtain the plaintext information of the data, thereby reducing the risk of data leakage.

[0033] A session key is a key generated for use in a single communication session. Session keys are changed frequently and are discarded when no longer needed. Symmetric keys are often used as session keys. Session keys are mutable and applications can save them for later use or transfer to other users.

[0034] Blockchain is a chain of blocks. Each block stores certain information, and they are connected into a chain in the order of their generation. This chain is stored in all servers. As long as there is one server in the entire system that can work, the entire blockchain is safe. These servers are called nodes in the blockchain system, and they provide storage space and computing power support for the entire blockchain system. If you want to modify the information in the blockchain, you must obtain the consent of more than half of the nodes and modify the information in all nodes. These nodes are usually in the hands of different entities, so it is extremely difficult to tamper with the information in the blockchain. Compared with traditional networks, blockchain has two core characteristics: one is that data is difficult to tamper with, and the other is decentralization. Based on these two characteristics, the information recorded in the blockchain is more authentic and reliable, which can help solve the problem of mutual distrust.

[0035] Signature certificate, a public key certificate that contains a public key. The public key is used to authenticate digital signatures, but cannot encrypt data or perform other cryptographic functions.

[0036] Envelope encryption is an encryption method similar to digital envelope technology. This technology stores, transmits and uses the data key of encrypted data in an envelope, instead of using the user master key to directly encrypt and decrypt data. Envelope encryption has the characteristic of protecting the data key, that is, when encrypting the data key, the data key will be encrypted and protected, and the encrypted data can be safely stored together with the encrypted data key.

[0037] Symmetric encryption, an encryption method that uses a single-key cryptographic system, the same key can be used for both encryption and decryption of information. This encryption method is called symmetric encryption, also known as single-key encryption.

[0038] Cloud computing platform, also known as cloud platform, refers to services based on hardware resources and software resources, providing computing, network and storage capabilities. Cloud computing platforms can be divided into three categories: storage-based cloud platforms that focus on data storage, computing-based cloud platforms that focus on data processing, and comprehensive cloud computing platforms that take both computing and data storage into account.

[0039] Figure 1 is a schematic diagram of the architecture of a transaction information sharing system provided according to an embodiment of the present invention. Figure 1 As shown, the transaction information sharing system includes: a sender of shared information, a receiver of shared information, and a server (the blockchain cloud processing platform is used as an example in the figure). The transaction information sharing system can be applied to scenarios in the financial field, for example, it can be a scenario where transaction information is shared between financial institutions (for example, between banks, or between banks and relevant financial regulatory agencies). The following takes the sharing of transaction information between financial institutions as an example to illustrate the system.

[0040] The sender of the shared information can be any financial institution that needs to share transaction information. For example, a transaction occurs in a financial institution, and the financial institution records the specific transaction information of the transaction. For security or other information exchange needs, the specific transaction information needs to be shared with other financial institutions. For example, in the digital financial scenario, there are a large number of scenarios where the same information needs to be authorized and shared between multiple subjects, including: first-level sharing, one party's data needs to be shared with multiple parties (1 party: N parties or N parties: N parties), that is, 1 party shares with N parties, or N parties share with N parties; multi-level sharing (1 party: N parties: M parties), that is, after one party shares the data with the second-level N parties, the second-level N parties will continue to share the data with the third-level M parties. In a cross-border scenario, the payer financial institution (for example, a bank) needs to encrypt and share the same piece of information with the business recipient financial institution. It should be noted that the sender of the shared information referred to above can be various types of financial institutions, for example, it can be a banking institution that generates transaction information, it can be a banking institution that receives other transaction information, it can also be a monetary authority that generates transaction information, it can also be a currency monetary authority that generates transaction information, etc.

[0041] In the embodiment of the present application, the sender of the shared information encrypts the target transaction information to be shared to obtain the transaction information ciphertext, and then uploads the obtained transaction information ciphertext to the server (in this embodiment, the blockchain cloud processing platform is used as an example for explanation). In addition, the sender of the shared information also generates a re-encryption key for sharing the target transaction information based on the interaction with the receiver of the shared information, and uploads the obtained re-encryption key to the server.

[0042] The above-mentioned shared information recipient can be any financial institution that needs to receive the shared information from the shared information sender. In the embodiment of the present application, the shared information recipient sends a download request to the server, downloads the re-encrypted ciphertext from the server, and decrypts the re-encrypted ciphertext based on the corresponding key to obtain the target transaction information shared by the shared information sender.

[0043] It should be noted that the sender of the shared information and the receiver of the shared information can form a blockchain based on a predetermined connection sequence. As nodes on the blockchain, the sender of the shared information and the receiver of the shared information remotely access the server (such as the blockchain cloud processing platform in the figure, which can include multiple computing nodes running on a remote distributed processing cluster). Each computing node contains local processing and memory resources, and each computing node can remotely run applications or store data based on predetermined computing resources or storage resources.

[0044] In an embodiment of the present invention, after receiving the transaction information ciphertext and the re-encryption key sent by the shared information sender, the server may encrypt the transaction information ciphertext using the re-encryption key based on the distributed processing cluster to obtain the re-encrypted ciphertext. After receiving a download request for the target transaction information sent by the shared information receiver, the server sends the re-encrypted ciphertext to the shared information receiver, so that the shared information receiver decrypts the ciphertext based on a predetermined key to obtain the required target transaction information.

[0045] In addition, the above-mentioned shared information sender and shared information receiver as nodes on the blockchain can remotely access the server in a variety of ways (for example, a web browser or other software application on the terminal). In some embodiments, the supply and / or request of the shared information sender and shared information receiver as nodes on the blockchain can be provided to the entry gateway. The entry gateway may include a corresponding agent to handle the supply and / or request for multiple computing nodes on the distributed processing cluster.

[0046] The multiple computing nodes on the distributed processing cluster are provided or deployed according to various virtualization technologies supported by the multiple computing nodes. In some embodiments, services can be provided according to virtualization based on virtual machines (VMs), container-based virtualization, and / or similar methods. Virtualization based on virtual machines can be to simulate a real computer by initializing a virtual machine, and execute programs and applications without directly contacting any actual hardware resources. While the virtual machine virtualizes the machine, according to container-based virtualization, a container can be started to virtualize the entire operating system (OS) so that multiple workloads can run on a single operating system instance.

[0047] During operation, executing a user request from a sender of shared information as a node on the blockchain and a receiver of shared information may require calling one or more computing nodes among multiple computing nodes on the distributed processing cluster, and executing one or more function requests of one computing node requires calling one or more functions of another computing node.

[0048] As described above, the multiple computing nodes on the above-mentioned distributed processing cluster can be a cloud computing environment, and the allocation of resources is managed by the cloud service provider, allowing the development of functions without considering the implementation, adjustment or expansion of servers. The computing environment allows developers to execute code in response to events without building or maintaining complex infrastructure. Services can be divided into a set of functions that can be automatically scaled independently, rather than expanding a single hardware device to handle potential loads.

[0049] Based on the scenario environment of the above-mentioned transaction information sharing system, in an embodiment of the present invention, a method embodiment of transaction information sharing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0050] It should be noted that the transaction information sharing method based on the above-mentioned transaction information sharing system involves the participation of the above-mentioned multiple execution entities. Therefore, in order to describe the entire scheme in detail, each execution entity will be described separately below, and then the entire scheme will be fully described in conjunction with the processing of each execution entity.

[0051] Figure 2 is a flow chart of a transaction information sharing method 1 according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0052] Step S202, obtaining target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of the shared information, including a first public key and a first private key;

[0053] Step S204, encrypting the target transaction information with the session key to obtain a first ciphertext, and encrypting the session key with the first public key to obtain a second ciphertext;

[0054] Step S206, obtaining a second public key, and generating a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in a public-private key pair corresponding to the recipient of the shared information;

[0055] Step S208, sending the re-encryption key, the first ciphertext and the second ciphertext to the server, which is used for the server to generate the re-encrypted ciphertext for the shared information recipient to download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in the blockchain formed by the shared information sender and multiple shared information recipients as nodes.

[0056] Through the above steps, from the side of the sender of shared information, the sender of shared information adopts envelope encryption to encrypt the target transaction information with the session key to obtain the first ciphertext, and then encrypts the session key with the sender's public key to obtain the second ciphertext, and then sends the obtained first ciphertext, the second ciphertext and the re-encryption key generated according to the sender's private key and the receiver's public key to the server, so that the sender of shared information only needs to encrypt once to share the target transaction information with one or more shared information receivers in need, which reduces the pressure of local encryption calculation of the sender of shared information, and there is no need to manage the key, thereby improving the security of information sharing. After receiving the first ciphertext, the second ciphertext and the re-encryption key, the server completes the re-encryption of the ciphertext to obtain the re-encrypted ciphertext, which is available for download by the shared information receiver when needed, thereby solving the technical problems of low data sharing efficiency, poor security and high local performance consumption caused by the need to perform multiple encryptions locally and manage multiple keys.

[0057] It should be noted that the sender of the shared information may be a variety of financial institutions that want to share transaction information, for example, it may be a financial institution that initiates the business. When the sender of the shared information is a financial institution that initiates the business, the receiver of the shared information may be a financial institution that receives the business, a monetary authority that initiates the business, a monetary authority that receives the business, etc. The server may include a proxy re-encryption platform in a blockchain system and a cloud computing platform in a blockchain system. In actual application scenarios, the sender of the shared information, the receiver of the shared information and the server may also include other institutions or users.

[0058] As an optional embodiment, the target transaction information may be any transaction record information of a transaction conducted in a financial institution. The target transaction information may include a variety of information, such as transaction account information (for example, including a payee account, a payee account, etc.), transaction financial institution information (for example, including a payee bank, a payee bank, etc.), transaction amount (for example, a specific numerical amount, or an approximate transaction amount level (such as large transactions, small transactions, etc.)), transaction currency (for example, RMB, US dollars, euros, etc.), transaction guarantor (for example, a personal guarantee or a corporate guarantee, etc.), specific business targeted by the transaction (for example, a buying and selling business, or a charitable donation, etc.), and the nationalities of both parties to the transaction (for example, domestic transactions, international transactions, etc.).

[0059] As an optional embodiment, the above-mentioned first public-private key pair is the public-private key pair corresponding to the sender of the shared information. The first public-private key can be directly generated by the sender of the shared information or by a special key generation agency. It should be noted that whether it is generated by the sender of the shared information or by a special key generation agency, the generation of the first public-private key can be achieved by using a predetermined key generation algorithm. The public-private key pair belongs to asymmetric encryption technology. There are two types of keys, namely public key and private key. The private key is held by the owner of the key pair and cannot be published. The public key is published to others by the holder of the key pair. The public key is used to encrypt data. Data encrypted with the public key can only be decrypted using the corresponding private key. The private key is used to decrypt data encrypted with the public key.

[0060] As an optional embodiment, the above session key is a randomly generated encryption and decryption key used for secure communication between the information sender and the receiver. The session key can also be called symmetric encryption because the same key is used for encryption and decryption. The session key can be obtained using a predetermined key generation function.

[0061] As an optional embodiment, the session key can be set according to the current information transaction, wherein the session key corresponding to each information transaction is different. By setting different session keys for different target information transactions, it can be ensured that the key used to encrypt the target transaction information in each information transaction is not repeated. That is, the session key is one-time. For example, during an information transaction, the current session key is obtained by a third party, but a new session key will be set correspondingly the next time the target information transaction is carried out, that is, the session key obtained by the third party cannot be reused, and the security of the next target transaction information can still be guaranteed. Therefore, the security of the target transaction information in a single information transaction can be improved by setting a non-repeated session key.

[0062] As an optional embodiment, the sender of the shared information may be any party that needs to share information. For example, for the sharing of financial transaction information, the sender of the shared information may be a financial institution that is the business initiator of the transaction business corresponding to the target transaction information. In the case where the sender of the shared information is a financial institution that is the business initiator, the receiver of the shared information may be determined based on the target transaction information. For example, when the currency used by the financial institution that is the business initiator in the target transaction information is different from the currency used by the financial institution that is the business recipient, it indicates that the transaction business corresponding to the target transaction information is a cross-mirror transaction, that is, the receiver of the shared information may include a foreign financial institution that is the business recipient, a monetary authority that is the business initiator that is used to supervise cross-mirror transactions, and a business currency monetary authority that is used to process cross-mirror transactions, as well as a business recipient monetary authority that is used to supervise external transactions. Therefore, the receiver of the shared information may include at least one of the following: a business recipient financial institution, a business initiator monetary authority, a business recipient monetary authority, and a business currency monetary authority. For another example, when the currency used by the financial institution that initiates the business in the target transaction information is the same as the currency used by the financial institution that receives the business, it indicates that the transaction business corresponding to the target transaction information is an in-mirror transaction, and the shared information recipient that can receive the shared information may be the financial institution that receives the business in the mirror, the monetary authority that supervises the transaction, etc.

[0063] As an optional embodiment, when the session key is used to encrypt the target transaction information to obtain the first ciphertext, different encryption algorithms can be selected to implement it. When different encryption algorithms are applied and the session key is used to encrypt the target transaction information, the first ciphertext obtained is also different. Since the target transaction information is a plaintext data, based on the encryption algorithm, after the plaintext target transaction information is encrypted using the session key, the ciphertext data of the target transaction information, i.e., the first ciphertext, is obtained, thereby realizing the first layer of security protection for the target transaction information.

[0064] As an optional embodiment, since the session key itself also has a certain risk of leakage, not only the session key is used to encrypt the plaintext target transaction information, but the session key can also be protected. For example, the session key can also be encrypted, for example, the first public key can be used to encrypt the session key to obtain the second ciphertext. When the first public key is used to encrypt the session key, multiple methods can be used, for example, the following method can be used: obtain the first constraint condition for encrypting the session key; under the first constraint condition, the first public key is used to encrypt the session key to obtain the second ciphertext. By introducing the constraint condition, according to actual needs, on the one hand, the encryption of the session key under different conditions can be specifically regulated, and on the other hand, the security of encryption can be improved. For example, for different conditions, it can include restrictions on different identity roles of the recipient of the shared information, attribute requirements of the proxy re-encryption key (for example, usage time, usage method), etc., to meet different encryption needs.

[0065] Among them, the restrictions on different identity roles of the recipient of shared information include: the recipient of the shared information can be a recipient of the transaction business: a financial institution that is a recipient of the business, or a monetary authority that is a business initiator that supervises the transaction business, or a monetary authority that is a business recipient that supervises the financial institution of the business recipient, etc. The sender of shared information can choose to share information with different roles. For example, some target transaction information can only be shared with the monetary authority of the business recipient, some target transaction information can only be shared with the monetary authority of the business initiator, some target transaction information can only be shared with the financial institution of the business recipient, and some target transaction information can be shared with the same object among the above, and some target transaction information can be shared with all the above objects.

[0066] In addition, the rules corresponding to the constraint conditions can also be flexibly determined according to different needs. For example, the constraint conditions can be dynamically configured by setting a rule base, and different conditional rules can be selected for different sharing objects and sharing requirements. For example, for a target transaction information, if the sharing object can be the business receiving financial institution, the business initiating monetary authority, the business receiving monetary authority and the business currency monetary authority, the sharing time is 1 month, and the use of the target transaction information is used by the whole institution, then the corresponding constraint condition can be classified as an open constraint condition. For another target transaction information, if the sharing object can be the business receiving financial institution, the business initiating monetary authority, the sharing time is half a month, and the use of the target transaction information is used within a part of the institution, then the corresponding constraint condition can be classified as a semi-open constraint condition. For another example, for another target transaction information, if the sharing object is only the business receiving financial institution, the sharing time is 3 days, and the use of the target transaction information is only used by traders within the institution, then the corresponding constraint condition can be classified as a closed constraint condition.

[0067] Through the above processing, when the first constraint condition is used to restrict the identity of the shared information recipient, it is possible to first determine which shared information recipients are selected based on the target transaction information, and then obtain the corresponding identity authentication information of the shared information recipient, and use this as the first constraint condition in combination with the first public key to encrypt the session key. Under this constraint condition, only the shared information recipient with the corresponding identity authentication information can be allowed to receive the second ciphertext and then complete the decryption of the second ciphertext, effectively achieving the purpose of restricting the identity of the shared information recipient using the first constraint condition and improving the security of the shared information.

[0068] Moreover, in addition to using the identity of the shared information recipient to impose conditional constraints, the use time of the target shared information can also be used to restrict it. For example, the time information of encryption and decryption can be used as the first constraint condition to encrypt the session key in combination with the first public key. The constraint condition can specifically limit the decryption time of the shared information recipient. For example, it can be limited in which time periods the shared information recipient can decrypt the second ciphertext, or it can be limited how long the shared information recipient needs to wait after receiving the second ciphertext before it can decrypt it. It can also be limited within how long the shared information recipient must complete the decryption after receiving the second ciphertext. If the timeout period occurs, the second ciphertext will become invalid, and so on. The above processing can be used to improve the security of shared information by limiting the processing time limit.

[0069] As an optional embodiment, the following method can be used to obtain the second public key. For example, the second public key sent by the shared information recipient can be directly received. To further ensure security, when receiving the second public key sent by multiple shared information recipients, the shared information recipient that sent the second public key can be verified first, and the second public key can be obtained from it only if the verification is passed. The verification of the shared information recipient ensures that only the shared information recipient allowed by the shared information sender to share can obtain the corresponding second public key, and then complete the subsequent re-encryption key generation based on the second public key. When verifying the shared information recipient, a variety of methods can be used. For example, a data message from the shared information recipient can be obtained first, wherein the data message carries the signature certificate and the second public key of the shared information recipient; the shared information recipient is verified based on the signature certificate, and the second public key is extracted from the data message if the verification is passed. By using the signature certificate in the data message to authenticate the identity of the recipient of the shared information, when it is determined that the object that issues the information sharing request is an object that can be shared with information, the second public key corresponding to the recipient in the data message is obtained, thereby improving the security of information sharing. It should be noted that when obtaining the second public key, a variety of methods can be used. For example, the above-mentioned method of directly sending the data message by the recipient of the shared information can be adopted, or it can be provided by a third party that is jointly ensured to be safe in advance by the sender of the shared information and the receiver of the shared information based on a predetermined negotiated interaction process. For example, the third party can be a key generation agency used to generate the public-private key pair of the sender of the shared information, and generate the public-private key pair of the receiver of the shared information.

[0070] In addition, the second public key is the public key in the public-private key pair corresponding to the shared information recipient. That is, the public-private key pair corresponding to the shared information recipient includes the second public key and the second private key. The second public key is used for subsequent encryption to generate a re-encryption key, and the second private key is used to decrypt the re-encrypted ciphertext encrypted based on the re-encryption key to obtain the target transaction information encrypted by the sender of the shared information.

[0071] As an optional embodiment, after obtaining the second public key, a re-encryption key can be generated based on the second public key and the first private key. When generating the re-encryption key based on the second public key and the first private key, multiple methods can also be used. For example, the re-encryption key can be directly generated based on the second public key and the first private key. The following more secure and targeted generation method can also be used: obtain a second constraint for generating a re-encryption key; under the second constraint, generate a re-encryption key based on the second public key and the first private key. Similar to encrypting a session key, the second constraint can be used to generate a re-encryption key according to actual needs. Similarly, the second constraint can be the same constraint as the first constraint mentioned above. For example, it can also be dynamically configured by setting a rule base. Different conditional rules can be selected for different shared objects and sharing requirements, so as to achieve the effect of meeting security and different encryption needs.

[0072] It should be noted that, regardless of whether the re-encryption key is generated directly based on the second public key and the first private key, or the re-encryption key is generated based on the second public key and the first private key under the second constraint, the re-encryption key can be generated based on a predetermined key generation algorithm. The predetermined key generation algorithm can be flexibly selected based on specific needs. For example, the predetermined key generation algorithm can be a method of determining a combination of the second public key and the first private key, or a method of deforming the second public key and the first private key, etc.

[0073] In addition, in the process of generating a re-encryption key based on the second public key and the first private key under the second constraint condition, the first constraint condition and the second constraint condition can be used to verify the encrypted object. For example, the first constraint condition and the second constraint condition can be compared. When the two are exactly the same, it can be considered that there is a corresponding relationship between the second ciphertext generated under the first constraint condition and the re-encryption key generated under the second constraint condition, that is, the re-encryption key can be used to encrypt the second ciphertext to improve the accuracy of the re-encryption process.

[0074] As an optional embodiment, when sending the re-encryption key, the first ciphertext and the second ciphertext to the server, the following method can be used: obtain the identity of the shared information recipient, and encapsulate the first ciphertext and the second ciphertext to obtain the shared ciphertext; send the re-encryption key, the identity and the shared ciphertext to the server. By encapsulating the first ciphertext and the second ciphertext to obtain the shared ciphertext, the shared information sender adopts the encapsulation processing method, which can effectively avoid multiple sending of related encrypted information and effectively improve processing efficiency and security. On the other hand, sending the identity of the shared information recipient to the server can enable the server to first verify the identity of the shared information recipient when encrypting the information encryption ciphertext, so as to avoid the situation where an irregular shared information recipient receives the shared information under a false name, and effectively improve the security of the entire processing process.

[0075] Among them, after the sender of the shared information sends the re-encryption key, the first ciphertext and the second ciphertext to the server, and the server generates the re-encrypted ciphertext, when the receiver of the shared information needs to obtain the target transaction information, the re-encrypted ciphertext can be downloaded from the server. The receiver of the shared information uses the second private key corresponding to the second public key to decrypt the re-encrypted ciphertext to obtain the session key and the above-mentioned first ciphertext, and uses the session key to decrypt the above-mentioned first ciphertext to obtain the above-mentioned target transaction information in plain text form, thereby completing the sharing process of the target transaction information.

[0076] By adopting the above processing, the sender of shared information no longer needs to manage multiple keys, thereby improving the security of information sharing. At the same time, the re-encryption key, identity identification and shared ciphertext are sent to the server, and the server can use the re-encryption key to re-encrypt the shared ciphertext. The sender of shared information only needs to perform encryption once during the entire encryption process, thereby greatly reducing the performance consumption of local encryption.

[0077] It should be noted that the sender of the shared information and the receiver of the shared information can both be parties involved in the financial transaction business process, that is, the receiver of the shared information can be a transaction role that shares the transaction information, and the receiver of the shared information can be a transaction role that receives the transaction information sharing, wherein the transaction role includes at least one of the following: a financial institution that is the business initiator, a monetary authority that is the business initiator, a financial institution that is the business receiver, a monetary authority that is the business receiver, and a monetary authority that is the business currency. Applying the above encryption method to the financial transaction business scenario can realize the sharing of transaction information between multiple financial institutions and multiple financial regulatory agencies at a lower local performance consumption cost, and ensure the security of the shared information during the sharing process.

[0078] In addition, the above-mentioned information sharing method can be applied to the information sharing scenario of blockchain, in which each party in the financial transaction business is a blockchain node, that is, the business initiator financial institution, the business recipient financial institution, the business initiator monetary authority, the business recipient monetary authority, and the business currency authority corresponding to the target transaction information are all connected to the blockchain as blockchain nodes. In the blockchain, a corresponding re-encryption module (for example, it can be a blockchain system proxy re-encryption module (or a distributed key system)) and a computing module (for example, it can be a blockchain system cloud computing module) are included. Based on the blockchain, after the blockchain node that needs to share information (that is, the information sharing sender) sends the above-mentioned re-encryption key, the first ciphertext and the second ciphertext to the blockchain, the server in the blockchain generates a re-encrypted ciphertext. After that, the shared information receiver that needs to receive the shared information downloads the re-encrypted ciphertext from the server, and uses the corresponding private key to decrypt the re-encrypted ciphertext to obtain the ciphertext of the shared target transaction information, thereby realizing one-to-many sharing efficiently and securely.

[0079] Figure 3 is a flow chart of a second transaction information sharing method according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0080] Step S302, receiving a re-encryption key, a first ciphertext, and a second ciphertext sent by the sender of the shared information, wherein the re-encryption key is generated based on the second public key and the first private key, the second public key is the public key in the public-private key pair corresponding to the receiver of the shared information, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information with the session key, the second ciphertext is the ciphertext obtained by encrypting the session key with the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information;

[0081] Step S304, based on a predetermined re-encryption algorithm, using a re-encryption key to encrypt the first ciphertext and the second ciphertext to obtain a re-encrypted ciphertext;

[0082] Step S306, receiving a download request from a shared information recipient;

[0083] Step S308, in response to the download request, the re-encrypted ciphertext is sent to the shared information recipient to obtain the target transaction information, wherein the shared information sender and multiple shared information recipients are nodes in the blockchain.

[0084] Through the above steps, from the above server side, the server receives the re-encryption key, the first ciphertext and the second ciphertext from the sender of the shared information, and uses the received re-encryption key to re-encrypt the first ciphertext and the second ciphertext based on a predetermined re-encryption algorithm to obtain the re-encrypted ciphertext, wherein the re-encrypted ciphertext includes the first ciphertext and the re-encrypted second ciphertext. The encryption process is performed by the server without the need for the sender of the shared information or the receiver of the shared information to perform calculations. While ensuring the security of the re-encryption, the performance consumption of the encryption operation performed locally by the sender of the shared information is reduced, and the efficiency of the re-encryption is improved. After the re-encryption is completed, the server can respond to the download request sent by the receiver of the shared information, so that the receiver of the shared information obtains the re-encrypted ciphertext and completes information sharing, that is, the target transaction information is shared from the sender of the shared information to one or more receivers of the shared information in need, thereby solving the technical problems of low data sharing efficiency, poor security and high local performance consumption caused by the need to perform multiple encryptions locally and manage keys of multiple parties.

[0085] It should be noted that the above-mentioned shared information sender, the above-mentioned shared information receiver and the above-mentioned server can all correspond to the above-mentioned description from the side of the shared information sender, which will not be repeated here. In addition, the above-mentioned target transaction information, the first public-private key pair, the session key, and the second public key can all correspond to the above-mentioned description from the side of the shared information sender, which will not be repeated here. Therefore, the re-encryption key, the first ciphertext and the second ciphertext involved in the above-mentioned step "receiving the re-encryption key, the first ciphertext and the second ciphertext sent by the shared information sender" can all refer to the above-mentioned description from the side of the shared information sender, which will not be repeated here.

[0086] As an optional embodiment, the corresponding session key can also be obtained according to the information transaction setting of the current time, wherein the session key corresponding to each information transaction is different. By setting different session keys for different information transactions, it can be ensured that the key used to encrypt the target transaction information in each information transaction is not repeated. For example, during an information transaction, the current session key is obtained by a third party, but a new session key will be set correspondingly when the target information transaction is carried out next time, that is, the session key obtained by the third party cannot be reused, and the security of the target transaction information of the next time can still be guaranteed, and then the security of the target transaction information in a single information transaction can be improved by setting a non-repeated session key.

[0087] As an optional embodiment, the sender of the shared information is the financial institution of the business initiator of the transaction business corresponding to the target transaction information, and the receiver of the shared information is determined based on the target transaction information, wherein the receiver of the shared information includes at least one of the following: a financial institution of the business receiver, a monetary authority of the business initiator, a monetary authority of the business receiver, and a monetary authority of the business currency. The sender of the shared information may be a financial institution of the business initiator. When the sender of the shared information is a financial institution of the business initiator, the financial institution may share the relevant target transaction information with other institutions through the above-mentioned information sharing method, so as to realize efficient and secure sharing of the target transaction information.

[0088] As an optional embodiment, based on a predetermined re-encryption algorithm, a re-encryption key is used to encrypt the first ciphertext and the second ciphertext. When obtaining the re-encrypted ciphertext, a variety of methods can be used. For example, the following method can be used: when the second ciphertext includes a first constraint condition for encrypting a session key, and when the re-encryption key includes a second constraint condition for generating a re-encryption key, the first constraint condition is obtained from the second ciphertext and the second constraint condition is obtained from the re-encryption key; whether the first constraint condition and the second constraint condition are consistent is detected, and when the detection result is consistent, the first ciphertext and the second ciphertext are encrypted with the re-encryption key based on the predetermined re-encryption algorithm to obtain the re-encrypted ciphertext. Before re-encrypting, the server first compares the first constraint used to encrypt the session key with the second constraint used to generate the re-encryption key to determine whether there is a correlation between the re-encryption key received by the server and the second ciphertext. If the two constraints are the same, it proves that the re-encryption key is used to re-encrypt the second ciphertext, and the server continues the re-encryption operation. Conversely, if the two constraints are different, it means that the re-encryption key cannot re-encrypt the second ciphertext, and the server terminates the current re-encryption operation, thereby avoiding problems such as incorrect encryption and encryption failure on the server, and thus improving the efficiency of re-encryption.

[0089] Among them, the first constraint condition and the second constraint condition are the same as the description from the sender of the shared information. Through the above processing, when the first constraint condition and the second constraint condition are the same, the receiver of the shared information can be verified again from the server side. When the verification is passed, the first ciphertext and the second ciphertext are encrypted based on the predetermined re-encryption algorithm and the re-encryption key to obtain the re-encrypted ciphertext, which effectively avoids unsafe operations and ensures safe re-encryption operations.

[0090] It should be noted that when comparing the first constraint and the second constraint, the comparison requirements can be determined according to specific needs. For example, the first constraint and the second constraint can be confirmed to be consistent only when the comparison items corresponding to the first constraint and the second constraint are the same; or the first constraint and the second constraint can be confirmed to be consistent when the number of the same items of the comparison items corresponding to the second constraint exceeds a predetermined item number threshold. As described above from the side of the sender of the shared information, the comparison items corresponding to the first constraint and the second constraint can be the shared object, shared time, shared method, shared scope, etc.

[0091] As an optional embodiment, based on a predetermined re-encryption algorithm, the first ciphertext and the second ciphertext are encrypted with a re-encryption key. When the re-encrypted ciphertext is obtained, in order to further ensure security, before re-encryption, the two parties of information sharing, i.e., the sender of the shared information and the receiver of the shared information, can be authenticated. After both are authenticated, the re-encryption operation can be performed. For example, the following method can be used: first obtain the identity identifier of the sender of the shared information and the identity identifier of the receiver of the shared information; authenticate the sender of the shared information based on the identity identifier of the sender of the shared information, and authenticate the receiver of the shared information based on the identity identifier of the receiver of the shared information; when the sender of the shared information is authenticated and the receiver of the shared information is authenticated, based on the predetermined re-encryption algorithm, the first ciphertext and the second ciphertext are encrypted with a re-encryption key to obtain the re-encrypted ciphertext. Before re-encryption, the server can authenticate the identities of the sender and receiver of the shared information by using the obtained identity identifier, so as to ensure that the first ciphertext, the second ciphertext and the re-encryption key sent by the sender of the shared information are valid before the server performs re-encryption. The server can also determine the association between the ciphertext received by the server and the ciphertext corresponding to the received download request through the identity identifiers of both the sender and the receiver of the shared information, so that the receiver of the shared information can obtain the required ciphertext information, and can also ensure that the receiver of the shared information who requests to download the re-encrypted ciphertext has the right to share the ciphertext information, thereby ensuring that the information will not be sent to a third party other than the sender and receiver when shared, thereby ensuring the security of the shared information.

[0092] It should be noted that the identity identifier of the sender of the shared information may be the digital identity certificate of the sender of the shared information, and the identity identifier of the receiver of the shared information may also be the digital identity certificate of the receiver of the shared information. The digital identity certificate of the sender of the shared information may be a certificate issued to the sender of the shared information to indicate the legitimacy of the identity after the authoritative digital identity authentication agency verifies the identity of the sender of the shared information. The digital identity certificate of the receiver of the shared information may also be a certificate issued to the receiver of the shared information to indicate the legitimacy of the identity after the authoritative digital identity authentication agency verifies the identity of the receiver of the shared information. The server recognizes the verification of the authoritative digital identity authentication agency.

[0093] As an optional embodiment, the sender of the shared information can be a transaction role that shares the transaction information, and the receiver of the shared information can be a transaction role that receives the transaction information sharing, wherein the transaction role includes at least one of the following: a financial institution that is the business initiator, a monetary authority that is the business initiator, a financial institution that is the business receiver, a monetary authority that is the business receiver, and a monetary authority that is the business currency. Applying the above encryption method to the financial transaction business scenario can realize the sharing of transaction information between multiple financial institutions and multiple financial regulatory agencies at a lower local performance consumption cost, and ensure the security of the shared information during the sharing process.

[0094] Figure 4 is a flow chart of a third transaction information sharing method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:

[0095] Step S402, obtaining a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key;

[0096] Step S404, sending the second public key to the sender of the shared information;

[0097] Step S406, sending a download request to the server, and receiving the re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed by a shared information sender and multiple shared information receivers as nodes, the re-encrypted ciphertext is generated by the server based on a re-encryption key, a first ciphertext, and a second ciphertext, the re-encryption key is generated based on a second public key and a first private key, the first private key is a private key in a public-private key pair corresponding to the shared information sender, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in a public-private key pair corresponding to the shared information sender;

[0098] Step S408, based on a predetermined decryption algorithm, using the second private key to decrypt the re-encrypted ciphertext to obtain a session key and the first ciphertext;

[0099] Step S410: Decrypt the first ciphertext using the session key to obtain target transaction information.

[0100] Through the above steps, from the side of the shared information receiver, the shared information receiver who needs to obtain the target transaction information first sends the second public key to the shared information sender corresponding to the target shared information, and then sends a ciphertext download request to the server. After the server responds to the download request, the shared information receiver can download the re-encrypted ciphertext, that is, the first ciphertext and the re-encrypted second ciphertext. Afterwards, since the decryption key of the re-encrypted second ciphertext is changed from the original first private key of the shared information sender to the second private key of the shared information receiver after the predetermined re-encryption algorithm, the shared information receiver can use the second private key corresponding to the second public key to decrypt the re-encrypted second ciphertext and obtain the session key, and then use the session key to decrypt the first ciphertext to obtain the target transaction information, thereby completing the information sharing from the shared information sender to the shared information receiver.

[0101] It should be noted that since the above-mentioned second ciphertext is re-encrypted, and the encryption method does not need to decrypt the ciphertext to obtain plaintext when replacing the key corresponding to the ciphertext, nor does it involve the disclosure or use of plaintext. Therefore, during the re-encryption process, the information security of the above-mentioned target transaction information can be guaranteed, thereby improving the security of the entire information sharing.

[0102] It should be noted that, no matter there are one or more recipients of the shared information, the required target transaction information can be obtained through the above method, that is, the sender of the shared information only needs to encrypt it locally once to complete the sharing authorization corresponding to one or more recipients of the shared information, thereby solving the technical problems of low data sharing efficiency, poor security and high local performance consumption caused by the need to perform multiple encryptions locally and manage multiple party keys.

[0103] As an optional embodiment, the second public-private key pair is a public-private key pair corresponding to the shared information recipient, and the second public-private key can be directly generated by the shared information recipient or by a dedicated key generation mechanism. It should be noted that, whether generated by the shared information recipient or by a dedicated key generation mechanism, the generation of the second public-private key can be achieved by using a predetermined key generation algorithm.

[0104] It should be noted that the above-mentioned shared information sender, the above-mentioned shared information receiver and the above-mentioned server can all correspond to the above-mentioned description from the side of the shared information sender and from the side of the server, which will not be repeated here. In addition, the above-mentioned target transaction information, the first public key and the first private key included in the first public-private key pair, the session key, and the second public key and the second private key included in the second public-private key pair can all correspond to the above-mentioned description from the side of the shared information sender and from the side of the server, which will not be repeated here. Therefore, in the above-mentioned re-encrypted ciphertext, the first ciphertext and the second ciphertext can all refer to the above-mentioned description from the side of the shared information sender or the server, which will not be repeated here.

[0105] As an optional embodiment, correspondingly, the above-mentioned session key is obtained according to the setting of the current information transaction, wherein the session key corresponding to each information transaction is different. By setting different session keys for different information transactions, it can be ensured that the key used to encrypt the target transaction information in each information transaction is non-repetitive. For example, during an information transaction, the current session key is obtained by a third party, but a new session key will be set correspondingly when the target information transaction is carried out next time, that is, the session key obtained by the third party cannot be reused, and the security of the target transaction information next time can still be guaranteed, and then the security of the target transaction information in a single information transaction can be improved by setting a non-repetitive session key.

[0106] As an optional embodiment, the sender of shared information is the financial institution that is the business initiator of the transaction business corresponding to the target transaction information, and the recipient of shared information is determined based on the target transaction information, wherein the recipient of shared information includes at least one of the following: a financial institution that is the business recipient, a monetary authority that is the business initiator, a monetary authority that is the business recipient, and a monetary authority that is the business currency.

[0107] As an optional embodiment, when sending the second public key to the sender of the shared information, multiple methods can be used. For example, the receiver of the shared information can directly send the second public key to the sender of the shared information. In order to ensure the security of communication, the second public key can be sent to the sender of the shared information in a secret manner. For example, the following methods can be used: obtaining the signature certificate and the second public key of the receiver of the shared information; generating a data message based on the signature certificate and the second public key; and sending the data message to the sender of the shared information. Sending the second public key to the sender of the shared information by sending a data message effectively avoids directly sending the second public key and ensures the security of transmission. Moreover, when the receiver of the shared information sends the second public key to the sender of the shared information, it also sends the signature certificate. On the one hand, if the receiver of the shared information has the right to share the target transaction information, the signature certificate can be used to prove the identity of the receiver of the shared information. On the other hand, if the receiver of the shared information does not have the right to share the target transaction information, the sender of the shared information can also obtain the identity information of the receiver of the shared information based on the signature certificate, and then decide whether to authorize the receiver of the shared information based on the identity information, thereby not only improving the security of information sharing, but also enhancing the flexibility of shared authorization.

[0108] It should be noted that the signature certificate of the above-mentioned shared information receiver (same as the above-mentioned digital identity certificate) can also be a certificate issued to the shared information receiver by an authoritative digital identity authentication agency after verifying the identity of the shared information receiver to indicate the legitimacy of the identity. The shared information sender agrees with the verification of the above-mentioned authoritative digital identity authentication agency.

[0109] As an optional embodiment, when sending a download request to a server, multiple methods may be used, for example, the following method may be used: obtaining the identity identifier of the shared information recipient; sending a download request to the server, wherein the download request carries the identity identifier. By sending a download request carrying the identity identifier to the server, the server can authenticate the identity of the shared information recipient based on the identity identifier to prove that the recipient who requests to download the re-encrypted ciphertext has the right to share the ciphertext information, thereby ensuring that the information will not be sent to a third party other than the sender and recipient of the shared information when it is shared, thereby ensuring the security of the shared information.

[0110] Figure 5 is a flow chart of a fourth transaction information sharing method according to an embodiment of the present invention. Figure 5 As shown, the method comprises the following steps:

[0111] Step S502: The sender of the shared information obtains the target transaction information, the first public-private key pair, and the session key, wherein the first public-private key pair is the public-private key pair corresponding to the sender of the shared information, including the first public key and the first private key;

[0112] Step S504: the sender of the shared information encrypts the target transaction information using the session key to obtain a first ciphertext, and encrypts the session key using the first public key to obtain a second ciphertext;

[0113] Step S506: The shared information recipient obtains a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key;

[0114] Step S508, the shared information receiver sends the second public key to the shared information sender;

[0115] Step S510: The sender of the shared information generates a re-encryption key based on the second public key and the first private key, and sends the re-encryption key, the first ciphertext and the second ciphertext to the server;

[0116] Step S512: the server encrypts the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext;

[0117] Step S514, the shared information receiving party sends a download request to the server;

[0118] Step S516, the server sends the re-encrypted ciphertext to the shared information recipient in response to the download request;

[0119] Step S518, the shared information recipient decrypts the re-encrypted ciphertext based on the second private key to obtain the target transaction information;

[0120] Among them, the sender of shared information and multiple receivers of shared information are nodes in the blockchain.

[0121] Through the above steps, from the perspective of the transaction information sharing system as a whole, the sender of the shared information only needs to encrypt the target transaction information once locally, and generate a re-encryption key based on the first private key and the second public key sent by the receiver of the shared information, and send the encrypted ciphertext and the re-encryption key to the server. The server then uses the re-encryption key to re-encrypt the ciphertext to obtain the re-encrypted ciphertext, wherein the re-encrypted ciphertext includes the first ciphertext and the re-encrypted second ciphertext. After sending the second public key to the sender of the shared information, the receiver of the shared information can download the re-encrypted ciphertext from the server, and the receiver of the shared information can use its own second private key to re-encrypt the ciphertext. The key can directly complete the decryption of the re-encrypted ciphertext, that is, use the second private key to decrypt the re-encrypted second ciphertext to obtain the session key, and then use the session key to decrypt the first ciphertext to obtain the target transaction information. In the transaction information sharing system, the entire information sharing process can be carried out efficiently and the security of the target transaction information is guaranteed. The sender of the shared information only needs to encrypt once locally to achieve flexible authorized sharing of one or more shared information recipients, thereby solving the technical problems of low data sharing efficiency, poor security and high local performance consumption caused by the need to perform multiple encryptions locally and manage keys of multiple parties.

[0122] It should be noted that the above-mentioned shared information sender, the above-mentioned shared information receiver and the above-mentioned server can all correspond to the above-mentioned description from the side of the shared information sender, from the side of the server, and from the side of the shared information receiver, and will not be repeated here. In addition, the above-mentioned target transaction information, the first public key and the first private key included in the first public-private key pair, the session key, and the second public key and the second private key included in the second public-private key pair can all correspond to the above-mentioned description from the side of the shared information sender and from the side of the server, and will not be repeated here.

[0123] As an optional embodiment, the session key is set according to the current information transaction, wherein each information transaction corresponds to a different session key. By setting different session keys for different information transactions, it can be ensured that the key used to encrypt the target transaction information in each information transaction is not repeated. For example, during an information transaction, the current session key is obtained by a third party, but a new session key will be set correspondingly for the next target information transaction, that is, the session key obtained by the third party cannot be reused, and the security of the next target transaction information can still be guaranteed. In turn, the security of the target transaction information in a single information transaction can be improved by setting a non-repeated session key.

[0124] As an optional embodiment, the sender of shared information is the financial institution that is the business initiator of the transaction business corresponding to the target transaction information, and the recipient of shared information is determined based on the target transaction information, wherein the recipient of shared information includes at least one of the following: a financial institution that is the business recipient, a monetary authority that is the business initiator, a monetary authority that is the business recipient, and a monetary authority that is the business currency.

[0125] As an optional embodiment, when the sender of shared information uses the first public key to encrypt the session key and obtains the second ciphertext, the first public key can be used to directly encrypt the session key, or the following method can be used to meet the diversified and security requirements in the actual application process: the sender of shared information obtains the first constraint condition for encrypting the session key; the sender of shared information uses the first public key to encrypt the session key under the first constraint condition to obtain the second ciphertext. By using the first public key to encrypt the session key based on the first constraint condition, the sender of shared information can, on the one hand, specifically regulate the encryption of the session key under different conditions, and on the other hand, improve the security of encryption. For example, for different conditions, restrictions on different identity roles of visitors, attribute requirements of the proxy re-encryption key (for example, usage time), etc. can be included to meet different encryption needs. In addition, the constraint condition can also be dynamically configured by setting a rule base, and different condition rules can be selected for different shared objects and sharing requirements. Among them, the condition items included in the first constraint condition can be multiple, and the above-mentioned condition rules can also be multiple, similar to the above-mentioned embodiment, which will not be repeated here.

[0126] As an optional embodiment, when the sender of shared information generates a re-encryption key based on the second public key and the first private key, the sender can directly generate the re-encryption key based on the second public key and the first private key, or can adopt the following method to meet the diverse needs in actual application scenarios: the sender of shared information obtains the second constraint condition for generating the re-encryption key; the sender of shared information generates the re-encryption key based on the second public key and the first private key under the second constraint condition. Similar to encrypting the session key, the second constraint condition can be used to generate the re-encryption key according to actual needs. Similarly, the second constraint condition can also be dynamically configured by setting a rule base. Different condition rules can be selected for different shared objects and sharing requirements, so as to achieve the effect of meeting security and different encryption needs.

[0127] As an optional embodiment, the server uses a re-encryption key to encrypt the first ciphertext and the second ciphertext based on a predetermined re-encryption algorithm to obtain the re-encrypted ciphertext. The following method can be used: the server detects whether the first constraint condition and the second constraint condition are consistent, and if the detection result is consistent, the server uses the re-encryption key to encrypt the first ciphertext and the second ciphertext based on the predetermined re-encryption algorithm to obtain the re-encrypted ciphertext. Before re-encrypting, the server first compares the first constraint condition used to encrypt the session key with the second constraint condition used to generate the re-encryption key to determine whether there is an association between the re-encryption key received by the server and the second ciphertext. If the two constraints are the same, it proves that the re-encryption key is used to re-encrypt the second ciphertext, and the server continues the re-encryption operation. On the contrary, if the two constraints are different, it means that the re-encryption key cannot re-encrypt the second ciphertext, and the server terminates the current re-encryption operation, thereby avoiding problems such as incorrect encryption and encryption failure on the server, thereby improving the efficiency of re-encryption.

[0128] Figure 6 is an overall interaction sequence diagram of the transaction information sharing method according to an embodiment of the present invention, such as Figure 6 As shown, the transaction information sharing system for implementing the transaction information sharing method includes: a shared information sender, a server and one or more shared information receivers, wherein, in the embodiment, the shared information sender is a business initiator financial institution, the shared information receiver is a business receiver financial institution (the figure takes the number of business receiver financial institutions as one for illustration), and the server is a blockchain server in the blockchain as an example. The business initiator financial institution and one or more business receiver financial institutions form a blockchain in the form of blockchain nodes, and the server includes a re-encryption module in the blockchain for re-encrypting the target transaction information and a computing module for cloud computing.

[0129] In this embodiment, the business initiator financial institution needs one or more other institutions (the business recipient financial institution is taken as an example in the figure) to share a target transaction information, and the transaction information includes multiple information contents, for example, it can include the institutions of the two parties of the transaction (transaction initiator institution, transaction recipient institution), the business content of the transaction (for example, it can be the specific payment of the transaction), the transaction amount, the transaction currency, etc. The process of the transaction information sharing method is described below.

[0130] S1, the business initiator financial institution (hereinafter referred to as financial institution A) obtains the above target transaction information. For example, when receiving a request for sharing a certain target transaction information, the storage server of financial institution A is queried based on the characteristics of the target transaction information. When the target transaction information is found, the storage server is retrieved from the storage server.

[0131] S2, financial institution A obtains a first public-private key pair with the financial institution A, wherein in the process of obtaining the first public-private key pair, the first public-private key pair may be generated by the financial institution A based on a predetermined key generation algorithm, or may be generated from an authoritative key generation institution based on the predetermined key generation algorithm. In addition, the first public-private key pair includes a first public key and a first private key;

[0132] S3, financial institution A obtains a session key for sharing the target transaction information, wherein the session key may be generated based on a predetermined key generation algorithm. The session key may be valid only for this information sharing, that is, the session key may be a one-time use. It should be noted that the steps of obtaining the target transaction information, obtaining the first public-private key pair, and obtaining the session key may be performed simultaneously or in different time periods, which is not limited in this embodiment.

[0133] S4, financial institution A uses the session key to encrypt the target transaction information to obtain a first ciphertext.

[0134] S5, financial institution A uses the first public key to encrypt the session key to obtain a second ciphertext, wherein, to ensure security, the first constraint condition may be combined when the session key is encrypted using the first public key.

[0135] S6, the business recipient financial institution (hereinafter referred to as financial institution B) obtains the second public-private key pair of financial institution B. The second public-private key pair includes: a second public key and a second private key. In the process of obtaining the second public-private key pair, it can be generated by the financial institution B based on a predetermined key generation algorithm, or it can be generated from an authoritative key generation agency based on the predetermined key generation algorithm. The authoritative key generation agency that generates the first public-private key connection and the authoritative key generation agency that generates the second public-private key pair can be the same authoritative agency. In addition, the acquisition of the second public-private key pair by financial institution B and the acquisition of the first public-private key pair by financial institution A, the target transaction information, and the session key can be carried out simultaneously or in order, which is not limited in this embodiment.

[0136] S7, financial institution B sends the second public key to financial institution A.

[0137] S8, financial institution A generates a re-encryption key based on the second public key and the first private key, wherein when financial institution A generates the re-encryption key based on the second public key and the first private key, in order to improve security and meet personalized requirements, the re-encryption key can be generated based on the second public key and the first private key in combination with a second constraint condition.

[0138] S9, financial institution A sends the re-encryption key, the first ciphertext and the second ciphertext to the server;

[0139] S10, the server encrypts the first ciphertext and the second ciphertext using the re-encryption key to obtain a re-encrypted ciphertext, wherein when the first ciphertext and the second ciphertext are encrypted using the re-encryption key, a predetermined re-encryption algorithm may be used, and the selection of the re-encryption algorithm may be determined based on demand;

[0140] S11, financial institution B sends a download request to the server, i.e., requests to obtain target transaction information, wherein the download request may carry a digital identity certificate used to prove the identity of financial institution B;

[0141] S12, the server responds to the download request and sends the re-encrypted ciphertext to financial institution B;

[0142] S13, financial institution B uses the second private key to decrypt the re-encrypted ciphertext to obtain the session key and the first ciphertext;

[0143] S14, financial institution B uses the session key to decrypt the first ciphertext to obtain the plaintext data of the above target transaction information.

[0144] In the transaction information sharing method of this embodiment, financial institution A generates a re-encryption key based on the second public key of financial institution B and sends the re-encryption key to the server. The server uses the re-encryption key to complete the proxy re-encryption process to obtain the re-encrypted ciphertext. When financial institution B needs the shared information, it downloads the re-encrypted ciphertext from the server and uses the second private key to decrypt the re-encrypted ciphertext to obtain the plaintext data of the target transaction information shared by financial institution A. With the above processing, the re-encryption key is generated only once in financial institution A, and the re-encrypted ciphertext is subsequently generated by the server. Financial institution A only needs simple key management and encryption process, which effectively reduces the performance consumption of financial institution A. On the other hand, with the above re-proxy encryption process, one financial institution A can efficiently and securely share information with multiple recipients of shared information.

[0145] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation mode, which is described below.

[0146] In digital financial scenarios, there are a lot of scenarios where the same information needs to be authorized and shared among multiple entities. For example, in cross-border scenarios, the payer bank needs to encrypt and share the same information with the business recipient financial institution, the business initiator's monetary authority, the business recipient's monetary authority, and the business currency monetary authority. The monetary authority is generally the central bank of the country where the business is located.

[0147] However, for the above application scenarios, asymmetric encryption protocols are usually used in related technologies for bilateral communication, that is, the data receiver sends the public key to the data sharing party, uses its public key to encrypt the data, and the data receiver uses the private key to decrypt the data. When the above method is used in multi-party communication scenarios, there are big problems. For example, the data sharing party needs to perform multiple encryptions locally first, and then transmit the data to the chain through the network, which will cause a lot of performance consumption to the data sharing party, and the use of local rather than cloud computing power encryption will also cause low encryption efficiency. At the same time, in the above method, users also need to manage the public and private keys of multiple parties, and there are also big problems with key transmission and key security management.

[0148] In view of the above problems, an optional implementation method of the present invention proposes a multi-party sharing method of transaction supervision information based on blockchain. Figure 7 is a flowchart of a multi-party sharing method of transaction supervision information based on blockchain according to an optional implementation mode of the present invention, such as Figure 7 As shown in the figure, the roles in this scheme include: server (proxy re-encryption platform in blockchain system, cloud computing platform in blockchain system), sender of shared information (financial institution of business initiator), receiver of shared information (financial institution of business receiver, multiple relevant financial regulatory agencies (monetary authority of business initiator, monetary authority of business receiver, monetary authority of business currency)). Among them, each sender of shared information, receiver of shared information and server are blockchain roles and are connected to the blockchain in the form of nodes. The following is an introduction to the transaction roles and corresponding parameters involved in this scheme:

[0149] (1) Financial institution A (sender of shared information)

[0150] The financial institution A, the business initiator, needs to share the transaction information plaintext P with relevant parties for each transaction. A In order to encrypt information, in the solution, the financial institution that initiates the business needs to generate a public-private key pair Pk A ,Sk A Each transaction also needs to generate a session key CEK to encrypt the plaintext transaction information. A (Each transaction is different), using envelope encryption to encrypt transaction information, that is, using CEK A Encrypted transaction information plaintext P A (The encrypted ciphertext is C A ), using the public key Pk A To encrypt the session key CEK of this transaction information A (The encrypted ciphertext is C KEK ), the ciphertext C generated by envelope encryption A and C KEK Composition ciphertext T A .

[0151] (2) Financial institution B (recipient of shared information)

[0152] Refers to the financial institution that receives the business. In the solution, it is necessary to generate a public-private key pair Pk B ,Sk B .

[0153] (3) Monetary authority S A (Recipient of shared information)

[0154] Refers to the central bank of the country to which the business initiator belongs. According to anti-money laundering requirements, it is necessary to obtain the target transaction information. In the solution, it is necessary to generate a public-private key pair Pk SA ,Sk SA , where the public key is used to generate the re-encryption key and the private key is used to decrypt the ciphertext. The identity ID of the monetary authority that initiated the business is ID SA .

[0155] (4) Monetary authority S of the recipient of the transaction B (Recipient of shared information)

[0156] Refers to the central bank of the country to which the business recipient belongs. According to anti-money laundering requirements, it is necessary to obtain the target transaction information. The solution needs to generate a public-private key pair Pk SB ,Sk SB , where the public key is used to generate the re-encryption key and the private key is used to decrypt the ciphertext. The identity ID of the monetary authority that initiated the business is ID SB .

[0157] (5) Business currency monetary authority S M (Recipient of shared information)

[0158] Refers to the central bank corresponding to the business currency. According to anti-money laundering requirements, it is necessary to obtain the target transaction information and generate a public-private key pair Sk SM , Pk SM , where the public key is used to generate the re-encryption key and the private key is used to decrypt the ciphertext. The identity ID of the monetary authority that initiated the business is ID SM .

[0159] (6) Proxy re-encryption platform (server) in blockchain system

[0160] It is mainly used to re-encrypt the ciphertext. During encryption, the identity ID of each relevant financial regulatory agency (i.e. the recipient of shared information) will be judged. If the identity ID does not match, subsequent re-encryption will not be performed.

[0161] (7) Cloud computing platform (server) in blockchain system

[0162] It is mainly used to store ciphertext of transaction information and provide computing power and capabilities for re-encryption.

[0163] (8) Proxy re-encryption algorithm

[0164] This solution uses a public proxy re-encryption algorithm that meets the CCA security conditions to support the implementation, including the initialization algorithm Setup, the re-encryption key generation RekeyGen algorithm, the re-encryption ReEnc algorithm, the decryption algorithm ReEnc algorithm, etc. through the algorithm module. The proxy re-encryption key is Rekey, the business initiator financial institution A is the business recipient financial institution B, and the business initiator monetary authority S A , the monetary authority of the recipient of the transaction S B , business currency monetary authority S M The re-encryption keys generated by each are ReKey (A-B) 、ReKey (A-SA) 、ReKey (A-SB) 、ReKey (A-SM) .

[0165] (9) Based on the relevant constraints C

[0166] The constraint conditions C can be diverse, such as restrictions on different identity roles of visitors, attribute requirements of proxy re-encryption keys (such as usage time), etc. The conditional rules C can be dynamically configured by setting the rule base. Different conditional rules can be selected for different sharing objects and requirements.

[0167] Specifically, the method for multi-party sharing of transaction supervision information based on blockchain proposed in an optional implementation manner of the present invention includes the following steps:

[0168] (1) Key and certificate generation

[0169] The business initiator financial institution A (corresponding to the sender of the shared information mentioned above), the shared information receiver (including the business receiver financial institution B, the business initiator monetary authority S A 、Monetary authority of the recipient of the transaction S B , Business Currency Monetary Authority S M ) respectively generate their own key pairs for encryption (Pk A ,Sk A ), (Pk B ,Sk B ), (Pk SA ,Sk SA ), (Pk SB ,Sk SB ), (Pk SM ,Sk SM ). In order to verify identity, each organization generates a key (CertA ,Sk A-sign )、(Cert B ,Sk B-sign )、(Cert SA ,Sk SA-sign )、(Cert SB-sign ,Sk SB-sign )、(Cert SM ,Sk SM-sign ), where Cert is the certificate.

[0170] (2) Financial institution A, the business initiator, encrypts the target transaction information off-chain in combination with constraint C.

[0171] A specific cross-border transaction request is initiated between the business initiator financial institution A and the industry recipient financial institution B to determine the relevant transaction information P A , including amount and currency. The transaction initiator, financial institution A, generates the session key CEK corresponding to this transaction A (Each transaction is different), using envelope encryption to encrypt transaction information, that is, using CEK A Encrypted transaction information plaintext P A , the encrypted ciphertext is C A ; Then use the public key Pk A The session key CEK that encrypts this transaction information is used together with the constraint C A , the encrypted ciphertext is C KEK , the ciphertext C generated by envelope encryption A and C KEK Composition of transaction supervision information ciphertext T A (According to international rules on cross-border transactions, this transaction information needs to be shared with the monetary authority of the business initiator S A 、Monetary authority of the recipient of the transaction S B , Business Currency Monetary Authority S M and other relevant regulatory bodies).

[0172] (3) The recipient of the shared information submits the encrypted public key

[0173] The recipients of the shared information (financial institution B as the recipient of the business, monetary authority of the business initiator, monetary authority of the business recipient, and monetary authority of the business currency) submit their respective encrypted public keys Pk to the financial institution A as the initiator of the business. B and Certificate B , Pk SB and Certificate SB , Pk SM and Certificate SM , Pk SA and Certificate SA, before sending and using their respective certificate private keys Sk B-sign ,Sk SA-sign ,Sk SB-sign ,Sk SM-sign Sign the request.

[0174] (4) Financial institution A, the business initiator, confirms the encrypted public key of the shared information recipient

[0175] The business recipient financial institution B sends the encrypted Pk B and Certificate B For example, A first uses Cert B Verify the signature request, confirm that it is a message from B, and then save its public key Pk B The encrypted public key Pk of other monetary authorities SA , Pk SB , Pk SM Verify and accept the save in the same way.

[0176] (5) Generate a re-encryption key based on constraint C

[0177] The financial institution A that initiates the business uses the private key Sk A , the public key and identity ID of the shared information recipient (Pk B , ID B ), (Pk SA , ID SA ), (Pk SB , ID SB ), (Pk SM , ID SM ), constraint C, re-encryption key generation RekeyGen algorithm, generate their own re-encryption key ReKey (A-B) 、ReKey (A-SA) 、ReKey (A-SB) 、ReKey (A-SM) .

[0178] (6) The first ciphertext T corresponding to the target transaction information A The re-encryption key corresponding to each shared information recipient is uploaded to the chain

[0179] The financial institution A that initiates the business sends the first ciphertext T corresponding to the target transaction information A The re-encryption key corresponding to each shared information recipient and the identity ID of each shared information recipient are uploaded to the server (blockchain proxy re-encryption system and cloud platform) (where the first ciphertext T A stored in a cloud storage platform).

[0180] (7) Re-encryption authorization judgment of target transaction information based on constraint conditions

[0181] To be sent to the business initiator monetary authority S A As an example, the proxy re-encryption platform in the blockchain system first determines the re-encryption key ReKey (A-SA) The constraint C and the re-encrypted ciphertext C in KEK Check whether the constraint condition C is consistent. If not, encryption is stopped. If consistent, re-encryption is carried out.

[0182] (8) Server re-encryption

[0183] To be sent to the business initiator monetary authority S A As an example, after the identity judgment authorization is passed, the proxy re-encryption platform in the blockchain system is based on the re-encryption ReEnc algorithm and the ciphertext T A (Only for C KEK Re-encryption), re-encryption key ReKey (A-SA) , re-encrypt and generate the re-encrypted ciphertext T A-SA Repeat similar operations for each shared information recipient (business recipient financial institution B, business recipient monetary authority S B , Business Currency Monetary Authority S M ) respectively generate the re-encrypted ciphertext T A-B 、T A-SB 、T A-SM . T A-SA 、T A-B 、T A-SB 、T A-SM The encrypted data is saved and backed up in the cloud platform.

[0184] (9) Download the re-encrypted ciphertext

[0185] Each recipient of shared information (financial institution B, monetary authority S) B , Business Currency Monetary Authority S M ) Download the re-encrypted ciphertext T from the cloud platform A-B 、T A-SB 、T A-SM .

[0186] (10) Obtaining the session key

[0187] Taking the business recipient financial institution B as an example, the business recipient financial institution B uses its private key SK B , decryption algorithm ReEnc algorithm, decryption re-encryption ciphertext T A-B , obtain the session key CEK A .

[0188] (11) Decryption

[0189] Based on the first ciphertext C A and session key CEK A , decrypted by symmetric encryption algorithm to obtain the target transaction information plaintext information P A . This completes the sharing of transaction supervision ciphertext information.

[0190] The optional implementation of the present invention has the following advantages:

[0191] (1) Users only need to encrypt once to achieve multiple authorizations;

[0192] (2) Reduces the key management pressure on users;

[0193] (3) Make full use of the blockchain cloud system (rather than the client) for encryption, which improves efficiency;

[0194] (4) When adding stakeholders, more flexible access authorization delegation and fine-grained authorization sharing can be achieved;

[0195] (5) The overall security of the solution and the scalability of the system are higher.

[0196] According to an embodiment of the present invention, a device for implementing the first transaction information sharing method is also provided. Figure 8 is a structural block diagram of a transaction information sharing device 1 provided in this embodiment, such as Figure 8 As shown, the device includes: a first acquisition module 81, a first encryption module 82, a first generation module 83 and a first sending module 84. The device is described below.

[0197] The first acquisition module 81 is used to obtain the target transaction information, the first public-private key pair, and the session key, wherein the first public-private key pair is the public-private key pair corresponding to the sender of the shared information, including the first public key and the first private key; the first encryption module 82 is connected to the above-mentioned first acquisition module 81, and is used to encrypt the target transaction information with the session key to obtain the first ciphertext, and encrypt the session key with the first public key to obtain the second ciphertext; the first generation module 83 is connected to the above-mentioned first encryption module 82, and is used to obtain the second public key, and generate a re-encryption key based on the second public key and the first private key, wherein the second public key is the public key in the public-private key pair corresponding to the receiver of the shared information; the first sending module 84 is connected to the above-mentioned first generation module 83, and is used to send the re-encryption key, the first ciphertext and the second ciphertext to the server, so that the server generates the re-encrypted ciphertext for the receiver of the shared information to download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in the blockchain formed by the sender of the shared information and multiple receivers of the shared information as nodes.

[0198] As an optional embodiment, the first encryption module 81 includes: a first acquisition unit, used to obtain a first constraint condition for encrypting a session key; a first encryption unit, used to encrypt the session key using a first public key under the first constraint condition to obtain a second ciphertext.

[0199] As an optional embodiment, the first generation module 83 includes: a second acquisition unit, used to acquire a data message from a shared information recipient, wherein the data message carries a signature certificate and a second public key of the shared information recipient; a first verification unit, used to verify the shared information recipient based on the signature certificate, and extract the second public key from the data message if the verification passes.

[0200] As an optional embodiment, the first generation module 83 includes: a third acquisition unit, used to acquire the second constraint condition for generating the re-encryption key; and a first generation unit, used to generate the re-encryption key based on the second public key and the first private key under the second constraint condition.

[0201] As an optional embodiment, the first sending module 84 includes: a fourth acquisition unit, used to obtain the identity of the recipient of the shared information, and to encapsulate the first ciphertext and the second ciphertext to obtain a shared ciphertext; a first sending unit, used to send the re-encryption key, the identity and the shared ciphertext to the server.

[0202] As an optional embodiment, the shared information recipient is a transaction role that shares transaction information, and the shared information recipient is a transaction role that receives shared transaction information, wherein the transaction role includes at least one of the following: a financial institution that is the initiator of the transaction business, a monetary authority that is the initiator of the transaction business, a financial institution that is the recipient of the transaction business, a monetary authority that is the recipient of the transaction business, and a currency monetary authority.

[0203] According to an embodiment of the present invention, a device for implementing the second transaction information sharing method is also provided. Fig. 9 is a structural block diagram of a second transaction information sharing device provided in this embodiment. Fig. 9 As shown, the device includes: a first receiving module 91, a second encryption module 92, a second receiving module 93 and a second sending module 94. The device is described below.

[0204] The first receiving module 91 is used to receive the re-encryption key, the first ciphertext and the second ciphertext sent by the sender of the shared information, wherein the re-encryption key is generated based on the second public key and the first private key, the second public key is the public key in the public-private key pair corresponding to the receiver of the shared information, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information using the session key, the second ciphertext is the ciphertext obtained by encrypting the session key using the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information; the second encryption module 92 is connected to the first receiving module 91, and is used to encrypt the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain the re-encrypted ciphertext; the second receiving module 93 is connected to the second encryption module 92, and is used to receive a download request from the receiver of the shared information; the second sending module 94 is connected to the second receiving module 93, and is used to send the re-encrypted ciphertext to the receiver of the shared information in response to the download request to obtain the target transaction information, wherein the sender of the shared information and the multiple receivers of the shared information are nodes in the blockchain.

[0205] As an optional embodiment, the second encryption module 92 includes: a fifth acquisition unit, used to obtain the first constraint condition from the second ciphertext and the second constraint condition from the re-encryption key when the second ciphertext includes a first constraint condition for encrypting the session key and the re-encryption key includes a second constraint condition for generating the re-encryption key; a first detection unit, used to detect whether the first constraint condition and the second constraint condition are consistent, and when the detection result is consistent, encrypting the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext.

[0206] As an optional embodiment, the second encryption module 92 includes: a sixth acquisition unit, used to obtain the identity of the sender of the shared information and the identity of the receiver of the shared information; a first authentication unit, used to authenticate the sender of the shared information based on the identity of the sender of the shared information, and to authenticate the receiver of the shared information based on the identity of the receiver of the shared information; a second encryption unit, used to encrypt the first ciphertext and the second ciphertext based on a predetermined re-encryption algorithm and using a re-encryption key to obtain a re-encrypted ciphertext when the identity authentication of the sender of the shared information passes and the identity authentication of the receiver of the shared information passes.

[0207] As an optional embodiment, the shared information recipient is a transaction role that shares transaction information, and the shared information recipient is a transaction role that receives shared transaction information, wherein the transaction role includes at least one of the following: a business initiator financial institution, a business initiator monetary authority, a business recipient financial institution, a business recipient monetary authority, and a business currency monetary authority.

[0208] According to an embodiment of the present invention, a device for implementing the third transaction information sharing method is also provided. Fig.10 is a structural block diagram of a transaction information sharing device 3 provided in this embodiment, such as Fig.10 As shown, the device includes: a second acquisition module 1001, a third sending module 1002, a third receiving module 1003, a first decryption module 1004 and a second decryption module 1005. The device is described below.

[0209] The second acquisition module 1001 is used to obtain a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; the third sending module 1002 is connected to the above-mentioned second acquisition module 1001, and is used to send the second public key to the shared information sender; the third receiving module 1003 is connected to the above-mentioned third sending module 1002, and is used to send a download request to the server, and receive the re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in the blockchain formed by the shared information sender and multiple shared information recipients as nodes, and the re-encrypted ciphertext is generated by the server based on the re-encryption key, the first ciphertext and the second ciphertext. The key is generated based on the second public key and the first private key, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information with the session key, the second ciphertext is the ciphertext obtained by encrypting the session key with the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information; the first decryption module 1004 is connected to the above-mentioned third receiving module 1003, and is used to decrypt the re-encrypted ciphertext based on a predetermined decryption algorithm using the second private key to obtain the session key and the first ciphertext; the second decryption module 1005 is connected to the above-mentioned first decryption module 1004, and is used to decrypt the first ciphertext using the session key to obtain the target transaction information.

[0210] As an optional embodiment, the third sending module 1002 includes: a seventh acquisition unit, used to obtain the signature certificate and the second public key of the shared information recipient; a second generation unit, used to generate a data message based on the signature certificate and the second public key; and a second sending unit, used to send the data message to the shared information sender.

[0211] As an optional embodiment, the third receiving module 1003 includes: an eighth obtaining unit, used to obtain the identity of the recipient of the shared information; and a third sending unit, used to send a download request to the server, wherein the download request carries the identity.

[0212] According to an embodiment of the present invention, a transaction information sharing system is also provided. Fig.11 is a structural block diagram of the transaction information sharing system provided in this embodiment, such as Fig.11 As shown, the system includes: a shared information sender 1101, a shared information receiver 1102 and a server 1103, wherein the shared information sender 1101 is used to obtain target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the shared information sender, including a first public key and a first private key; the shared information sender 1101 is also used to encrypt the target transaction information using the session key to obtain a first ciphertext, and to encrypt the session key using the first public key to obtain a second ciphertext; the shared information receiver 1102 is used to obtain a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information receiver, including a second public key and a second private key; the shared information receiver 1102 is also used to The second public key is used to send the shared information sender; the shared information sender 1101 is also used to generate a re-encryption key based on the second public key and the first private key, and send the re-encryption key, the first ciphertext and the second ciphertext to the server; the server 1103 is used to encrypt the first ciphertext and the second ciphertext with the re-encryption key based on a predetermined re-encryption algorithm to obtain the re-encrypted ciphertext; the shared information receiver 1102 is also used to send a download request to the server; the server 1103 is also used to send the re-encrypted ciphertext to the shared information receiver in response to the download request; the shared information receiver 1102 is also used to decrypt the re-encrypted ciphertext based on the second private key to obtain the target transaction information; wherein the shared information sender and multiple shared information receivers are nodes in the blockchain.

[0213] As an optional embodiment, the shared information sender 1101 is further used to: obtain a first constraint condition for encrypting a session key; and under the first constraint condition, use a first public key to encrypt the session key to obtain a second ciphertext.

[0214] As an optional embodiment, the shared information sender 1101 is further used to: obtain a second constraint condition for generating a re-encryption key; and generate a re-encryption key based on the second public key and the first private key under the second constraint condition.

[0215] As an optional embodiment, the server 1103 is also used to: detect whether the first constraint condition and the second constraint condition are consistent, and if the detection result is consistent, encrypt the first ciphertext and the second ciphertext based on a predetermined re-encryption algorithm using a re-encryption key to obtain a re-encrypted ciphertext.

[0216] According to an embodiment of the present invention, a computer-readable storage medium is also provided, on which a program is stored, and when the program is executed by a processor, the above-mentioned transaction information sharing method 1 is implemented, including: obtaining target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of the shared information, including a first public key and a first private key; using the session key to encrypt the target transaction information to obtain a first ciphertext, and using the first public key to encrypt the session key to obtain a second ciphertext; obtaining the second public key, and generating a re-encryption key based on the second public key and the first private key, wherein the second public key is the public key in the public-private key pair corresponding to the recipient of the shared information; sending the re-encryption key, the first ciphertext, and the second ciphertext to a server, for the server to generate a re-encrypted ciphertext, so that the recipient of the shared information can download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in a blockchain formed with the sender of the shared information and multiple recipients of the shared information as nodes.

[0217] According to an embodiment of the present invention, a computer-readable storage medium is also provided, on which a program is stored. When the program is executed by a processor, the above-mentioned transaction information sharing method 2 is implemented, including: receiving a re-encryption key, a first ciphertext and a second ciphertext sent by a sender of shared information, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the sender of shared information, the first private key is a private key in a public-private key pair corresponding to the sender of shared information, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in the public-private key pair corresponding to the sender of shared information; based on a predetermined re-encryption algorithm, the first ciphertext and the second ciphertext are encrypted using the re-encryption key to obtain a re-encrypted ciphertext; receiving a download request from a shared information receiver; sending the re-encrypted ciphertext to the shared information receiver in response to the download request to obtain the target transaction information, wherein the sender of shared information and multiple shared information receivers are nodes in a blockchain.

[0218] According to an embodiment of the present invention, a computer-readable storage medium is also provided, on which a program is stored. When the program is executed by a processor, the above-mentioned transaction information sharing method three is implemented, including: obtaining a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; sending the second public key to the shared information sender; sending a download request to the server, and receiving the re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed with the shared information sender and multiple shared information recipients as nodes, and the re-encrypted ciphertext is a server-based The first ciphertext and the second ciphertext are generated based on the re-encryption key, the re-encryption key is generated based on the second public key and the first private key, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information with the session key, the second ciphertext is the ciphertext obtained by encrypting the session key with the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information; based on a predetermined decryption algorithm, the second private key is used to decrypt the re-encrypted ciphertext to obtain the session key and the first ciphertext; the session key is used to decrypt the first ciphertext to obtain the target transaction information.

[0219] According to an embodiment of the present invention, a computer-readable storage medium is also provided, on which a program is stored. When the program is executed by a processor, the above-mentioned transaction information sharing method 4 is implemented, including: the sender of the shared information obtains the target transaction information, the first public-private key pair, and the session key, wherein the first public-private key pair is the public-private key pair corresponding to the sender of the shared information, including a first public key and a first private key; the sender of the shared information uses the session key to encrypt the target transaction information to obtain a first ciphertext, and uses the first public key to encrypt the session key to obtain a second ciphertext; the receiver of the shared information obtains the second public-private key pair, wherein the second public-private key is the public-private key pair corresponding to the receiver of the shared information, including a second public key and a first private key. key and a second private key; the shared information recipient sends the second public key to the shared information sender; the shared information sender generates a re-encryption key based on the second public key and the first private key, and sends the re-encryption key, the first ciphertext and the second ciphertext to the server; the server encrypts the first ciphertext and the second ciphertext with the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; the shared information recipient sends a download request to the server; the server sends the re-encrypted ciphertext to the shared information recipient in response to the download request; the shared information recipient decrypts the re-encrypted ciphertext based on the second private key to obtain the target transaction information; wherein the shared information sender and multiple shared information recipients are nodes in the blockchain.

[0220] According to an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the above-mentioned transaction information sharing method is executed when the program is run.

[0221] According to an embodiment of the present invention, an electronic device is also provided, the device including a processor, a memory, and a program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the program: obtaining target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to a sender of shared information, including a first public key and a first private key; encrypting the target transaction information using the session key to obtain a first ciphertext, and encrypting the session key using the first public key to obtain a second ciphertext; obtaining the second public key, and generating a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in the public-private key pair corresponding to a recipient of the shared information; sending the re-encryption key, the first ciphertext, and the second ciphertext to a server, for the server to generate a re-encrypted ciphertext, so that the recipient of the shared information can download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in a blockchain formed with a sender of the shared information and multiple recipients of the shared information as nodes.

[0222] Optionally, the memory also stores a program that can be run on the processor, so that when the processor executes the program, the following steps are implemented: obtaining a first constraint condition for encrypting a session key; under the first constraint condition, using a first public key to encrypt the session key to obtain a second ciphertext.

[0223] Optionally, the memory also stores a program that can be run on the processor, so that the processor implements the following steps when executing the program: obtaining a data message from a shared information recipient, wherein the data message carries a signature certificate and a second public key of the shared information recipient; verifying the shared information recipient based on the signature certificate, and extracting the second public key from the data message if the verification passes.

[0224] Optionally, the memory also stores a program executable on the processor, so that when the processor executes the program, the following steps are implemented: obtaining a second constraint for generating a re-encryption key; and generating a re-encryption key based on the second public key and the first private key under the second constraint.

[0225] Optionally, the memory also stores a program that can be run on the processor, so that the processor can implement the following steps when executing the program: obtaining the identity of the recipient of the shared information, and encapsulating the first ciphertext and the second ciphertext to obtain the shared ciphertext; sending the re-encryption key, the identity and the shared ciphertext to the server.

[0226] Optionally, the memory also stores a program executable on the processor, so that the processor implements the following steps when executing the program: the shared information recipient is a transaction role that shares transaction information, and the shared information recipient is a transaction role that receives transaction information sharing, wherein the transaction roles include at least one of the following: a financial institution that initiates the transaction business, a monetary authority that initiates the transaction business, a financial institution that receives the transaction business, a monetary authority that receives the transaction business, and a currency monetary authority.

[0227] According to an embodiment of the present invention, an electronic device is also provided. The device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: receiving a re-encryption key, a first ciphertext, and a second ciphertext sent by a sender of shared information, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the receiver of the shared information, the first private key is a private key in a public-private key pair corresponding to the sender of the shared information, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in the public-private key pair corresponding to the sender of the shared information; based on a predetermined re-encryption algorithm, the first ciphertext and the second ciphertext are encrypted using the re-encryption key to obtain a re-encrypted ciphertext; receiving a download request from a receiver of the shared information; and sending the re-encrypted ciphertext to the receiver of the shared information in response to the download request to obtain the target transaction information, wherein the sender of the shared information and multiple receivers of the shared information are nodes in a blockchain.

[0228] Optionally, the memory also stores a program that can be run on the processor, so that the processor implements the following steps when executing the program: when the second ciphertext includes a first constraint condition for encrypting the session key and the re-encryption key includes a second constraint condition for generating the re-encryption key, obtain the first constraint condition from the second ciphertext and obtain the second constraint condition from the re-encryption key; detect whether the first constraint condition and the second constraint condition are consistent, and when the detection result is consistent, encrypt the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain the re-encrypted ciphertext.

[0229] Optionally, the memory also stores a program that can be run on the processor, so that the processor implements the following steps when executing the program: obtaining the identity of the sender of the shared information and the identity of the receiver of the shared information; authenticating the sender of the shared information based on the identity of the sender of the shared information, and authenticating the receiver of the shared information based on the identity of the receiver of the shared information; when the identity authentication of the sender of the shared information passes and the identity authentication of the receiver of the shared information passes, encrypting the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext.

[0230] Optionally, the memory also stores a program executable on the processor, so that the processor implements the following steps when executing the program: the shared information recipient is a transaction role that shares transaction information, and the shared information recipient is a transaction role that receives transaction information sharing, wherein the transaction role includes at least one of the following: a financial institution that initiates the transaction business, a monetary authority that initiates the transaction business, a financial institution that receives the transaction business, a monetary authority that receives the transaction business, and a currency monetary authority.

[0231] According to an embodiment of the present invention, an electronic device is also provided. The device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; sending the second public key to the shared information sender; sending a download request to a server, and receiving a re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed with the shared information sender and multiple shared information recipients as nodes, and the re-encrypted ciphertext is The server generates the first ciphertext and the second ciphertext based on the re-encryption key, the re-encryption key is generated based on the second public key and the first private key, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information with the session key, the second ciphertext is the ciphertext obtained by encrypting the session key with the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information; based on a predetermined decryption algorithm, the second private key is used to decrypt the re-encrypted ciphertext to obtain the session key and the first ciphertext; the session key is used to decrypt the first ciphertext to obtain the target transaction information.

[0232] Optionally, the memory also stores a program that can be run on the processor, so that when the processor executes the program, the following steps are implemented: obtaining the signature certificate and the second public key of the shared information recipient; generating a data message based on the signature certificate and the second public key; and sending the data message to the shared information sender.

[0233] Optionally, the memory also stores a program that can be run on the processor, so that when the processor executes the program, the following steps are implemented: obtaining the identity of the recipient of the shared information; sending a download request to the server, wherein the download request carries the identity.

[0234] According to an embodiment of the present invention, an electronic device is also provided. The device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: the sender of shared information obtains target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of shared information, including a first public key and a first private key; the sender of shared information encrypts the target transaction information using the session key to obtain a first ciphertext, and encrypts the session key using the first public key to obtain a second ciphertext; the receiver of shared information obtains a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the receiver of shared information, including a second public key and a second private key; the shared information recipient sends the second public key to the shared information sender; the shared information sender generates a re-encryption key based on the second public key and the first private key, and sends the re-encryption key, the first ciphertext and the second ciphertext to the server; the server encrypts the first ciphertext and the second ciphertext with the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; the shared information recipient sends a download request to the server; the server sends the re-encrypted ciphertext to the shared information recipient in response to the download request; the shared information recipient decrypts the re-encrypted ciphertext based on the second private key to obtain the target transaction information; wherein the shared information sender and multiple shared information recipients are nodes in the blockchain.

[0235] Optionally, the memory also stores a program that can be run on the processor, so that the processor implements the following steps when executing the program: the sender of the shared information obtains a first constraint condition for encrypting the session key; the sender of the shared information encrypts the session key using the first public key under the first constraint condition to obtain a second ciphertext.

[0236] Optionally, the memory also stores a program that can be run on the processor, so that the processor implements the following steps when executing the program: the sender of the shared information obtains a second constraint condition for generating a re-encryption key; the sender of the shared information generates a re-encryption key based on the second public key and the first private key under the second constraint condition.

[0237] Optionally, the memory also stores a program that can be run on the processor, so that the processor implements the following steps when executing the program: the server detects whether the first constraint condition and the second constraint condition are consistent, and if the detection result is consistent, based on a predetermined re-encryption algorithm, uses a re-encryption key to encrypt the first ciphertext and the second ciphertext to obtain a re-encrypted ciphertext.

[0238] The above-mentioned devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0239] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of the shared information, including a first public key and a first private key; encrypting the target transaction information using the session key to obtain a first ciphertext, and encrypting the session key using the first public key to obtain a second ciphertext; obtaining the second public key, and generating a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in the public-private key pair corresponding to the recipient of the shared information; sending the re-encryption key, the first ciphertext, and the second ciphertext to a server, for the server to generate a re-encrypted ciphertext for the recipient of the shared information to download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in a blockchain formed with the sender of the shared information and multiple recipients of the shared information as nodes.

[0240] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining a first constraint condition for encrypting a session key; under the first constraint condition, using a first public key to encrypt the session key to obtain a second ciphertext.

[0241] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining a data message from a shared information recipient, wherein the data message carries a signature certificate and a second public key of the shared information recipient; verifying the shared information recipient based on the signature certificate, and extracting the second public key from the data message if the verification passes.

[0242] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining a second constraint condition for generating a re-encryption key; under the second constraint condition, generating a re-encryption key based on a second public key and a first private key.

[0243] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining the identity of the recipient of the shared information, and encapsulating the first ciphertext and the second ciphertext to obtain the shared ciphertext; sending the re-encryption key, the identity and the shared ciphertext to the server.

[0244] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: the shared information recipient is a transaction role that shares transaction information, and the shared information recipient is a transaction role that receives transaction information sharing, wherein the transaction role includes at least one of the following: a financial institution that initiates the transaction business, a monetary authority that initiates the transaction business, a financial institution that receives the transaction business, a monetary authority that receives the transaction business, and a currency monetary authority.

[0245] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: receiving a re-encryption key, a first ciphertext, and a second ciphertext sent by a sender of shared information, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the sender of the shared information, the first private key is a private key in a public-private key pair corresponding to the sender of the shared information, the first ciphertext is a ciphertext obtained by encrypting the target transaction information using a session key, the second ciphertext is a ciphertext obtained by encrypting the session key using the first public key, and the first public key is a public key in the public-private key pair corresponding to the sender of the shared information; based on a predetermined re-encryption algorithm, the first ciphertext and the second ciphertext are encrypted using the re-encryption key to obtain a re-encrypted ciphertext; receiving a download request from a shared information recipient; and sending the re-encrypted ciphertext to the shared information recipient in response to the download request to obtain the target transaction information, wherein the sender of the shared information and multiple shared information recipients are nodes in a blockchain.

[0246] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: when the second ciphertext includes a first constraint for encrypting a session key, and when the re-encryption key includes a second constraint for generating a re-encryption key, obtaining the first constraint from the second ciphertext and obtaining the second constraint from the re-encryption key; detecting whether the first constraint and the second constraint are consistent, and when the detection result is consistent, encrypting the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext.

[0247] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining the identity of the sender of shared information and the identity of the receiver of shared information; authenticating the sender of shared information based on the identity of the sender of shared information, and authenticating the receiver of shared information based on the identity of the receiver of shared information; when the identity authentication of the sender of shared information passes and the identity authentication of the receiver of shared information passes, encrypting the first ciphertext and the second ciphertext with the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext.

[0248] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: the shared information recipient is a transaction role that shares transaction information, and the shared information recipient is a transaction role that receives transaction information sharing, wherein the transaction role includes at least one of the following: a financial institution that initiates the transaction business, a monetary authority that initiates the transaction business, a financial institution that receives the transaction business, a monetary authority that receives the transaction business, and a currency monetary authority.

[0249] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; sending the second public key to the shared information sender; sending a download request to the server, and receiving a re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed with the shared information sender and multiple shared information recipients as nodes, and the re-encrypted ciphertext is a ciphertext generated by the server based on the re-encrypted key. , the first ciphertext and the second ciphertext are generated, the re-encryption key is generated based on the second public key and the first private key, the first private key is the private key in the public-private key pair corresponding to the sender of the shared information, the first ciphertext is the ciphertext obtained by encrypting the target transaction information with the session key, the second ciphertext is the ciphertext obtained by encrypting the session key with the first public key, and the first public key is the public key in the public-private key pair corresponding to the sender of the shared information; based on a predetermined decryption algorithm, the re-encrypted ciphertext is decrypted with the second private key to obtain the session key and the first ciphertext; the first ciphertext is decrypted with the session key to obtain the target transaction information.

[0250] The present application also provides a computer program product which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining the signature certificate and the second public key of the recipient of the shared information; generating a data message based on the signature certificate and the second public key; and sending the data message to the sender of the shared information.

[0251] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: obtaining an identity identifier of a recipient of shared information; and sending a download request to a server, wherein the download request carries the identity identifier.

[0252] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: a sender of shared information obtains target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of shared information, including a first public key and a first private key; the sender of shared information encrypts the target transaction information using the session key to obtain a first ciphertext, and encrypts the session key using the first public key to obtain a second ciphertext; a receiver of shared information obtains a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the receiver of shared information, including a second public key and a second private key. ; The shared information receiver sends the second public key to the shared information sender; the shared information sender generates a re-encryption key based on the second public key and the first private key, and sends the re-encryption key, the first ciphertext and the second ciphertext to the server; the server encrypts the first ciphertext and the second ciphertext based on a predetermined re-encryption algorithm using the re-encryption key to obtain a re-encrypted ciphertext; the shared information receiver sends a download request to the server; the server sends the re-encrypted ciphertext to the shared information receiver in response to the download request; the shared information receiver decrypts the re-encrypted ciphertext based on the second private key to obtain the target transaction information; wherein the shared information sender and multiple shared information receivers are nodes in the blockchain.

[0253] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: a sender of shared information obtains a first constraint condition for encrypting a session key; the sender of shared information encrypts the session key using a first public key under the first constraint condition to obtain a second ciphertext.

[0254] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: the sender of shared information obtains a second constraint condition for generating a re-encryption key; the sender of shared information generates a re-encryption key based on the second public key and the first private key under the second constraint condition.

[0255] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having the following method steps: the server detects whether the first constraint condition and the second constraint condition are consistent, and if the detection result is consistent, based on a predetermined re-encryption algorithm, uses a re-encryption key to encrypt the first ciphertext and the second ciphertext to obtain a re-encrypted ciphertext.

[0256] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0257] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, 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, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0258] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0259] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0260] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0261] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0262] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0263] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0264] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0265] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0266] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0267] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0268] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0269] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0270] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A transaction information sharing method, characterized in that: include: Obtain target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of the shared information, including a first public key and a first private key; The target transaction information is encrypted using the session key to obtain a first ciphertext, and the session key is encrypted using the first public key to obtain a second ciphertext; Obtain a second public key, and generate a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in a public-private key pair corresponding to the recipient of the shared information; The re-encryption key, the first ciphertext and the second ciphertext are sent to a server, and the server is used to generate a re-encrypted ciphertext, so that the shared information recipient can download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in a blockchain formed by the shared information sender and multiple shared information recipients as nodes.

2. The method according to claim 1, characterized in that: The session key is set according to the current information transaction, wherein the session key corresponding to each information transaction is different.

3. The method according to claim 1, characterized in that The sender of shared information is the financial institution that is the business initiator of the transaction business corresponding to the target transaction information, and the receiver of shared information is determined based on the target transaction information, wherein the receiver of shared information includes at least one of the following: a financial institution that is the business recipient, a monetary authority that is the business initiator, a monetary authority that is the business recipient, and a monetary authority that is the business currency.

4. The method according to claim 1, characterized in that The step of encrypting the session key with the first public key to obtain a second ciphertext includes: Obtaining a first constraint for encrypting the session key; Under the first constraint condition, the session key is encrypted using the first public key to obtain the second ciphertext.

5. The method according to claim 1, characterized in that The obtaining of the second public key comprises: Acquire a data message from the shared information receiver, wherein the data message carries a signature certificate and the second public key of the shared information receiver; The shared information receiver is verified based on the signature certificate, and if the verification is successful, the second public key is extracted from the data message.

6. The method according to claim 1, characterized in that The generating a re-encryption key based on the second public key and the first private key includes: Obtaining a second constraint for generating the re-encryption key; Under the second constraint, a re-encryption key is generated based on the second public key and the first private key.

7. The method according to any one of claims 1 to 6, characterized in that The sending the re-encryption key, the first ciphertext and the second ciphertext to the server includes: Acquiring the identity of the recipient of the shared information, and encapsulating the first ciphertext and the second ciphertext to obtain a shared ciphertext; The re-encryption key, the identity identifier and the shared ciphertext are sent to the server.

8. The method according to claim 7, characterized in that The sender of shared information is a transaction role that shares transaction information, and the receiver of shared information is a transaction role that receives shared transaction information, wherein the transaction roles include at least one of the following: a business initiator financial institution, a business initiator monetary authority, a business recipient financial institution, a business recipient monetary authority, and a business currency monetary authority.

9. A transaction information sharing method, characterized in that: include: Receive a re-encryption key, a first ciphertext, and a second ciphertext sent by a sender of shared information, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the sender of shared information, the first private key is a private key in a public-private key pair corresponding to the sender of shared information, the first ciphertext is a ciphertext obtained by encrypting target transaction information with a session key, the second ciphertext is a ciphertext obtained by encrypting the session key with the first public key, and the first public key is a public key in a public-private key pair corresponding to the sender of shared information; Based on a predetermined re-encryption algorithm, encrypt the first ciphertext and the second ciphertext using the re-encryption key to obtain a re-encrypted ciphertext; Receiving a download request from the shared information recipient; In response to the download request, the re-encrypted ciphertext is sent to the shared information recipient to obtain the target transaction information, wherein the shared information sender and multiple shared information recipients are nodes in the blockchain.

10. The method according to claim 9, characterized in that The session key is set according to the current information transaction, wherein the session key corresponding to each information transaction is different.

11. The method according to claim 9, characterized in that The sender of shared information is the financial institution that is the business initiator of the transaction business corresponding to the target transaction information, and the receiver of shared information is determined based on the target transaction information, wherein the receiver of shared information includes at least one of the following: a financial institution that is the business recipient, a monetary authority that is the business initiator, a monetary authority that is the business recipient, and a monetary authority that is the business currency.

12. The method according to claim 9, characterized in that The step of encrypting the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext includes: When the second ciphertext includes a first constraint for encrypting the session key, and the re-encryption key includes a second constraint for generating the re-encryption key, obtaining the first constraint from the second ciphertext and obtaining the second constraint from the re-encryption key; Check whether the first constraint condition and the second constraint condition are consistent. If the check result is consistent, encrypt the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext.

13. The method according to claim 9, characterized in that The step of encrypting the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext includes: Obtaining the identity of the sender of the shared information and the identity of the receiver of the shared information; Performing identity authentication on the sender of the shared information based on the identity identifier of the sender of the shared information, and performing identity authentication on the receiver of the shared information based on the identity identifier of the receiver of the shared information; When the identity authentication of the sender of the shared information is passed and the identity authentication of the receiver of the shared information is passed, the first ciphertext and the second ciphertext are encrypted with the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext.

14. The method according to any one of claims 9 to 13, characterized in that The sender of shared information is a transaction role that shares transaction information, and the receiver of shared information is a transaction role that receives shared transaction information, wherein the transaction roles include at least one of the following: a business initiator financial institution, a business initiator monetary authority, a business recipient financial institution, a business recipient monetary authority, and a business currency monetary authority.

15. A transaction information sharing method, characterized in that: include: Acquire a second public-private key pair, wherein the second public-private key pair is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; Sending the second public key to the sender of the shared information; Send a download request to a server, and receive a re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed by the sender of the shared information and multiple receivers of the shared information as nodes, the re-encrypted ciphertext is generated by the server based on a re-encryption key, a first ciphertext, and a second ciphertext, the re-encryption key is generated based on the second public key and a first private key, the first private key is a private key in a public-private key pair corresponding to the sender of the shared information, the first ciphertext is a ciphertext obtained by encrypting the target transaction information with a session key, the second ciphertext is a ciphertext obtained by encrypting the session key with a first public key, and the first public key is a public key in a public-private key pair corresponding to the sender of the shared information; Based on a predetermined decryption algorithm, decrypt the re-encrypted ciphertext using the second private key to obtain the session key and the first ciphertext; The first ciphertext is decrypted using the session key to obtain target transaction information.

16. The method according to claim 15, characterized in that The session key is set according to the current information transaction, wherein the session key corresponding to each information transaction is different.

17. The method according to claim 15, characterized in that The sender of shared information is the financial institution that is the business initiator of the transaction business corresponding to the target transaction information, and the receiver of shared information is determined based on the target transaction information, wherein the receiver of shared information includes at least one of the following: a financial institution that is the business recipient, a monetary authority that is the business initiator, a monetary authority that is the business recipient, and a monetary authority that is the business currency.

18. The method according to claim 15, characterized in that The sending the second public key to the shared information sender includes: Obtaining the signature certificate and the second public key of the shared information recipient; Generate a data message based on the signature certificate and the second public key; The data message is sent to the shared information sender.

19. The method according to any one of claims 15 to 18, characterized in that The sending of the download request to the server comprises: Obtaining the identity of the recipient of the shared information; The download request is sent to the server, wherein the download request carries the identity identifier.

20. A transaction information sharing method, characterized in that: include: The shared information sender obtains the target transaction information, the first public-private key pair, and the session key, wherein the first public-private key pair is the public-private key pair corresponding to the shared information sender, including a first public key and a first private key; The shared information sender encrypts the target transaction information using the session key to obtain a first ciphertext, and encrypts the session key using the first public key to obtain a second ciphertext; The shared information recipient obtains a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; The shared information receiver sends the second public key to the shared information sender; The shared information sender generates a re-encryption key based on the second public key and the first private key, and sends the re-encryption key, the first ciphertext and the second ciphertext to the server; The server encrypts the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; The shared information receiving party sends a download request to the server; The server sends the re-encrypted ciphertext to the shared information recipient in response to the download request; The shared information receiver decrypts the re-encrypted ciphertext based on the second private key to obtain the target transaction information; Among them, the shared information sender and multiple shared information receivers are nodes in the blockchain.

21. The method according to claim 20, characterized in that The session key is set according to the current information transaction, wherein the session key corresponding to each information transaction is different.

22. The method according to claim 20, characterized in that The sender of shared information is the financial institution that is the business initiator of the transaction business corresponding to the target transaction information, and the receiver of shared information is determined based on the target transaction information, wherein the receiver of shared information includes at least one of the following: a financial institution that is the business recipient, a monetary authority that is the business initiator, a monetary authority that is the business recipient, and a monetary authority that is the business currency.

23. The method according to claim 20, characterized in that The shared information sender encrypts the session key using the first public key to obtain a second ciphertext, including: The shared information sender obtains a first constraint condition for encrypting the session key; The sender of the shared information uses the first public key to encrypt the session key under the first constraint condition to obtain the second ciphertext.

24. The method according to claim 23, characterized in that The shared information sender generates a re-encryption key based on the second public key and the first private key, including: The shared information sender obtains a second constraint condition for generating the re-encryption key; The shared information sender generates a re-encryption key based on the second public key and the first private key under the second constraint condition.

25. The method according to claim 24, characterized in that The server encrypts the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext, including: The server detects whether the first constraint condition and the second constraint condition are consistent, and if the detection result is consistent, based on a predetermined re-encryption algorithm, uses the re-encryption key to encrypt the first ciphertext and the second ciphertext to obtain a re-encrypted ciphertext.

26. A transaction information sharing device, characterized in that: Applicable to the sender of shared information, including: A first acquisition module, used to acquire target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the sender of the shared information, including a first public key and a first private key; A first encryption module, configured to encrypt the target transaction information using the session key to obtain a first ciphertext, and to encrypt the session key using the first public key to obtain a second ciphertext; A first generating module, configured to obtain a second public key, and generate a re-encryption key based on the second public key and the first private key, wherein the second public key is a public key in a public-private key pair corresponding to a recipient of the shared information; The first sending module is used to send the re-encryption key, the first ciphertext and the second ciphertext to the server, so that the server generates a re-encrypted ciphertext for the shared information recipient to download the re-encrypted ciphertext to obtain the target transaction information, wherein the server is a server corresponding to each node in the blockchain formed by the shared information sender and multiple shared information recipients as nodes.

27. A transaction information sharing device, characterized in that: Applicable to recipients of shared information, including: A first receiving module is configured to receive a re-encryption key, a first ciphertext, and a second ciphertext sent by a sender of shared information, wherein the re-encryption key is generated based on a second public key and a first private key, the second public key is a public key in a public-private key pair corresponding to the sender of shared information, the first private key is a private key in a public-private key pair corresponding to the sender of shared information, the first ciphertext is a ciphertext obtained by encrypting target transaction information with a session key, the second ciphertext is a ciphertext obtained by encrypting the session key with the first public key, and the first public key is a public key in a public-private key pair corresponding to the sender of shared information; A second encryption module, configured to encrypt the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; A second receiving module, used for receiving a download request from a receiving party of the shared information; The second sending module is used to send the re-encrypted ciphertext to the shared information recipient in response to the download request to obtain the target transaction information, wherein the shared information sender and multiple shared information recipients are nodes in the blockchain.

28. A transaction information sharing device, characterized in that: Applicable to servers, including: A second acquisition module, configured to acquire a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to a shared information recipient, including a second public key and a second private key; A third sending module, used to send the second public key to a sender of shared information; a third receiving module, configured to send a download request to a server, and receive a re-encrypted ciphertext returned by the server, wherein the server is a server corresponding to each node in a blockchain formed by the sender of the shared information and multiple receivers of the shared information as nodes, the re-encrypted ciphertext is generated by the server based on a re-encryption key, a first ciphertext, and a second ciphertext, the re-encryption key is generated based on the second public key and a first private key, the first private key is a private key in a public-private key pair corresponding to the sender of the shared information, the first ciphertext is a ciphertext obtained by encrypting the target transaction information with a session key, the second ciphertext is a ciphertext obtained by encrypting the session key with a first public key, and the first public key is a public key in a public-private key pair corresponding to the sender of the shared information; A first decryption module, configured to decrypt the re-encrypted ciphertext using the second private key based on a predetermined decryption algorithm to obtain a decryption key corresponding to the session key and the first ciphertext; The second decryption module is used to decrypt the first ciphertext using the decryption key to obtain target transaction information.

29. A transaction information sharing system, characterized in that: include: A shared information sender, a shared information receiver and a server, wherein: The shared information sender is used to obtain target transaction information, a first public-private key pair, and a session key, wherein the first public-private key pair is a public-private key pair corresponding to the shared information sender, including a first public key and a first private key; The shared information sender is further configured to encrypt the target transaction information using the session key to obtain a first ciphertext, and to encrypt the session key using the first public key to obtain a second ciphertext; The shared information recipient is used to obtain a second public-private key pair, wherein the second public-private key is a public-private key pair corresponding to the shared information recipient, including a second public key and a second private key; The shared information receiving party is further configured to send the second public key to the shared information sending party; The shared information sender is further configured to generate a re-encryption key based on the second public key and the first private key, and send the re-encryption key, the first ciphertext and the second ciphertext to the server; The server is configured to encrypt the first ciphertext and the second ciphertext using the re-encryption key based on a predetermined re-encryption algorithm to obtain a re-encrypted ciphertext; The shared information receiver is further configured to send a download request to the server; The server is further configured to send the re-encrypted ciphertext to the shared information recipient in response to the download request; The shared information receiver is further configured to decrypt the re-encrypted ciphertext based on the second private key to obtain the target transaction information; Among them, the shared information sender and multiple shared information receivers are nodes in the blockchain.

30. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the transaction information sharing method according to any one of claims 1 to 25.

31. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the transaction information sharing method described in any one of claims 1 to 25.