CN113497827A - Information sharing method and device - Google Patents

Information sharing method and device Download PDF

Info

Publication number
CN113497827A
CN113497827A CN202110458040.0A CN202110458040A CN113497827A CN 113497827 A CN113497827 A CN 113497827A CN 202110458040 A CN202110458040 A CN 202110458040A CN 113497827 A CN113497827 A CN 113497827A
Authority
CN
China
Prior art keywords
information
node
platform
shared
identity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110458040.0A
Other languages
Chinese (zh)
Other versions
CN113497827B (en
Inventor
雷斐
徐高峰
朱小非
曹军伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZNV Technology Co Ltd
Nanjing ZNV Software Co Ltd
Original Assignee
Shenzhen ZNV Technology Co Ltd
Nanjing ZNV Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZNV Technology Co Ltd, Nanjing ZNV Software Co Ltd filed Critical Shenzhen ZNV Technology Co Ltd
Priority to CN202110458040.0A priority Critical patent/CN113497827B/en
Publication of CN113497827A publication Critical patent/CN113497827A/en
Application granted granted Critical
Publication of CN113497827B publication Critical patent/CN113497827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an information sharing method and equipment, wherein the method comprises the following steps: receiving shared information sent by a first node connected with a distributed account book platform; determining a third node which is connected with the distributed account book platform and shares information with the first node in the second nodes according to the shared information; and sending the sharing information to the third node. The invention realizes the information sharing by power and domain and improves the information sharing efficiency.

Description

Information sharing method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information sharing method and device.
Background
Information Sharing (Information Sharing) refers to communication and Sharing of Information and Information products among Information systems of different levels and different departments, namely, Sharing the Information, which is a resource with more obvious importance in the internet era, with other people together, so as to achieve the purposes of resource allocation more reasonably, saving social cost and creating more wealth. Information sharing is an important means for improving the utilization rate of information resources and avoiding repeated waste in information acquisition, storage and management.
Currently, when an existing information sharing technology such as a blockchain implements information sharing, if any platform on the blockchain shares certain information of itself as shared information to the chain, the blockchain broadcasts the shared information globally, that is, all other platforms that do or do not need the shared information on the chain receive the shared information. When a platform needs to selectively obtain shared information from one or more other platforms, the blockchain cannot meet the requirement for obtaining the shared information. Therefore, the existing information sharing technology broadcasts the shared information globally, and the information can not be shared in a weighted and domain-divided manner.
Disclosure of Invention
The embodiment of the application aims to solve the technical problem that the existing information sharing technology cannot realize the information sharing in a power-dividing and domain-dividing mode by providing an information sharing method and equipment.
The embodiment of the application provides an information sharing method, which is applied to a distributed account book platform and comprises the following steps:
receiving shared information sent by a first node connected with the distributed account book platform, wherein the shared information is generated according to transaction information of the first node;
determining a third node which is connected with the distributed account book platform and shares information with the first node in the second nodes according to the shared information;
and sending the sharing information to the third node.
In an embodiment, before the step of receiving the shared information sent by the first node, the method further includes:
when receiving a connection request sent by the first node, sending the connection request to a third node in the second nodes, so that the third node decrypts the connection request; the connection request is generated according to the first identity information and the identity identification certificate of the first node;
when a decryption result sent by the third node is received, establishing connection between the first node and a connection node in the distributed account book platform according to the decryption result;
and sending a connection success notice to the sending terminal.
In an embodiment, the step of establishing a connection between the first node and a connection node in the distributed ledger platform according to the decryption result includes:
acquiring the number of nodes of a third node in the second node, wherein the decryption result is the decryption success;
and when the number of the nodes is greater than or equal to the preset number of the nodes, establishing connection between the first node and the connection nodes in the distributed account book platform.
In an embodiment, the step of determining, according to the shared information, a third node that shares information with the first node in the second nodes connected to the distributed ledger platform includes:
acquiring first identity information and second identity information included in the shared information;
and determining a third node corresponding to the second identity information as a third node performing information sharing with the first node corresponding to the first identity information.
The embodiment of the application provides an information sharing method, which is applied to a first node, and the information sharing method comprises the following steps:
acquiring transaction information;
when the transaction information meets the intelligent contract, generating shared information according to the transaction information;
and sending the shared information to the distributed ledger platform so that the distributed ledger platform forwards the shared information to a third node.
In one embodiment, the step of obtaining the transaction information further includes, before the step of obtaining the transaction information:
acquiring first identity information and a preset identity identification certificate of the first node;
encrypting the first identity information and the identity identification certificate to generate a connection request;
sending the connection request to the distributed ledger platform;
and receiving a connection success notice sent by the distributed account book platform.
In one embodiment, the step of generating shared information based on the transaction information includes:
acquiring second identity information of the third node according to the intelligent contract;
and generating the shared information according to the first identity information, the second identity information and the transaction information.
The embodiment of the application provides an information sharing method, which is applied to a third node, and the information sharing method comprises the following steps:
receiving shared information sent by a distributed account book platform;
verifying the shared information by adopting an intelligent contract;
and when the shared information passes the verification, saving the shared information.
In an embodiment, before the step of receiving the shared information sent by the distributed ledger platform, the method further includes:
receiving a connection request sent by the distributed account book platform, wherein the connection request is generated according to first identity information and an identity identification certificate of a first node;
acquiring a preset public key, and decrypting the connection request by adopting the private key;
and sending a decryption result to the distributed account book platform, wherein the decryption result comprises decryption success information or decryption failure information.
Further, to achieve the above object, the present invention also provides a computer device comprising: the information sharing method comprises a memory, a processor and an information sharing program which is stored on the memory and can run on the processor, wherein the information sharing program realizes the steps of the information sharing method when being executed by the processor.
The technical scheme of the information sharing method and the information sharing device provided in the embodiment of the application at least has the following technical effects or advantages:
due to the adoption of the technical scheme that the shared information generated by the first node is forwarded to the third node which shares the information with the first node through the distributed account book platform, the technical problem that the prior information sharing technology cannot realize the information sharing in a power division and domain division manner is solved, the information sharing in the power division and domain division manner is realized, and the information sharing efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an information sharing method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of an information sharing method according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of an information sharing method according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of an information sharing method according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of an information sharing method according to the present invention;
FIG. 7 is a flowchart illustrating a sixth embodiment of an information sharing method according to the present invention;
FIG. 8 is a flowchart illustrating a seventh embodiment of an information sharing method according to the present invention;
fig. 9 is a schematic diagram of an interaction process among the Corda distributed ledger platform, the first node, and the third node.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of a computer device.
As shown in fig. 1, the computer apparatus may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the computer device architecture shown in FIG. 1 is not intended to be limiting of computer devices and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an information sharing program. Among them, an operating system is a program that manages and controls the hardware and software resources of a computer device, an information sharing program, and the execution of other software or programs.
In the computer apparatus shown in fig. 1, the user interface 1003 is mainly used for connecting a terminal, and performing data communication with the terminal; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be used to invoke an information sharing program stored in the memory 1005.
In this embodiment, the computer device includes: a memory 1005, a processor 1001, and an information sharing program stored on the memory 1005 and executable on the processor, wherein:
when the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are performed:
receiving shared information sent by a first node connected with the distributed account book platform, wherein the shared information is generated according to transaction information of the first node;
determining a third node which is connected with the distributed account book platform and shares information with the first node in the second nodes according to the shared information;
and sending the sharing information to the third node.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
when receiving a connection request sent by the first node, sending the connection request to a third node in the second nodes, so that the third node decrypts the connection request; the connection request is generated according to the first identity information and the identity identification certificate of the first node;
when a decryption result sent by the third node is received, establishing connection between the first node and a connection node in the distributed account book platform according to the decryption result;
and sending a connection success notice to the sending terminal.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
acquiring the number of nodes of a third node in the second node, wherein the decryption result is the decryption success;
and when the number of the nodes is greater than or equal to the preset number of the nodes, establishing connection between the first node and the connection nodes in the distributed account book platform.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
acquiring first identity information and second identity information included in the shared information;
and determining a third node corresponding to the second identity information as a third node performing information sharing with the first node corresponding to the first identity information.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
acquiring transaction information;
when the transaction information meets the intelligent contract, generating shared information according to the transaction information;
and sending the shared information to the distributed ledger platform so that the distributed ledger platform forwards the shared information to a third node.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
acquiring first identity information and a preset identity identification certificate of the first node;
encrypting the first identity information and the identity identification certificate to generate a connection request;
sending the connection request to the distributed ledger platform;
and receiving a connection success notice sent by the distributed account book platform.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
acquiring second identity information of the third node according to the intelligent contract;
and generating the shared information according to the first identity information, the second identity information and the transaction information.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
receiving shared information sent by a distributed account book platform;
verifying the shared information by adopting an intelligent contract;
and when the shared information passes the verification, saving the shared information.
When the processor 1001 calls the information sharing program stored in the memory 1005, the following operations are also performed:
receiving a connection request sent by the distributed account book platform, wherein the connection request is generated according to first identity information and an identity identification certificate of a first node;
acquiring a preset public key, and decrypting the connection request by adopting the private key;
and sending a decryption result to the distributed account book platform, wherein the decryption result comprises decryption success information or decryption failure information.
The present invention provides an embodiment of an information sharing method, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that in the present disclosure, and the information sharing method is applied to a distributed ledger platform and an information sharing platform connected to the distributed ledger platform. The information sharing platforms connected with the distributed account book platform are provided with a plurality of information sharing platforms, and each information sharing platform can send transaction information generated by the self terminal to other information sharing platforms connected with the distributed account book platform through the distributed account book platform. In the application, an information sharing platform for sending transaction information to a distributed account book platform is called an information sending party, an information sharing platform for receiving shared information sent by the distributed account book platform is called an information receiving party, and each information sharing platform connected with the distributed account book platform has two identities which can be used as the information sending party and the information receiving party.
As shown in fig. 2, in a first embodiment of the present application, an information sharing method of the present application is applied to a distributed ledger platform, and the method includes the following steps:
step S210: and receiving shared information sent by a first node connected with the distributed account book platform.
In this embodiment, the distributed ledger platform refers to a Corda distributed ledger platform, which is a set of distributed ledger system, and the Corda distributed ledger platform is externally provided with a plurality of connection nodes, which are referred to as second nodes in this application. The first node is an information sharing platform connected with a second node of the Corda distributed account book platform, the identity of the first node is an information sender, and if the plurality of first nodes are connected with the second node of the Corda distributed account book platform, the second node of the Corda distributed account book platform comprises the plurality of first nodes. The shared information is generated according to the transaction information of the first node, namely after the transaction initiator and the transaction receiver transact through the first node, the first node acquires the transaction information generated in the transaction process, after receiving the transaction information, the first node judges whether the received transaction information meets the information sharing condition according to the intelligent contract stored by the first node, and when the first node determines that the received transaction information meets the information sharing condition through the intelligent contract, the shared information is generated according to the received transaction information.
Specifically, the intelligent contract may be that after the first node establishes a connection with a connection node of the Corda distributed ledger platform, the Corda distributed ledger platform actively sends the Corda distributed ledger platform to the first node, or that a user at the first node end downloads the Corda distributed ledger platform in advance and then imports the Corda distributed ledger platform to the first node. An intelligent contract is a computer protocol intended to propagate, validate or execute contracts in an informational manner. The intelligent contract comprises a judgment rule for detecting transaction information to generate shared information and a trigger instruction for generating the shared information, wherein the judgment rule is also negotiated between the first node and the third node, for example, a period that the first node generates the shared information once in 36 hours is set, and then the first node sends the trigger instruction for generating the shared information through the intelligent contract after detecting that the time for generating the shared information is reached through the intelligent contract so as to execute the generation operation of the shared information. After the shared information is generated, the first node sends the shared information to the Corda distributed account book platform, and the Corda distributed account book platform receives the shared information sent by the first node connected with the first node.
The intelligent contract further comprises a first node and a third node which are mutually in information sharing, wherein the third node is also an information sharing platform connected with the second node of the Corda distributed account book platform, the identity of the third node is an information receiving party, and if the plurality of third nodes are connected with the second node of the Corda distributed account book platform, the second node of the Corda distributed account book platform comprises the plurality of third nodes. The first node and the third node which mutually perform information sharing are written into the intelligent contract after the information sharing protocol is achieved in advance. The first node can know which specific third node the generated sharing information needs to be sent to according to the intelligent contract. For example, the first node 1 wants to perform information sharing with the third node 1, the third node 2, and the third node 3, after the first node 1 and the third node 1, the third node 2, and the third node 3 reach the information sharing protocol, the shared information generated by the first node 1 is sent to the third node 1, the third node 2, and the third node 3 through the Corda distributed account book platform, and similarly, the shared information generated by each of the third node 1, the third node 2, and the third node 3 is sent to the first node 1 through the Corda distributed account book platform. The smart contract includes, in addition to the above, other contents such as a data structure for generating shared information, verification of shared information, and the like.
Step S220: and determining a third node which is connected with the distributed account book platform and shares information with the first node in the second nodes according to the shared information.
In this embodiment, the shared information includes the second identity information of the third node, the first identity information of the first node, and the transaction information from the first node. After receiving the shared information sent by the first node connected with the Corda distributed account book platform, the Corda distributed account book platform analyzes the shared information to obtain first identity information and second identity information included in the shared information, then determines which first node the first identity information specifically corresponds to according to the first identity information, determines which third node the second identity information specifically corresponds to according to the second identity information, and then determines the third node corresponding to the second identity information as the third node performing information sharing with the first node corresponding to the first identity information. For example, if the first identity information is a0 and the second identity information is a2, then the Corda distributed ledger platform determines that the third node corresponding to a2 is the third node for information sharing with the first node corresponding to a 0.
Step S230: and sending the sharing information to the third node.
In this embodiment, after determining a third node performing information sharing with the first node, the Corda distributed ledger platform forwards the shared information to the third node, and the third node verifies the shared information through the intelligent contract. The third node acquires the first identity information of the first node which carries out information sharing with the third node through the intelligent contract, then the first identity information of the first node included in the shared information is compared with the third identity information, if the first identity information and the second identity information are the same, the shared information is verified to be passed, then the shared information is signed and stored, and further users can use the shared information through the third node.
According to the technical scheme, the sharing information sent by the first node connected with the distributed account book platform is received, the third node which shares information with the first node in the second node connected with the distributed account book platform is determined according to the sharing information, and the sharing information is sent to the third node.
As shown in fig. 3, based on the first embodiment, the second embodiment of the present application further includes the following steps before step S210:
step S211: and when receiving the connection request sent by the first node, sending the connection request to a third node in the second nodes so that the third node decrypts the connection request.
In this embodiment, the first node and the third node that need to perform information sharing with each other may previously establish an information sharing protocol, and after the information sharing protocol is written in the intelligent contract, the first node and the third node may apply for joining in the Corda distributed account book platform. The first node and the third node can both serve as an information sender and an information receiver, so that the first node and the third node apply for joining the Corda distributed account book platform in the same manner.
Specifically, taking a process of a first node applying for joining a Corda distributed account book platform as an example, the connection request is generated according to first identity information of the first node and an identification Certificate, and the identification Certificate is a Certificate issued by a Certificate Authority (CA), which is called a CA Certificate.
The first node acquires self first identity information and a preset identity recognition certificate, then acquires a private key stored in the first node in advance, encrypts the self first identity information and the identity recognition certificate through the private key to generate a connection request added into the Corda distributed account book platform, and then sends the connection request to the Corda distributed account book platform, namely the connection request is sent to the Corda distributed account book platform in a ciphertext mode. After receiving the connection request from the first node, the Corda distributed account book platform forwards the connection request to each third node in the second node of the Corda distributed account book platform, and after receiving the connection request from the first node sent by the Corda distributed account book platform, each third node in the second node decrypts the connection request, that is, decrypts the connection request through a public key stored in the Corda distributed account book platform in advance. If the public key of the third node is matched with the private key of the first node which generates the connection request, namely the public key of the third node can decrypt the connection request encrypted by the private key of the first node, and if the public key of the third node is not matched with the private key of the first node which generates the connection request, namely the public key of the third node cannot decrypt the connection request encrypted by the private key of the first node, therefore, the decryption result of each third node in the second node decrypting the connection request is decryption success information or decryption failure information.
Step S212: and when a decryption result sent by the third node is received, establishing connection between the first node and a connection node in the distributed account book platform according to the decryption result.
Step S213: and sending a connection success notice to the sending terminal.
In this embodiment, after each third node in the second node decrypts the connection request, the decrypted result is sent to the Corda distributed ledger platform, and the Corda distributed ledger platform decides whether to connect the first node that sends the connection request with the second node (connection node) in the Corda distributed ledger platform according to the specific decrypted result. Specifically, the Corda distributed account book platform acquires the number of nodes of a third node with a decryption result being successful in decryption in the second node, and when the number of nodes is greater than or equal to the preset number of nodes, connection between the first node and a connection node in the distributed account book platform is established, that is, the connection node in the Corda distributed account book platform is connected with the first node through a standard JPA interface. Specifically, the Corda distributed ledger platform obtains the number of successfully decrypted results sent by all third nodes in the second node, and the number of successfully decrypted results is the number of successfully decrypted nodes, that is, the number of nodes of the successfully decrypted third nodes for the connection request, for example, there are 20 third nodes in the second node in total, and the number of successfully decrypted results counted by the Corda distributed ledger platform is also 20, which indicates that all the 20 third nodes successfully decrypt the connection request, and if the number of successfully decrypted results counted by the Corda distributed ledger platform is 18, which indicates that all the 18 third nodes successfully decrypt the connection request, there are 2 third nodes which fail to decrypt the connection request. In this embodiment, an adding requirement is set for the first node to add to the Corda distributed ledger platform, that is, when the number of nodes of the third node that succeeds in decrypting the connection request is greater than or equal to the preset number of nodes, the first node that sends the connection request is allowed to establish a connection with the second node (connection node) in the Corda distributed ledger platform. After the first node sending the connection request is allowed to establish connection with the second node by the Corda distributed account book platform, the first node sending the connection request is indicated to be successfully added into the Corda distributed account book platform. And then, the Corda distributed ledger platform generates a connection success notification and sends the connection success notification to the first node sending the connection request. After the Corda distributed ledger platform can decrypt the connection request through the public key stored in advance, the connection success notification is sent to the first node sending the connection request according to the first identity information in the connection request, and the public key in the Corda distributed ledger platform can successfully decrypt each received connection request. Further, after the first node sending the connection request successfully joins the Corda distributed account book platform, the Corda distributed account book platform obtains the intelligent contract stored by the Corda distributed account book platform, and sends the intelligent contract to the first node sending the connection request.
As shown in fig. 4, based on the first embodiment, the information sharing method in the third embodiment of the present application is applied to the first node, and the information sharing method includes the following steps:
step S310: transaction information is obtained.
In this embodiment, the identity of the first node is an information sender, and the transaction information refers to information generated during a transaction process between a transaction initiator and a transaction receiver, for example, transaction time information, account information of the transaction initiator, account information of the transaction receiver, and the like. After the transaction between the transaction initiator and the transaction receiver is completed, the first node acquires transaction information generated in the transaction process.
Step S320: and when the transaction information meets the intelligent contract, generating shared information according to the transaction information.
In this embodiment, the intelligent contract may be that after the first node establishes a connection with a connection node of the Corda distributed ledger platform, the Corda distributed ledger platform actively sends the Corda distributed ledger platform to the first node, or that a user at the first node end downloads the Corda distributed ledger platform in advance and then imports the Corda distributed ledger platform to the first node.
After the first node acquires the transaction information, a judgment rule for generating shared information according to the detected transaction information included in the intelligent contract is used for judging whether the acquired transaction information meets a shared information generation condition, and when the acquired transaction information meets the shared information generation condition, a generation operation of the shared information is executed according to a trigger instruction generated by the shared information included in the intelligent contract, namely the shared information is generated according to the transaction information. For example, the judgment rule for detecting the transaction information to generate the shared information is that the first node generates the shared information once when acquiring the preset number of transaction information, and then when the number of the transaction information acquired by the first node reaches the preset number, it indicates that the shared information needs to be generated according to the acquired transaction information. The sharing information generated by the first node according to the transaction information is sent to a third node which shares information with the first node, and the third node is determined by the first node according to the first node and the third node which share information mutually and are included in the intelligent contract. For example, the first node determines that it and the third node a share information with each other through the smart contract, and the generated shared information needs to be sent to the third node a through the Corda distributed ledger platform.
Step S330: and sending the shared information to the distributed ledger platform so that the distributed ledger platform forwards the shared information to a third node.
In this embodiment, after the shared information is generated, the first node sends the shared information to the Corda distributed ledger platform, and the Corda distributed ledger platform receives the shared information sent by the first node. And after the Corda distributed account book platform analyzes the shared information, acquiring a third node included in the shared information, and sending the shared information to the third node included in the shared information.
According to the technical scheme, the transaction information is acquired, when the transaction information meets the intelligent contract, the shared information is generated according to the transaction information and is sent to the distributed account book platform, so that the distributed account book platform forwards the shared information to the third node, the generation efficiency of the shared information is improved, and the shared information can be pertinently sent to the information receiver performing information sharing with the information sender through the Corda distributed account book platform.
As shown in fig. 5, based on the third embodiment, in the fourth embodiment of the present application, the information sharing method of the present application includes the following steps before step S310:
step S311: and acquiring first identity information and a preset identity identification certificate of the first node.
In this embodiment, the first identity information includes address information, account information, name, and other information of the first node; the identity recognition certificate is a CA certificate which is acquired in advance, and the first node can have the authority of joining the Corda distributed account book platform through the identity recognition certificate.
Step S312: and encrypting the first identity information and the identity identification certificate to generate a connection request.
In this embodiment, the first node obtains a private key stored in the first node itself in advance, encrypts the first identity information of the first node itself and the identification certificate together through the private key, and generates a connection request to be added to the Corda distributed ledger platform.
Step S313: and sending the connection request to the distributed ledger platform.
Step S314: and receiving a connection success notice sent by the distributed account book platform.
In this embodiment, the first node sends the generated connection request to the Corda distributed account book platform, and then the Corda distributed account book platform sends the connection request to each third node in its own second node, after each third node in the second node receives the connection request from the first node sent by the Corda distributed account book platform, the connection request is decrypted, after all the third nodes decrypt the connection request, the decryption result is sent to the Corda distributed account book platform, and the decryption result is decryption success information or decryption failure information. When the Corda distributed account book platform judges that the decryption result is that the number of the information which is successfully decrypted is larger than or equal to the preset number of nodes, connection between the first node and a second node (connecting node) in the Corda distributed account book platform is established, the Corda distributed account book platform generates a connection success notice, and sends the connection success notice to the first node which sends the connection request according to the decrypted connection request. And the decryption result is that the number of the decryption success information is also the number of the nodes of the third node which successfully decrypt the connection request.
As shown in fig. 6, according to the third embodiment, the step of generating shared information according to the transaction information in step 320 in the fifth embodiment of the present application includes:
step 321: and acquiring second identity information of the third node according to the intelligent contract.
In this embodiment, because the intelligent contract includes the first node and the third node that perform information sharing with each other, the first node may obtain, according to the intelligent contract in itself, second identity information of the third node that performs information sharing with itself, where the second identity information includes address information, account information, a name, and other information of the third node.
Step 322: and generating the shared information according to the first identity information, the second identity information and the transaction information.
In this embodiment, the first node assembles the first identity information, the second identity information, and the transaction information according to a data structure of the shared information generated in the intelligent contract, and generates the shared information. For example, the generated shared information is of a state data structure. Furthermore, the data structure of the shared information received by the Corda distributed ledger platform is a state data structure.
As shown in fig. 7, based on the first embodiment, the information sharing method in the sixth embodiment of the present application is applied to the third node, and the information sharing method includes the following steps:
step 410: and receiving the shared information sent by the distributed account book platform.
In this embodiment, the identity of the third node is an information receiving party, after receiving the shared information sent by the first node connected to the third node, the Corda distributed account book platform obtains second identity information included in the shared information, and determines to which third node the shared information is specifically shared according to the second identity information, and then sends the shared information to the third node corresponding to the second identity information, and the third node receives the shared information sent by the Corda distributed account book platform.
Step 420: and verifying the shared information by adopting an intelligent contract.
Step 430: and when the shared information passes the verification, saving the shared information.
In this embodiment, the intelligent contract includes a first node and a third node that perform information sharing with each other, where the third node acquires first identity information of the first node that performs information sharing with itself through the intelligent contract, and then acquires the first identity information included in the shared information, if it is determined that the first identity information of the first node that performs information sharing with itself in the intelligent contract is the same as the first identity information included in the shared information, the shared information is verified to be passed, then the shared information is signed and stored, and a further user can use the shared information through the third node.
According to the technical scheme, the shared information sent by the distributed account book platform is received, the shared information is verified by the intelligent contract, and when the shared information is verified, the shared information is stored, so that the information receiver can specifically receive the shared information sent by the information sender sharing the information with the information receiver.
As shown in fig. 8, according to the sixth embodiment, step 410 in the seventh embodiment of the present application includes the following steps:
step 411: and receiving a connection request sent by the distributed account book platform.
In this embodiment, the connection request is generated according to the first identity information and the identification certificate of the first node. After acquiring the first identity information and the identity identification certificate of the first node, the first node encrypts the first identity information and the identity identification certificate of the first node together through a private key to generate a connection request, and sends the connection request to a third node in a second node of the first node, and the third node receives the connection request.
Step 412: and acquiring a preset public key, and decrypting the connection request by adopting the private key.
Step 413: and sending the decryption result to the distributed account book platform.
In this embodiment, the third node obtains a public key preset by itself, and decrypts the connection request through the public key. If the public key of the third node is matched with the private key of the first node which generates the connection request, namely the public key of the third node can decrypt the connection request encrypted by the private key of the first node, and if the public key of the third node is not matched with the private key of the first node which generates the connection request, namely the public key of the third node cannot decrypt the connection request encrypted by the private key of the first node, the generated decryption result is decryption success information or decryption failure information after the third node decrypts the connection request. And after the third node decrypts the connection request, sending a decryption result to the Corda distributed account book platform, and receiving the decryption result by the Corda distributed account book platform.
As shown in fig. 9, fig. 9 is a schematic diagram of an interaction process among the Corda distributed ledger platform, the first node, and the third node, where the interaction process among the Corda distributed ledger platform, the first node, and the third node includes a process in which the first node establishes a connection with the Corda distributed ledger platform and a process in which information is shared, and a dashed box in the diagram represents a connection node provided externally by the Corda distributed ledger platform, that is, a second node, where one of the second nodes has a third node connected thereto. Taking the first node as an information sender and the second node as an information receiver as an example, the interaction process among the Corda distributed account book platform, the first node and the third node is specifically as follows:
step S511: the method comprises the steps that a first node obtains self first identity information and a preset identity recognition certificate, encrypts the first identity information and the identity recognition certificate by adopting a self private key, generates a connection request and sends the connection request to a Corda distributed account book platform;
step S512: the Corda distributed account book platform receives the connection request and forwards the Corda distributed account book platform to a third node;
step S513: the third node decrypts the connection request by using the public key of the third node, and sends a decryption result to the Corda distributed account book platform;
step S514: the Corda distributed account book platform acquires the number of nodes of a third node which successfully decrypts the connection request according to the decryption result, establishes connection between the first node and a second node in the Corda distributed account book platform when the number of the nodes is determined to be larger than or equal to the preset number of the nodes, and sends a connection success notice to the first node;
step S515: the first node receives a connection success notice;
step S516: the method comprises the steps that a first node obtains transaction information, when the obtained transaction information meets a shared information generation condition is judged through a judgment rule for detecting the transaction information to generate the shared information in an intelligent contract, generation operation of the shared information is executed, namely second identity information of a third node performing information sharing with the first node is obtained from the intelligent contract, the first identity information, the second identity information and the transaction information are assembled to generate shared information, and the shared information is sent to a Corda distributed account book platform;
step S517: the Corda distributed account book platform receives the shared information, acquires second identity information from the shared information, determines a third node corresponding to the second identity information as a third node performing information sharing with the first node, and sends the shared information to the third node corresponding to the second identity information;
step S518: the third node receives the shared information, acquires first identity information of a first node which carries out information sharing with the third node through the intelligent contract, then acquires the first identity information included in the shared information, if the first identity information of the first node which carries out information sharing with the third node in the intelligent contract is determined to be the same as the first identity information included in the shared information, the shared information is determined to pass verification, and then signature is carried out on the shared information and the shared information is stored.
Through the interaction scheme among the Corda distributed account book platform, the first node and the third node, the information is shared in different power and domains, and the information sharing efficiency is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. An information sharing method is applied to a distributed ledger platform, and the information sharing method comprises the following steps:
receiving shared information sent by a first node connected with the distributed account book platform, wherein the shared information is generated according to transaction information of the first node;
determining a third node which is connected with the distributed account book platform and shares information with the first node in the second nodes according to the shared information;
and sending the sharing information to the third node.
2. The information sharing method of claim 1, wherein the step of receiving the shared information sent by the first node is preceded by:
when receiving a connection request sent by the first node, sending the connection request to a third node in the second nodes, so that the third node decrypts the connection request; the connection request is generated according to the first identity information and the identity identification certificate of the first node;
when a decryption result sent by the third node is received, establishing connection between the first node and a connection node in the distributed account book platform according to the decryption result;
and sending a connection success notice to the sending terminal.
3. The information sharing method according to claim 2, wherein the step of establishing a connection between the first node and a connection node in the distributed ledger platform according to the decryption result includes:
acquiring the number of nodes of a third node in the second node, wherein the decryption result is the decryption success;
and when the number of the nodes is greater than or equal to the preset number of the nodes, establishing connection between the first node and the connection nodes in the distributed account book platform.
4. The information sharing method according to claim 3, wherein the step of determining, from the shared information, a third node that shares information with the first node among the second nodes connected to the distributed ledger platform includes:
acquiring first identity information and second identity information included in the shared information;
and determining a third node corresponding to the second identity information as a third node performing information sharing with the first node corresponding to the first identity information.
5. An information sharing method applied to a first node, the information sharing method comprising:
acquiring transaction information;
when the transaction information meets the intelligent contract, generating shared information according to the transaction information;
and sending the shared information to the distributed ledger platform so that the distributed ledger platform forwards the shared information to a third node.
6. The information sharing method of claim 5, wherein the step of obtaining transaction information is preceded by the step of:
acquiring first identity information and a preset identity identification certificate of the first node;
encrypting the first identity information and the identity identification certificate to generate a connection request;
sending the connection request to the distributed ledger platform;
and receiving a connection success notice sent by the distributed account book platform.
7. The information sharing method according to claim 6, wherein the step of generating shared information based on the transaction information includes:
acquiring second identity information of the third node according to the intelligent contract;
and generating the shared information according to the first identity information, the second identity information and the transaction information.
8. An information sharing method applied to a third node, the information sharing method comprising:
receiving shared information sent by a distributed account book platform;
verifying the shared information by adopting an intelligent contract;
and when the shared information passes the verification, saving the shared information.
9. The information sharing method according to claim 8, wherein the step of receiving the shared information sent by the distributed ledger platform is preceded by:
receiving a connection request sent by the distributed account book platform, wherein the connection request is generated according to first identity information and an identity identification certificate of a first node;
acquiring a preset public key, and decrypting the connection request by adopting the private key;
and sending a decryption result to the distributed account book platform, wherein the decryption result comprises decryption success information or decryption failure information.
10. A computer device, comprising: memory, processor and information sharing program stored on the memory and executable on the processor, the information sharing program when executed by the processor implementing the steps of the information sharing method as claimed in any one of claims 1-9.
CN202110458040.0A 2021-04-26 2021-04-26 Information sharing method and equipment Active CN113497827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110458040.0A CN113497827B (en) 2021-04-26 2021-04-26 Information sharing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110458040.0A CN113497827B (en) 2021-04-26 2021-04-26 Information sharing method and equipment

Publications (2)

Publication Number Publication Date
CN113497827A true CN113497827A (en) 2021-10-12
CN113497827B CN113497827B (en) 2024-04-16

Family

ID=77997899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110458040.0A Active CN113497827B (en) 2021-04-26 2021-04-26 Information sharing method and equipment

Country Status (1)

Country Link
CN (1) CN113497827B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205170A (en) * 2021-12-21 2022-03-18 厦门安胜网络科技有限公司 Cross-interface platform networking communication and service encryption calling method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181599A (en) * 2017-07-18 2017-09-19 天津理工大学 The storage of route location data confidentiality and sharing method based on block chain
US10102526B1 (en) * 2017-03-31 2018-10-16 Vijay K. Madisetti Method and system for blockchain-based combined identity, ownership, integrity and custody management
CN108881363A (en) * 2018-01-03 2018-11-23 上海指旺信息科技有限公司 Point-to-point personal information shared platform and method based on block chain
CN109347941A (en) * 2018-10-10 2019-02-15 南京简诺特智能科技有限公司 A kind of data sharing platform and its implementation based on block chain
CN110019009A (en) * 2017-11-10 2019-07-16 中兴通讯股份有限公司 Electronics license sharing method, server and readable storage medium storing program for executing
CN110071969A (en) * 2019-04-17 2019-07-30 杭州云象网络技术有限公司 A kind of data safety sharing method based on multichain framework
US20200117823A1 (en) * 2018-10-16 2020-04-16 International Business Machines Corporation Selective exchange of transaction data
CN111080274A (en) * 2019-12-05 2020-04-28 杭州呯嘭智能技术有限公司 Payment method and system based on Corda database
US20200211000A1 (en) * 2018-12-26 2020-07-02 Wipro Limited Blockchain network and nodes for tracking device as a service operations
CN111400761A (en) * 2020-03-17 2020-07-10 吉林亿联银行股份有限公司 Data sharing method and device, storage medium and electronic equipment
US20200279259A1 (en) * 2019-04-12 2020-09-03 Alibaba Group Holding Limited Blockchain-based data processing system, method, computing device and storage medium
US10824746B1 (en) * 2017-01-25 2020-11-03 State Farm Mutual Automobile Insurance Company Systems and methods for controlled access to blockchain data
CN112686672A (en) * 2021-01-08 2021-04-20 新晨科技股份有限公司 Block chain endorsement signature compression method, electronic device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10824746B1 (en) * 2017-01-25 2020-11-03 State Farm Mutual Automobile Insurance Company Systems and methods for controlled access to blockchain data
US10102526B1 (en) * 2017-03-31 2018-10-16 Vijay K. Madisetti Method and system for blockchain-based combined identity, ownership, integrity and custody management
CN107181599A (en) * 2017-07-18 2017-09-19 天津理工大学 The storage of route location data confidentiality and sharing method based on block chain
CN110019009A (en) * 2017-11-10 2019-07-16 中兴通讯股份有限公司 Electronics license sharing method, server and readable storage medium storing program for executing
CN108881363A (en) * 2018-01-03 2018-11-23 上海指旺信息科技有限公司 Point-to-point personal information shared platform and method based on block chain
CN109347941A (en) * 2018-10-10 2019-02-15 南京简诺特智能科技有限公司 A kind of data sharing platform and its implementation based on block chain
US20200117823A1 (en) * 2018-10-16 2020-04-16 International Business Machines Corporation Selective exchange of transaction data
US20200211000A1 (en) * 2018-12-26 2020-07-02 Wipro Limited Blockchain network and nodes for tracking device as a service operations
US20200279259A1 (en) * 2019-04-12 2020-09-03 Alibaba Group Holding Limited Blockchain-based data processing system, method, computing device and storage medium
CN110071969A (en) * 2019-04-17 2019-07-30 杭州云象网络技术有限公司 A kind of data safety sharing method based on multichain framework
CN111080274A (en) * 2019-12-05 2020-04-28 杭州呯嘭智能技术有限公司 Payment method and system based on Corda database
CN111400761A (en) * 2020-03-17 2020-07-10 吉林亿联银行股份有限公司 Data sharing method and device, storage medium and electronic equipment
CN112686672A (en) * 2021-01-08 2021-04-20 新晨科技股份有限公司 Block chain endorsement signature compression method, electronic device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. ALRUWAILI AND D. KRUGER: "Hybrid-Trusted Party Contract Agrees on Clients Input", 2020 IEEE 3RD 5G WORLD FORUM (5GWF), 13 October 2020 (2020-10-13) *
谭海波, 周桐, 赵赫等: "基于区块链的档案数据保护与共享方法", 软件学报, 11 April 2019 (2019-04-11) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205170A (en) * 2021-12-21 2022-03-18 厦门安胜网络科技有限公司 Cross-interface platform networking communication and service encryption calling method
CN114205170B (en) * 2021-12-21 2023-11-17 厦门安胜网络科技有限公司 Bridging port platform networking communication and service encryption calling method

Also Published As

Publication number Publication date
CN113497827B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN111949953B (en) Identity authentication method, system and device based on block chain and computer equipment
CN109583857B (en) Method, system, device and storage medium for processing public offer task
CN111159651B (en) Block chain online evidence-storing method and system
CN105025041A (en) File upload method, file upload apparatus and system
CN111211911B (en) Collaborative signature method, device, equipment and system
CN104836784B (en) A kind of information processing method, client and server
CN105577602A (en) Data pushing method and data pushing device based on open application programming interface
CN103139182A (en) Method, client end, server and system allowing user to visit
CN114172662A (en) Block chain external data acquisition method and device
CN110213247A (en) A kind of method and system improving pushed information safety
CN111246407B (en) Data encryption and decryption method and device for short message transmission
CN114553957B (en) Service system and method compatible with national cipher and international HTTPS transmission
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN101789973A (en) Method and system for constructing Mashup application
CN113497827B (en) Information sharing method and equipment
CN103559430B (en) application account management method and device based on Android system
JP5961471B2 (en) Output comparison method in multiple information systems
CN115022012B (en) Data transmission method, device, system, equipment and storage medium
CN111552950A (en) Software authorization method and device and computer readable storage medium
CN108234401B (en) Method and device for authorizing service system
CN111125734B (en) Data processing method and system
CN111385750B (en) Communication system and communication method
CN112422275A (en) Key negotiation method, system, equipment and computer storage medium in UART communication
CN109933960A (en) Service call control method, service calling method, device and terminal
CN111212062B (en) Information completion method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant