CN109067724B - Block chain data transaction method, device, equipment and storage medium - Google Patents

Block chain data transaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN109067724B
CN109067724B CN201810821438.4A CN201810821438A CN109067724B CN 109067724 B CN109067724 B CN 109067724B CN 201810821438 A CN201810821438 A CN 201810821438A CN 109067724 B CN109067724 B CN 109067724B
Authority
CN
China
Prior art keywords
broadcast message
data
node
blockchain
block link
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.)
Active
Application number
CN201810821438.4A
Other languages
Chinese (zh)
Other versions
CN109067724A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810821438.4A priority Critical patent/CN109067724B/en
Publication of CN109067724A publication Critical patent/CN109067724A/en
Application granted granted Critical
Publication of CN109067724B publication Critical patent/CN109067724B/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
    • 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
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method, a device, equipment and a storage medium for block chain data transaction. The method comprises the following steps: a first block chain link point receives a data request message sent by a user terminal; sending a first broadcast message to a block chain network according to the data request message; receiving a second broadcast message sent by a second blockchain node in the blockchain network; the first block chain node sends a third broadcast message to the block chain network, wherein the third broadcast message is used for indicating that the first block chain node receives the data provided by the second block chain node; the first blockchain node receives a fourth broadcast message sent by the second blockchain node, wherein the fourth broadcast message comprises: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained by encrypting data by using a public key of a first block chain node by using a second block chain node, and the signature information is information obtained by signing the encryption information by using a private key of the second block chain node by using the second block chain node. The embodiment of the invention improves the safety of data transaction.

Description

Block chain data transaction method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, a device, equipment and a storage medium for block chain data transaction.
Background
Data is the most important component of future economies dominated by interconnect and machine learning, for example, the analysis of data by Artificial Intelligence (AI) algorithms yields many discoveries that change the world. For enterprises with limited data collection capability, data trading will be a reciprocal job that can promote innovation in companies.
However, in conventional data transactions, security and non-tampering cannot be guaranteed. If the data is forged or falsified, the benefit of the transaction purchaser cannot be guaranteed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for block chain data transaction, which are used for improving the security of data transaction.
In a first aspect, an embodiment of the present invention provides a method for performing blockchain data transaction, including:
a first block chain link point receives a data request message sent by a user terminal;
the first block chain link point sends a first broadcast message to a block chain network according to the data request message, wherein the first broadcast message comprises the data request message;
the first block link node receives a second broadcast message sent by a second block link node in the block link network, where the second broadcast message includes: identification information for indicating that the second block link node stores the data requested by the first block link node;
the first block chain node sending a third broadcast message to the block chain network, the third broadcast message being indicative that the first block chain node accepts the data provided by the second block chain node;
the first block link node receives a fourth broadcast message sent by the second block link node, where the fourth broadcast message includes: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained after the second block link node encrypts the data by adopting a public key of the first block link node, and the signature information is information obtained after the second block link node signs the encryption information by adopting a private key of the second block link node.
In a second aspect, an embodiment of the present invention provides a blockchain data transaction apparatus, including:
the receiving module is used for receiving a data request message sent by a user terminal;
a sending module, configured to send a first broadcast message to a block chain network according to the data request message, where the first broadcast message includes the data request message;
the receiving module is further configured to: receiving a second broadcast message sent by a second blockchain node in the blockchain network, wherein the second broadcast message comprises: identification information for indicating that the second block link node stores the data requested by the first block link node;
the sending module is further configured to: sending a third broadcast message to the blockchain network, the third broadcast message indicating that the first blockchain node accepts the data provided by the second blockchain node;
the receiving module is further configured to: receiving a fourth broadcast message sent by the second blockchain node, where the fourth broadcast message includes: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained after the second block link node encrypts the data by adopting a public key of the first block link node, and the signature information is information obtained after the second block link node signs the encryption information by adopting a private key of the second block link node.
In a third aspect, an embodiment of the present invention provides a block link point, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
According to the method, the device, the equipment and the storage medium for the block chain data transaction, provided by the embodiment of the invention, the proxy node in the block chain network acquires the data requested to be acquired by the user terminal from the data source node in the block chain network according to the data request message sent by the user terminal, and the decentralized, safety and non-falsification characteristics of the block chain are utilized to improve the safety of the data transaction.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
FIG. 2 is a flow chart of a method for block chain data transaction according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a blockchain data transaction apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The block chain data transaction method provided by the invention can be applied to the communication system shown in fig. 1. As shown in fig. 1, the communication system includes: access network device 11, terminal device 12, and server 13. It should be noted that the communication System shown in fig. 1 may be applicable to different network formats, for example, may be applicable to Global System for Mobile communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (Long Term Evolution, LTE), and future 5G network formats. Optionally, the communication system may be a system in a scenario of high-reliability and Low-Latency Communications (URLLC) transmission in a 5G communication system.
Therefore, optionally, the access Network device 11 may be a Base Station (BTS) and/or a Base Station Controller in GSM or CDMA, a Base Station (NodeB, NB) and/or a Radio Network Controller (RNC) in WCDMA, an evolved Node B (eNB or eNodeB) in LTE, or a relay Station or an access point, or a Base Station (gbb) in a future 5G Network, and the present invention is not limited thereto.
The terminal device 12 may be a wireless terminal or a wired terminal. A wireless terminal may refer to a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal, which may be a mobile terminal such as a mobile telephone (or "cellular" telephone) and a computer having a mobile terminal, for example, a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device, may communicate with one or more core Network devices via a Radio Access Network (RAN), and may exchange language and/or data with the RAN. For another example, the Wireless terminal may also be a Personal Communication Service (PCS) phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), and other devices. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and a User Device or User Equipment (User Equipment), which are not limited herein. Optionally, the terminal device 12 may also be a smart watch, a tablet computer, or the like. The server 13 may be a node in a blockchain network. In addition, other nodes, such as server 14, may also be included in the blockchain network. In some embodiments, terminal device 12 may or may not be a node in a blockchain network.
The invention provides a block chain data transaction method, which aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for performing a blockchain data transaction according to an embodiment of the present invention. The embodiment of the invention provides a block chain data transaction method aiming at the technical problems in the prior art, and the method comprises the following specific steps:
step 201, the first block chain node receives a data request message sent by a user terminal.
In this embodiment, the user terminal may specifically be the terminal device 12 shown in fig. 1, the first tile link point may specifically be the server 13 shown in fig. 1, and the second tile link point may specifically be the server 14 shown in fig. 1. Optionally, the server 14 is a data source node that is a node providing data in the blockchain network, the server 13 is a proxy node for data transaction in the blockchain network, and the terminal device 12 is a terminal device of a user or a business requesting data. In this embodiment, the server 13 and the server 14 are nodes in a blockchain network, and the terminal device 12 may be a node in the blockchain network or may not be a node in the blockchain network.
Specifically, the server 13 receives a data request message sent by the terminal device 12, where the data request message may specifically include description information of data requested to be acquired by the terminal device 12, and information such as a transaction amount payable by the terminal device 12.
Step 202, the first block link node sends a first broadcast message to a block chain network according to the data request message, where the first broadcast message includes the data request message.
The server 13 sends a first broadcast message to the blockchain network according to the data request message sent by the terminal device 12, wherein the first broadcast message comprises the data request message.
Optionally, the sending, by the first tile link point, the first broadcast message to the tile chain network according to the data request message includes: and the first block chain node determines the hash value of the data request message according to the data request message and then sends a first broadcast message to the block chain network, wherein the first broadcast message comprises the data request message and the hash value.
For example, after the server 13 receives the data request message sent by the terminal device 12, the hash value corresponding to the data request message is calculated, and the data request message and the hash value corresponding to the data request message are signed by the private key of the server 13 and then broadcast to the blockchain network, that is, the first broadcast message specifically includes: the data request message signed by the private key of the server 13 and the hash value corresponding to the data request message.
Step 203, the first block link node receives a second broadcast message sent by a second block link node in the block link network, where the second broadcast message includes: identification information for indicating that the second block link point stores the data requested by the first block link node.
When a second blockchain node in the blockchain network, such as the server 14, receives a first broadcast message sent by the server 13, a database local to the server 14 is queried according to a data request message in the first broadcast message to determine whether the server 14 stores data requested by the data request message, and when the server 14 stores data requested by the data request message, the server 14 sends a second broadcast message to the blockchain network, where the second broadcast message includes: identification information indicating that the server 14 stores the data requested by the data request message.
In addition, the second broadcast message further includes: a timestamp local to the second block link point when the second block link point sends the second broadcast message. For example, the second broadcast message sent by the server 14 to the blockchain network includes not only the identification information described above, but also a timestamp local to the server 14 when the server 14 sent the second broadcast message. In addition, the second broadcast message also includes the public key of the server 14. The server 14 uses its own private key to sign the identification information, the timestamp local to the server 14, and the public key of the server 14, and broadcasts the signature to the blockchain network.
When other data source nodes in the blockchain network receive the second broadcast message sent by the server 14, the data transaction service can no longer be provided for the server 13.
Step 204, the first blockchain node sends a third broadcast message to the blockchain network, where the third broadcast message is used to indicate that the first blockchain node accepts the data provided by the second blockchain node.
After the server 13 receives the second broadcast message sent by the server 14, the server 13 further sends a third broadcast message to the blockchain network, where the third broadcast message is used to indicate that the server 13 accepts the data provided by the server 14, and specifically, the third broadcast message may include: identification information of the server 13, a hash value corresponding to the data request message in the above embodiment, and identification information of the server 14. Optionally, the server 13 uses its own private key to sign the third broadcast message and broadcasts the third broadcast message to the blockchain network.
In this embodiment, if the server 13 receives broadcast messages which are fed back by multiple data source nodes and can provide corresponding data at the same time, for example, if the server 13 receives not only the second broadcast message sent by the server 14 but also the second broadcast messages sent by other servers, the server 13 compares the timestamp of the server 14 in the second broadcast message sent by the server 14 with the timestamps of the other servers in the second broadcast message sent by other servers, and selects one server from the server 14 and other servers as the final data source node according to the sequence of the timestamp of the server 14 and the timestamps of the other servers. For example, the server 13 selects the server 14 as the final data source node.
Step 205, the first block link node receives a fourth broadcast message sent by the second block link node, where the fourth broadcast message includes: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained after the second block link node encrypts the data by adopting a public key of the first block link node, and the signature information is information obtained after the second block link node signs the encryption information by adopting a private key of the second block link node.
After the server 14 receives the third broadcast message sent by the server 13, the server 14 encrypts the data requested to be obtained by the server 13 by using the public key of the server 13 to obtain encrypted information, signs the encrypted information by using the private key of the server 14 to obtain signature information, and further sends a fourth broadcast message to the blockchain network, where the fourth broadcast message includes the encrypted information and the signature information.
Further, the fourth broadcast message further includes: an authorized scope of use of the data; after the first block link node receives the fourth broadcast message sent by the second block link node, the method further includes: and the first block chain link point sends the data and the authorized use range of the data to the user terminal.
For example, the fourth broadcast message sent by the server 14 to the blockchain network includes not only the above encryption information and signature information, but also: a statement of the scope of authorized use of the data by the server 14. After receiving the fourth broadcast message sent by the server 14, the server 13 verifies the signature information in the fourth broadcast message according to the public key of the server 14, after the verification is passed, decrypts the encrypted information in the fourth broadcast message by using the own private key of the server 13 to obtain the data requested by the terminal device 12, and sends the data and the authorized use range of the data to the terminal device 12. In addition, the server 13 may broadcast transaction information transferred to the server 14 in the blockchain network based on the amount of transactions payable by the terminal device 12.
In addition, the first block chain node detects whether the user terminal exceeds the authorized use range of the data when using the data; if the user terminal exceeds the authorized use range of the data when using the data, the first block chain link point broadcasts the identification information of the user terminal to the block chain network.
In this embodiment, after the server 13 sends the data requested by the terminal device 12 and the authorized use range of the data to the terminal device 12, the server 13 may further detect whether the terminal device 12 uses the data within the authorized use range of the data, and if the terminal device 12 does not use the data within the authorized use range, the server 13 may record the identification information of the terminal device 12 in a blacklist list, and refuse to provide a data transaction service for the terminal device 12 subsequently, and at the same time, the server 13 may broadcast the identification information of the terminal device 12 to the blockchain network, so that other nodes in the blockchain network refuse to provide the data transaction service for the terminal device 12.
According to the embodiment of the invention, the proxy node in the block chain network acquires the data requested to be acquired by the user terminal from the data source node in the block chain network according to the data request message sent by the user terminal, and the data transaction safety is improved by using the characteristics of decentralization, safety and non-falsification of the block chain.
On the basis of the foregoing embodiment, before the first blockchain node sends the third broadcast message to the blockchain network, the method further includes: the first block link point determines a time difference between the timestamp local to the second block link point and the timestamp local to the first block link point based on the timestamp local to the second block link point and the timestamp local to the first block link point when the first block link point receives the second broadcast message. The first blockchain node sending a third broadcast message to the blockchain network, comprising: when the time difference between the timestamp local to the second blockchain node and the timestamp local to the first blockchain node is less than or equal to a preset time difference threshold, the first blockchain node sends a third broadcast message to the blockchain network.
For example, the second broadcast message sent by the server 14 to the blockchain network includes a timestamp local to the server 14 when the server 14 sends the second broadcast message, when the server 13 receives the second broadcast message, the server 13 records the local timestamp, and calculates a time difference between the timestamp local to the server 14 and the timestamp local to the server 13 according to the timestamp local to the server 14 in the second broadcast message and the timestamp local to the server 13 when the server 13 receives the second broadcast message, and if the time difference is less than or equal to a preset time difference threshold, the server 13 sends a third broadcast message to the blockchain network. If the time difference is greater than a preset time difference threshold, the server 13 sends a prompt that the local timestamp of the server 14 is incorrect to the blockchain network, and if the time difference between the local timestamp of the node in the blockchain network, which exceeds a certain preset proportion, for example, more than 50%, when receiving the second broadcast message and the local timestamp of the server 14 in the second broadcast message is greater than the preset time difference threshold, it is determined that the local timestamp of the server 14 is incorrect, and the server 14 is disqualified as the data source node.
According to the embodiment of the invention, the time stamp broadcasted by the data source node in the broadcast message is compared with the time stamp of the proxy node when the proxy node receives the broadcast message through the proxy node in the block chain network, and when the time stamp broadcasted by the data source node in the broadcast message and the time stamp of the proxy node are greater than the preset time difference threshold value, the proxy node determines that the time stamp of the data source node is wrong, so that the condition that the data source node randomly modifies the local time stamp is avoided, and the reliability of data is improved.
Fig. 3 is a schematic structural diagram of a blockchain data transaction apparatus according to an embodiment of the present invention. The blockchain data transaction device may be specifically the first blockchain node in the above embodiments. As shown in fig. 3, the blockchain data transaction apparatus 30 according to an embodiment of the present invention may execute a processing procedure provided in the blockchain data transaction method according to an embodiment of the present invention, including: a receiving module 31 and a transmitting module 32; the receiving module 31 is configured to receive a data request message sent by a user terminal; the sending module 32 is configured to send a first broadcast message to a blockchain network according to the data request message, where the first broadcast message includes the data request message; the receiving module 31 is further configured to: receiving a second broadcast message sent by a second blockchain node in the blockchain network, wherein the second broadcast message comprises: identification information for indicating that the second block link node stores the data requested by the first block link node; the sending module 32 is further configured to: sending a third broadcast message to the blockchain network, the third broadcast message indicating that the first blockchain node accepts the data provided by the second blockchain node; the receiving module 31 is further configured to: receiving a fourth broadcast message sent by the second blockchain node, where the fourth broadcast message includes: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained after the second block link node encrypts the data by adopting a public key of the first block link node, and the signature information is information obtained after the second block link node signs the encryption information by adopting a private key of the second block link node.
Optionally, the blockchain data transaction device 30 further includes: a determination module 33; the determining module 33 is configured to determine a hash value of the data request message; the sending module 32, when sending the first broadcast message to the blockchain network according to the data request message, is specifically configured to: and after the determining module 33 determines the hash value of the data request message according to the data request message, sending a first broadcast message in the blockchain network, wherein the first broadcast message comprises the data request message and the hash value.
Optionally, the second broadcast message further includes: a timestamp local to the second block link point when the second broadcast message is transmitted by the second block link point; the determination module 33 is further configured to: before the sending module sends a third broadcast message to the blockchain network, determining a time difference between the timestamp local to the second blockchain point and the timestamp local to the first blockchain point according to the timestamp local to the second blockchain point and the timestamp local to the first blockchain point when the first blockchain point receives the second broadcast message; when the sending module 32 sends the third broadcast message to the blockchain network, the sending module is specifically configured to: and when the time difference between the local time stamp of the second block link point and the local time stamp of the first block link point is smaller than or equal to a preset time difference threshold value, sending a third broadcast message to the block chain network.
Optionally, the fourth broadcast message further includes: an authorized scope of use of the data; the fourth broadcast message further comprises: an authorized scope of use of the data; the sending module 32 is further configured to: and after the receiving module receives the fourth broadcast message sent by the second blockchain node, sending the data and the authorized use range of the data to the user terminal.
Optionally, the blockchain data transaction device 30 further includes: a detection module 34; the detection module 34 is configured to detect whether the user terminal is out of an authorized use range of the data when using the data; the sending module 32 is further configured to: and when detecting whether the user terminal exceeds the authorized use range of the data when using the data, broadcasting the identification information of the user terminal to the block chain network.
The blockchain data transaction apparatus of the embodiment shown in fig. 3 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
Fig. 4 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention. As shown in fig. 4, the blockchain node 40 includes a memory 41, a processor 42, a computer program, and a communication interface 43; wherein a computer program is stored in the memory 41 and configured to execute the blockchain data transaction method described in the above embodiments by the processor 42.
The block link points of the embodiment shown in fig. 4 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
In addition, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the blockchain data transaction method described in the above embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A method for blockchain data transaction, comprising:
a first block chain link point receives a data request message sent by a user terminal;
the first block chain link point sends a first broadcast message to a block chain network according to the data request message, wherein the first broadcast message comprises the data request message;
the first block link node receives a second broadcast message sent by a second block link node in the block link network, where the second broadcast message includes: identification information for indicating that the second block link node stores the data requested by the first block link node;
the first block chain node sending a third broadcast message to the block chain network, the third broadcast message being indicative that the first block chain node accepts the data provided by the second block chain node;
the first block link node receives a fourth broadcast message sent by the second block link node, where the fourth broadcast message includes: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained after the second block link node encrypts the data by adopting a public key of the first block link node, and the signature information is information obtained after the second block link node signs the encryption information by adopting a private key of the second block link node.
2. The method of claim 1, wherein the first tile chain node sends a first broadcast message to a tile chain network according to the data request message, comprising:
and the first block chain node determines the hash value of the data request message according to the data request message and then sends a first broadcast message to the block chain network, wherein the first broadcast message comprises the data request message and the hash value.
3. The method of claim 2, wherein the second broadcast message further comprises: a timestamp local to the second block link point when the second broadcast message is transmitted by the second block link point;
before the first blockchain node sends the third broadcast message to the blockchain network, the method further includes:
the first block link point determining a time difference between the timestamp local to the second block link point and the timestamp local to the first block link point when the first block link point received the second broadcast message based on the timestamp local to the second block link point and the timestamp local to the first block link point when the first block link point received the second broadcast message;
the first blockchain node sending a third broadcast message to the blockchain network, comprising:
when a time difference between the timestamp local to the second tile link point and the timestamp local to the first tile link point when the first tile link point receives the second broadcast message is less than or equal to a preset time difference threshold, the first tile link node sends a third broadcast message to the tile link network.
4. The method of claim 1, wherein the fourth broadcast message further comprises: an authorized scope of use of the data;
after the first block link node receives the fourth broadcast message sent by the second block link node, the method further includes:
and the first block chain link point sends the data and the authorized use range of the data to the user terminal.
5. The method of claim 4, further comprising:
the first block chain node detects whether the user terminal exceeds the authorized use range of the data when using the data;
if the user terminal exceeds the authorized use range of the data when using the data, the first block chain link point broadcasts the identification information of the user terminal to the block chain network.
6. A blockchain data transaction apparatus, comprising:
the receiving module is used for receiving a data request message sent by a user terminal;
a sending module, configured to send a first broadcast message to a block chain network according to the data request message, where the first broadcast message includes the data request message;
the receiving module is further configured to: receiving a second broadcast message sent by a second blockchain node in the blockchain network, wherein the second broadcast message comprises: identification information, which is used for indicating that the second block link point stores the data requested by the first block link node;
the sending module is further configured to: sending a third broadcast message to the blockchain network, the third broadcast message indicating that the first blockchain node accepts the data provided by the second blockchain node;
the receiving module is further configured to: receiving a fourth broadcast message sent by the second blockchain node, where the fourth broadcast message includes: the data encryption method comprises encryption information and signature information, wherein the encryption information is information obtained after the second block link node encrypts the data by adopting a public key of the first block link node, and the signature information is information obtained after the second block link node signs the encryption information by adopting a private key of the second block link node.
7. The blockchain data transaction device of claim 6, further comprising:
a determining module for determining a hash value of the data request message;
the sending module, when sending the first broadcast message to the blockchain network according to the data request message, is specifically configured to: and after the determining module determines the hash value of the data request message according to the data request message, sending a first broadcast message to the blockchain network, wherein the first broadcast message comprises the data request message and the hash value.
8. The blockchain data transaction device of claim 7, wherein the second broadcast message further includes: a timestamp local to the second block link point when the second broadcast message is transmitted by the second block link point;
the determination module is further to: before the sending module sends a third broadcast message to the blockchain network, determining a time difference between the timestamp local to the second blockchain point and the timestamp local to the first blockchain point when the first blockchain point receives the second broadcast message according to the timestamp local to the second blockchain point and the timestamp local to the first blockchain point when the first blockchain point receives the second broadcast message;
when the sending module sends the third broadcast message to the blockchain network, the sending module is specifically configured to:
and when the time difference between the local timestamp of the second block link point and the local timestamp of the first block link point when the first block link point receives the second broadcast message is less than or equal to a preset time difference threshold value, sending a third broadcast message to the block link network.
9. The blockchain data transaction device of claim 6, wherein the fourth broadcast message further includes: an authorized scope of use of the data;
the sending module is further configured to: and after the receiving module receives the fourth broadcast message sent by the second blockchain node, sending the data and the authorized use range of the data to the user terminal.
10. The blockchain data transaction apparatus of claim 9, further comprising: the detection module is used for detecting whether the user terminal exceeds the authorized use range of the data when using the data;
the sending module is further configured to: and when detecting whether the user terminal exceeds the authorized use range of the data when using the data, broadcasting the identification information of the user terminal to the block chain network.
11. A block link point, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-5.
12. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the method of any one of claims 1-5.
CN201810821438.4A 2018-07-24 2018-07-24 Block chain data transaction method, device, equipment and storage medium Active CN109067724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810821438.4A CN109067724B (en) 2018-07-24 2018-07-24 Block chain data transaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810821438.4A CN109067724B (en) 2018-07-24 2018-07-24 Block chain data transaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109067724A CN109067724A (en) 2018-12-21
CN109067724B true CN109067724B (en) 2021-01-26

Family

ID=64835274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810821438.4A Active CN109067724B (en) 2018-07-24 2018-07-24 Block chain data transaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109067724B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450659B (en) * 2018-12-25 2020-10-23 杭州复杂美科技有限公司 Block delay broadcasting method, equipment and storage medium
CN110138861A (en) * 2019-05-15 2019-08-16 北京中星微人工智能芯片技术有限公司 A kind of security protection Intelligentized method and device
CN110337100B (en) * 2019-07-02 2022-03-18 中国联合网络通信集团有限公司 Block chain-based method, terminal and system for adding one-number multi-card service auxiliary card
CN110659903B (en) * 2019-09-04 2023-09-05 华东江苏大数据交易中心股份有限公司 Block chain-based data transaction method
CN110796447A (en) * 2019-10-22 2020-02-14 全链通有限公司 Electronic bid supervision method and device based on block chain and storage medium
CN111464630B (en) * 2020-03-31 2021-07-06 杭州复杂美科技有限公司 Transaction broadcasting method, apparatus and storage medium
CN111541534B (en) * 2020-04-14 2023-10-24 全链通有限公司 Control method, equipment and storage medium of terminal of Internet of things
CN112231767B (en) * 2020-10-16 2024-06-25 海尔优家智能科技(北京)有限公司 Method and device for processing request information, storage medium and electronic device
CN112561539A (en) * 2020-12-28 2021-03-26 链博(成都)科技有限公司 Block chain-based security risk prevention and control method and system
CN112990903B (en) * 2021-03-10 2023-06-09 中国联合网络通信集团有限公司 Block chain-based telephone charge transfer method, transferable node and demand node
CN113328935B (en) * 2021-05-20 2022-11-11 福建思特电子有限公司 Distributed safety tracing block chain system based on industrial internet
CN113852469B (en) * 2021-09-24 2024-03-22 成都质数斯达克科技有限公司 Method, device, equipment and readable storage medium for transmitting data between block chain nodes
CN114024786B (en) * 2022-01-04 2022-04-08 杭州趣链科技有限公司 Message broadcasting method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812126A (en) * 2016-05-19 2016-07-27 齐鲁工业大学 Lightweight back-up and efficient restoration method of health block chain data encryption keys
CN105975868A (en) * 2016-04-29 2016-09-28 杭州云象网络技术有限公司 Block chain-based evidence preservation method and apparatus
CN107784546A (en) * 2016-08-31 2018-03-09 北京明朝万达科技股份有限公司 A kind of data trade method and system based on block chain
CN108011709A (en) * 2016-12-27 2018-05-08 北京量子保科技有限公司 A kind of data trade method based on block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100333116A1 (en) * 2009-06-30 2010-12-30 Anand Prahlad Cloud gateway system for managing data storage to cloud storage sites

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975868A (en) * 2016-04-29 2016-09-28 杭州云象网络技术有限公司 Block chain-based evidence preservation method and apparatus
CN105812126A (en) * 2016-05-19 2016-07-27 齐鲁工业大学 Lightweight back-up and efficient restoration method of health block chain data encryption keys
CN107784546A (en) * 2016-08-31 2018-03-09 北京明朝万达科技股份有限公司 A kind of data trade method and system based on block chain
CN108011709A (en) * 2016-12-27 2018-05-08 北京量子保科技有限公司 A kind of data trade method based on block chain

Also Published As

Publication number Publication date
CN109067724A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109067724B (en) Block chain data transaction method, device, equipment and storage medium
CN108900528B (en) Block chain real-name authentication method, device, equipment and storage medium
CN109087100B (en) Key distribution method, device, equipment and storage medium
CN109118360B (en) Block chain account checking method, device, equipment and storage medium
WO2019062384A1 (en) Method and device for public network user accessing private network
CN109671205B (en) Voting method, device and equipment based on block chain and computer storage medium
US11778458B2 (en) Network access authentication method and device
CN108989043B (en) Block processing method and device and block link points
CN109640274B (en) Short message sending method and device based on block chain and computer readable storage medium
CN108881296B (en) Block chain real-name authentication method, device, equipment and storage medium
CN108712506B (en) Block chain node communication method and device and block chain node
CN108769142B (en) Transaction information processing method and block generation node
CN108200568B (en) Mobile communication electronic SIM card data processing method and device
CN108596636B (en) Anti-counterfeiting method and device and terminal equipment
CN106878324B (en) Short message authentication method, short message authentication server and terminal
CN108810120B (en) Block chain node communication method and device and block chain node
CN111355575A (en) Communication encryption method, electronic device and readable storage medium
CN105407479A (en) Information recognition method, information gateway, SIM card, and system
CN108876611B (en) Transaction information processing method and device and block link points
CN109639715B (en) Method, device and equipment for avoiding double-flower attack and computer readable storage medium
CN109379199B (en) User credit processing method, device, equipment and storage medium
CN109087096B (en) Block chain account checking method, device, equipment and storage medium
CN108777710B (en) Inter-node communication method and device of block chain and block chain node
CN114223233A (en) Data security for network slice management
CN108768961B (en) Storage processing method and home gateway

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