CN116305000A - Data circulation method, device and storage medium based on distributed file system - Google Patents

Data circulation method, device and storage medium based on distributed file system Download PDF

Info

Publication number
CN116305000A
CN116305000A CN202310147745.XA CN202310147745A CN116305000A CN 116305000 A CN116305000 A CN 116305000A CN 202310147745 A CN202310147745 A CN 202310147745A CN 116305000 A CN116305000 A CN 116305000A
Authority
CN
China
Prior art keywords
data
node
owner
distributed file
file system
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.)
Pending
Application number
CN202310147745.XA
Other languages
Chinese (zh)
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN202310147745.XA priority Critical patent/CN116305000A/en
Publication of CN116305000A publication Critical patent/CN116305000A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种基于分布式文件系统的数据流通方法、装置以及存储介质。其中,一种基于分布式文件系统的数据流通方法,包括:第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;第一数据拥有者节点将确权的第一数据存储至区块链系统;以及数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。

Figure 202310147745

The application discloses a data circulation method, device and storage medium based on a distributed file system. Among them, a data circulation method based on a distributed file system includes: the first data owner node confirms the data copyright of the first data it owns through the distributed file system; The first data is stored in the block chain system; and the data user node acquires the data copyright of the first data according to the first data confirmation information.

Figure 202310147745

Description

基于分布式文件系统的数据流通方法、装置以及存储介质Data circulation method, device and storage medium based on distributed file system

技术领域technical field

本申请涉及信息技术领域,特别是涉及一种基于分布式文件系统的数据流通方法、装置以及存储介质。The present application relates to the field of information technology, in particular to a data circulation method, device and storage medium based on a distributed file system.

背景技术Background technique

数据成为继土地、资本、劳动力以及技术之外的第五大生产要素,在数字化生产中发挥决定性作用。区块链作为非对称加密、分布式计算、哈希指针、默克尔树以及数字签名等技术的集成,可贯穿数据的确权、储存、流通以及使用全生命周期。现有的数字版权技术大部分通过提取出数字版权的特征码,将其作为版权的ID,存入到区块链中,再辅助的通过全网爬取数字资源提取出特征码与区块链中存储的特征码做比较,相似度高的判断为抄袭。但对于全部版权数据,特别是较大的文件数据直接存储在区块链上存在效能低下的问题,并且版权数据的存储与流通价值缺少量化评估的机制。在现有技术中,IPFS(星际文件系统)等分布式文件系统中的BitSwap协议定义了数据交换规则,管理数据的分发,通过激励机制促成了可交易的数据市场。BitSwap可以为数据的存储与流通提供数据层面的解决方案,但还缺少数字版权确权及流通环节资产化的机制。Data has become the fifth largest factor of production after land, capital, labor and technology, and plays a decisive role in digital production. As an integration of technologies such as asymmetric encryption, distributed computing, hash pointers, Merkle trees, and digital signatures, blockchain can run through the entire life cycle of data confirmation, storage, circulation, and use. Most of the existing digital copyright technologies extract the feature code of digital copyright, store it in the blockchain as the ID of the copyright, and then assist in extracting the feature code and blockchain by crawling digital resources across the entire network. Compare the feature codes stored in , if the similarity is high, it is judged as plagiarism. However, for all copyright data, especially large file data, there is a problem of low efficiency when directly stored on the blockchain, and the storage and circulation value of copyright data lacks a quantitative evaluation mechanism. In the existing technology, the BitSwap protocol in distributed file systems such as IPFS (Interplanetary File System) defines data exchange rules, manages the distribution of data, and promotes a tradable data market through an incentive mechanism. BitSwap can provide data-level solutions for data storage and circulation, but it still lacks a mechanism for digital copyright confirmation and capitalization of circulation links.

针对上述的现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题,目前尚未提出有效的解决方案。For the above-mentioned technical problems existing in the prior art that cannot satisfy data copyright confirmation, data circulation and data storage at the same time, no effective solution has been proposed yet.

发明内容Contents of the invention

本申请的实施例提供了一种基于分布式文件系统的数据流通方法、装置以及存储介质,以至少解决现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题。Embodiments of the present application provide a data circulation method, device and storage medium based on a distributed file system, so as to at least solve the technical problems existing in the prior art that data copyright confirmation, data circulation and data storage cannot be simultaneously satisfied.

根据本申请实施例的一个方面,提供了一种基于分布式文件系统的数据流通方法,包括:第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;第一数据拥有者节点将确权的第一数据存储至区块链系统;以及数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。According to an aspect of the embodiment of the present application, a data circulation method based on a distributed file system is provided, including: the first data owner node confirms the data copyright of the first data it owns through the distributed file system; A data owner node stores the confirmed first data in the block chain system; and the data user node obtains the data copyright of the first data according to the first data confirmation information.

根据本申请实施例的另一个方面,还提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时由处理器执行以上任意一项所述的方法。According to another aspect of the embodiments of the present application, a storage medium is further provided, and the storage medium includes a stored program, wherein, when the program is running, a processor executes any one of the methods described above.

根据本申请实施例的另一个方面,还提供了一种基于分布式文件系统的数据流通装置,包括:数据确权模块,用于第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;数据存储模块,用于第一数据拥有者节点将确权的第一数据存储至区块链系统;以及数据版权获取模块,用于数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。According to another aspect of the embodiment of the present application, there is also provided a data circulation device based on a distributed file system, including: a data right confirmation module, used for the first data owner node to verify the first The data copyright of the data is confirmed; the data storage module is used for the first data owner node to store the confirmed first data in the block chain system; and the data copyright acquisition module is used for the data user node according to the first data The copyright confirmation information acquires the data copyright of the first data.

根据本申请实施例的另一个方面,还提供了一种基于分布式文件系统的数据流通装置,包括:处理器;以及存储器,与处理器连接,用于为处理器提供处理以下处理步骤的指令:第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;第一数据拥有者节点将确权的第一数据存储至区块链系统;以及数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。According to another aspect of the embodiment of the present application, there is also provided a data circulation device based on a distributed file system, including: a processor; and a memory, connected to the processor, for providing the processor with instructions for processing the following processing steps : The first data owner node confirms the data copyright of the first data owned by the distributed file system; the first data owner node stores the first data whose rights are confirmed in the blockchain system; and the data user node The data copyright of the first data is acquired according to the first data confirmation information.

在本申请实施例中,通过分布式文件系统将需要确权的数据利用比较哈希值的方式进行确权,将确权的数据的哈希值存储在区块链上,从而避免了将较大的文件数据直接进行存储,提高了区块链的性能。并且本技术方案通过为参与分享数据的节点分成的方式,提高了用户对数据进行分享的意愿,从而增强了数据流通性。进而解决了现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题。In the embodiment of this application, the data that needs to be confirmed is confirmed by comparing the hash value through the distributed file system, and the hash value of the confirmed data is stored on the block chain, thereby avoiding the need to Large file data is directly stored, which improves the performance of the blockchain. In addition, the technical solution increases the user's willingness to share data by dividing the nodes participating in the data sharing, thereby enhancing the data circulation. Furthermore, the technical problem existing in the prior art that cannot satisfy data copyright confirmation, data circulation and data storage at the same time is solved.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:

图1是用于实现根据本申请实施例1所述的方法的计算设备的硬件结构框图;FIG. 1 is a block diagram of a hardware structure for implementing a computing device according to the method described in Embodiment 1 of the present application;

图2是根据本申请实施例1所述的基于分布式文件系统的数据流通系统的示意图;FIG. 2 is a schematic diagram of a data circulation system based on a distributed file system according to Embodiment 1 of the present application;

图3是根据本申请实施例1的第一个方面所述的基于分布式文件系统的数据流通方法的流程示意图;FIG. 3 is a schematic flowchart of a data circulation method based on a distributed file system according to the first aspect of Embodiment 1 of the present application;

图4a是根据本申请实施例1的第一个方面所述的基于分布式文件系统的数据流通方法的又一个部分流程示意图;Fig. 4a is another partial flowchart of the distributed file system-based data circulation method according to the first aspect of Embodiment 1 of the present application;

图4b是根据本申请实施例1的第一个方面所述的基于分布式文件系统的数据流通方法的又一个另一部分流程示意图;Fig. 4b is a schematic flowchart of yet another part of the distributed file system-based data circulation method according to the first aspect of Embodiment 1 of the present application;

图5是根据本申请实施例2所述的基于分布式文件系统的数据流通装置的示意图;以及FIG. 5 is a schematic diagram of a data circulation device based on a distributed file system according to Embodiment 2 of the present application; and

图6是根据本申请实施例3所述的基于分布式文件系统的数据流通装置的示意图。FIG. 6 is a schematic diagram of a data circulation device based on a distributed file system according to Embodiment 3 of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

实施例1Example 1

根据本实施例,提供了一种基于分布式文件系统的数据流通方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to this embodiment, a method embodiment of a data circulation method based on a distributed file system is provided. It should be noted that the steps shown in the flow charts of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

本实施例所提供的方法实施例可以在移动终端、计算机终端、服务器或者类似的计算设备中执行。图1示出了一种用于实现基于分布式文件系统的数据流通方法的计算设备的硬件结构框图。如图1所示,计算设备可以包括一个或多个处理器(处理器可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器、以及用于通信功能的传输装置。除此以外,还可以包括:显示器、输入/输出接口(I/O接口)、通用串行总线(USB)端口(可以作为I/O接口的端口中的一个端口被包括)、网络接口、电源和/或相机。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算设备还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in this embodiment can be executed in mobile terminals, computer terminals, servers or similar computing devices. FIG. 1 shows a block diagram of a hardware structure of a computing device for implementing a data circulation method based on a distributed file system. As shown in Figure 1, a computing device may include one or more processors (processors may include but not limited to processing devices such as microprocessors MCUs or programmable logic devices FPGAs), memory for storing data, and memory for storing data. Transmission device for communication functions. In addition, it can also include: a display, an input/output interface (I/O interface), a universal serial bus (USB) port (which can be included as one of the ports of the I/O interface), a network interface, a power supply and/or camera. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, and it does not limit the structure of the above-mentioned electronic device. For example, a computing device may also include more or fewer components than shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

应当注意到的是上述一个或多个处理器和/或其他数据处理电路在本文中通常可以被称为“数据处理电路”。该数据处理电路可以全部或部分的体现为软件、硬件、固件或其他任意组合。此外,数据处理电路可为单个独立的处理模块,或全部或部分的结合到计算设备中的其他元件中的任意一个内。如本申请实施例中所涉及到的,该数据处理电路作为一种处理器控制(例如与接口连接的可变电阻终端路径的选择)。It should be noted that the one or more processors and/or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuit may be implemented in whole or in part as software, hardware, firmware or other arbitrary combinations. Furthermore, the data processing circuitry may be a single independent processing module, or be fully or partially integrated into any of the other elements in the computing device. As mentioned in the embodiment of the present application, the data processing circuit is used as a processor control (for example, the selection of the terminal path of the variable resistor connected to the interface).

存储器可用于存储应用软件的软件程序以及模块,如本申请实施例中的基于分布式文件系统的数据流通方法对应的程序指令/数据存储装置,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的应用程序的基于分布式文件系统的数据流通方法。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory can be used to store software programs and modules of application software, such as the program instruction/data storage device corresponding to the data circulation method based on the distributed file system in the embodiment of the present application, and the processor runs the software programs and modules stored in the memory , so as to execute various functional applications and data processing, that is, to realize the data circulation method based on the distributed file system of the above-mentioned application program. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, which remote memory may be connected to the computing device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输装置用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算设备的通信供应商提供的无线网络。在一个实例中,传输装置包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission means are used to receive or transmit data via a network. Specific examples of the networks described above may include wireless networks provided by the communications provider of the computing device. In one example, the transmission device includes a network interface controller (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device may be a radio frequency (Radio Frequency, RF) module, which is used to communicate with the Internet in a wireless manner.

显示器可以例如触摸屏式的液晶显示器(LCD),该液晶显示器可使得用户能够与计算设备的用户界面进行交互。The display can be, for example, a touchscreen liquid crystal display (LCD) that enables a user to interact with a user interface of the computing device.

此处需要说明的是,在一些可选实施例中,上述图1所示的计算设备可以包括硬件元件(包括电路)、软件元件(包括存储在计算机可读介质上的计算机代码)、或硬件元件和软件元件两者的结合。应当指出的是,图1仅为特定具体实例的一个实例,并且旨在示出可存在于上述计算设备中的部件的类型。It should be noted here that, in some optional embodiments, the computing device shown in FIG. 1 above may include hardware elements (including circuits), software elements (including computer codes stored on computer-readable media), or hardware elements. Combination of both Components and Software Components. It should be noted that FIG. 1 is only one example of a particular embodiment, and is intended to illustrate the types of components that may be present in the computing devices described above.

图2是根据本实施例所述的基于分布式文件系统的数据流通系统的示意图。参照图2所示,该系统包括:分布式文件系统100以及区块链系统200。其中分布式文件系统100例如可以是星际文件系统,包括节点110~节点140。其中节点110和节点140为数据拥有者节点,节点120为数据使用者节点,节点130为发行代理节点。Fig. 2 is a schematic diagram of a data circulation system based on a distributed file system according to this embodiment. Referring to FIG. 2 , the system includes: a distributed file system 100 and a blockchain system 200 . The distributed file system 100 may be, for example, an interplanetary file system, including nodes 110 - 140 . The nodes 110 and 140 are data owner nodes, the node 120 is a data user node, and the node 130 is an issuing agent node.

并且其中数据拥有者节点110和140用于为自己需要发布的数据进行确权,并且向数据使用者节点120以及发行代理节点130分享自己所拥有的已确权的数据,并通过区块链系统200向需要获取数据的节点收取相应的版权费用。And the data owner nodes 110 and 140 are used to confirm the rights of the data that they need to publish, and share the confirmed data they own with the data user node 120 and the issuing agent node 130, and through the block chain system 200 to collect corresponding copyright fees from nodes that need to obtain data.

数据使用者节点140用于向数据拥有者节点110和140或者发行代理节点130获取数据,并通过区块链系统200支付相应的版权费用。The data user node 140 is used to obtain data from the data owner nodes 110 and 140 or the issuing agent node 130, and pay corresponding copyright fees through the blockchain system 200.

发行代理节点130用于从数据拥有者节点110和140获取数据,并向数据使用者节点120发送数据。The issuing proxy node 130 is used to obtain data from the data owner nodes 110 and 140 and send data to the data user node 120 .

其中数据拥有者节点110和140,数据使用者节点120以及发行代理节点130均为分布式文件系统100中的节点,且各个节点的角色并不唯一。例如在本实施例场景下的节点110可作为数据拥有者节点,但是在其他场景下也可作为数据使用者节点或者发行代理节点。在本实施例场景下的节点120可作为数据使用者节点,也可作为数据拥有者节点或者发行代理节点,节点130既可作为发行代理节点也可作为数据拥有者节点或者数据使用者节点。The data owner nodes 110 and 140, the data user node 120, and the issuing agent node 130 are all nodes in the distributed file system 100, and the roles of each node are not unique. For example, the node 110 in the scenario of this embodiment can be used as a data owner node, but it can also be used as a data user node or an issuing proxy node in other scenarios. The node 120 in the scenario of this embodiment can be used as a data user node, a data owner node or a distribution proxy node, and the node 130 can be used as a distribution proxy node or a data owner node or a data user node.

区块链系统200用于存储数据拥有者节点110和140已确权的数据,并为分布式文件系统100中的各个节点的版权费用进行记账。The block chain system 200 is used to store the data whose rights have been confirmed by the data owner nodes 110 and 140 , and keep accounts for the copyright fees of each node in the distributed file system 100 .

需要说明的是,系统中的分布式文件系统100以及区块链系统200均可适用上面所述的硬件结构。It should be noted that both the distributed file system 100 and the blockchain system 200 in the system are applicable to the hardware structure described above.

在上述运行环境下,根据本实施例的第一个方面,提供了一种基于分布式文件系统的数据流通方法。图3示出了该方法的流程示意图,参考图3所示,该方法包括:In the above operating environment, according to the first aspect of this embodiment, a data circulation method based on a distributed file system is provided. Figure 3 shows a schematic flow chart of the method, as shown in Figure 3, the method includes:

S302:第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;S302: The first data owner node confirms the data copyright of the owned first data through the distributed file system;

S304:第一数据拥有者节点将确权的第一数据存储至区块链系统;以及S304: the first data owner node stores the confirmed first data in the blockchain system; and

S306:数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。S306: The data user node obtains the data copyright of the first data according to the first data confirmation information.

具体地,节点110(即,第一数据拥有者节点)拥有某一数据(即,第一数据),之后节点110(即,第一数据拥有者节点)通过对第一数据的数据版权进行确权从而将第一数据在分布式文件系统100中进行发布。其中分布式文件系统100例如为IPFS分布式文件系统。Specifically, the node 110 (that is, the first data owner node) owns certain data (that is, the first data), and then the node 110 (that is, the first data owner node) confirms the data copyright of the first data The right to publish the first data in the distributed file system 100 . Wherein the distributed file system 100 is, for example, the IPFS distributed file system.

更具体地,节点110(即,第一数据拥有者节点)生成第一数据的哈希值,并且根据第一数据的哈希值在分布式文件系统100中进行搜索,从而确定在分布式文件系统100中是否有与第一数据相同的数据。当节点110(即,第一数据拥有者节点)未在分布式文件系统100中搜索到与第一数据相同的数据时,则对第一数据的数据版权进行确权。当节点110(即,第一数据拥有者节点)在分布式文件系统100中搜索到与第一数据相同的数据时,则确定第一数据在分布式文件系统100中已有数据版权(S302)。More specifically, the node 110 (that is, the first data owner node) generates a hash value of the first data, and searches in the distributed file system 100 according to the hash value of the first data, thereby determining that in the distributed file Whether there is the same data as the first data in the system 100. When the node 110 (that is, the first data owner node) does not find the same data as the first data in the distributed file system 100, the data copyright of the first data is confirmed. When the node 110 (that is, the first data owner node) searches for the same data as the first data in the distributed file system 100, it is determined that the first data already has a data copyright in the distributed file system 100 (S302) .

进一步地,节点110(即,第一数据拥有者节点)在对第一数据的数据版权确权之后,将已确权的第一数据的哈希值以及节点110(即,第一数据拥有者节点)的ID存储至区块链系统中(S304)。Further, after the node 110 (that is, the first data owner node) confirms the data copyright of the first data, the hash value of the confirmed first data and the node 110 (that is, the first data owner node) node) is stored in the blockchain system (S304).

进一步地,例如节点110(即,第一数据拥有者节点)已经将第一数据在分布式文件系统100中进行确权,从而完成了第一数据在分布式文件系统100中进行发布。之后节点110(即,第一数据拥有者节点)将第一数据已经发布的信息进行广播,然后其他节点就收到了第一数据已经确权的信息,从而其他节点就可以向节点110(即,第一数据拥有者节点)请求获取第一数据。Further, for example, the node 110 (that is, the first data owner node) has confirmed the ownership of the first data in the distributed file system 100 , thus completing the publication of the first data in the distributed file system 100 . Afterwards, node 110 (i.e., the first data owner node) broadcasts the information that the first data has been released, and then other nodes receive the information that the first data has been confirmed, so that other nodes can send information to node 110 (i.e., The first data owner node) requests to obtain the first data.

当节点120(即,数据使用者节点)需要获取第一数据时,会向节点110(即,第一数据拥有者节点)支付相应的版权费用,从而获取第一数据。其中节点120(即,数据使用者节点)获取第一数据所支付的版权费用由节点110(即,第一数据拥有者节点)设定。并且在节点120(即,数据使用者节点)获取了第一数据的情况下,也可以作为发行代理节点向其他节点分享该第一数据。例如其他节点从节点120获取第一数据,则节点120向该节点分享该第一数据时,会向该节点收取分享该第一数据的版权费用,从而获取分享第一数据的分成(S306)。When the node 120 (ie, the data user node) needs to obtain the first data, it will pay the corresponding copyright fee to the node 110 (ie, the first data owner node), so as to obtain the first data. The copyright fee paid by the node 120 (ie, the data user node) for obtaining the first data is set by the node 110 (ie, the first data owner node). In addition, when the node 120 (that is, the data user node) obtains the first data, it can also serve as an issuing agent node and share the first data with other nodes. For example, when other nodes obtain the first data from the node 120, when the node 120 shares the first data with the node, it will charge the node the copyright fee for sharing the first data, so as to obtain the sharing of the first data (S306).

正如背景技术中所述的,数据成为继土地、资本、劳动力以及技术之外的第五大生产要素,在数字化生产中发挥决定性作用。区块链作为非对称加密、分布式计算、哈希指针、默克尔树以及数字签名等技术的集成,可贯穿数据的确权、储存、流通以及使用全生命周期。现有的数字版权技术大部分通过提取出数字版权的特征码,将其作为版权的ID,存入到区块链中,再辅助的通过全网爬取数字资源提取出特征码与区块链中存储的特征码做比较,相似度高的判断为抄袭。但对于全部版权数据,特别是较大的文件数据直接存储在区块链上存在效能低下的问题,并且版权数据的存储与流通价值缺少量化评估的机制。在现有技术中,IPFS分布式文件系统中的BitSwap协议定义了数据交换规则,管理数据的分发,通过激励机制促成了可交易的数据市场。BitSwap可以为数据的存储与流通提供数据层面的解决方案,但还缺少数字版权确权及流通环节资产化的机制。As mentioned in the background technology, data has become the fifth largest factor of production after land, capital, labor and technology, and plays a decisive role in digital production. As an integration of technologies such as asymmetric encryption, distributed computing, hash pointers, Merkle trees, and digital signatures, blockchain can run through the entire life cycle of data confirmation, storage, circulation, and use. Most of the existing digital copyright technologies extract the feature code of digital copyright, store it in the blockchain as the ID of the copyright, and then assist in extracting the feature code and blockchain by crawling digital resources across the entire network. Compare the feature codes stored in , if the similarity is high, it is judged as plagiarism. However, for all copyright data, especially large file data, there is a problem of low efficiency when directly stored on the blockchain, and the storage and circulation value of copyright data lacks a quantitative evaluation mechanism. In the existing technology, the BitSwap protocol in the IPFS distributed file system defines data exchange rules, manages the distribution of data, and promotes a tradable data market through incentive mechanisms. BitSwap can provide data-level solutions for data storage and circulation, but it still lacks a mechanism for digital copyright confirmation and capitalization of circulation links.

针对以上所述的技术问题,通过本申请实施例的技术方案,通过分布式文件系统将需要确权的数据利用比较哈希值的方式进行确权,将确权的数据的哈希值存储在区块链系统上,从而避免了将较大的文件数据直接进行存储,提高了区块链的性能。并且本技术方案通过为参与分享数据的节点分成的方式,提高了用户对数据进行分享的意愿,从而增强了数据流通性。进而解决了现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题。In view of the technical problems described above, through the technical solution of the embodiment of the present application, through the distributed file system, the data that needs to be confirmed is confirmed by comparing the hash value, and the hash value of the confirmed data is stored in the On the blockchain system, it avoids directly storing large file data and improves the performance of the blockchain. In addition, the technical solution increases the user's willingness to share data by dividing the nodes participating in the data sharing, thereby enhancing the data circulation. Furthermore, the technical problem existing in the prior art that cannot satisfy data copyright confirmation, data circulation and data storage at the same time is solved.

可选地,第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权的操作,包括:第一数据拥有者节点通过分布式文件系统根据第一数据的哈希值对第一数据的数据版权进行确权;以及将第一数据的哈希值存储至区块链系统。Optionally, the first data owner node performs the operation of confirming the data copyright of the owned first data through the distributed file system, including: the first data owner node uses the distributed file system according to the hash of the first data confirming the data copyright of the first data; and storing the hash value of the first data in the block chain system.

具体地,参考图4a以及图4b所示,节点110(即,第一数据拥有者节点)要发布第一数据,从而要对第一数据进行确权,则节点110(即,第一数据拥有者节点)根据第一数据生成第一数据的哈希值。之后节点110(即,第一数据拥有者节点)获取分布式文件系统100中所有数据的哈希值,并依次将获取的所有数据的哈希值与第一数据的哈希值进行比较,从而节点110(即,第一数据拥有者节点)可以根据第一数据的哈希值在分布式文件系统100中搜索与第一数据的哈希值相同的其他数据的哈希值,从而寻找分布式文件100系统中是否存储有与第一数据相同的数据。Specifically, as shown in FIG. 4a and FIG. 4b, the node 110 (that is, the first data owner node) wants to publish the first data, so as to confirm the right of the first data, then the node 110 (that is, the first data owner node) or node) generates a hash value of the first data according to the first data. Then the node 110 (that is, the first data owner node) obtains the hash values of all data in the distributed file system 100, and sequentially compares the hash values of all data obtained with the hash value of the first data, thereby The node 110 (that is, the first data owner node) can search the distributed file system 100 for the hash values of other data that are the same as the hash value of the first data according to the hash value of the first data, so as to find the distributed file system. Whether the same data as the first data is stored in the file 100 system.

进一步地,当节点110(即,第一数据拥有者节点)在分布式文件系统100中未搜索到与第一数据相同的数据,则说明并未有与第一数据相同的数据已被确权,从而节点110(即,第一数据拥有者节点)为第一数据的数据版权进行确权。Further, when the node 110 (that is, the first data owner node) does not search for the same data as the first data in the distributed file system 100, it means that no data that is the same as the first data has been confirmed. , so that the node 110 (ie, the first data owner node) confirms the data copyright of the first data.

进一步地,节点110(即,第一数据拥有者节点)将第一数据的哈希值、确权后的第一数据的数据版本ID以及第一数据的作者ID(即,数据拥有者节点ID)存储至区块链系统200。Further, the node 110 (that is, the first data owner node) sends the hash value of the first data, the data version ID of the first data after confirmation, and the author ID of the first data (that is, the data owner node ID ) is stored in the block chain system 200.

从而本技术方案通过分布式文件系统将需要确权的数据利用比较哈希值的方式进行确权,将确权的数据的哈希值存储在区块链系统上,从而避免了将较大的文件数据直接进行存储,提高了区块链系统的性能。Therefore, this technical solution uses the distributed file system to confirm the rights of the data that needs to be confirmed by comparing the hash value, and stores the hash value of the confirmed data on the blockchain system, thus avoiding the need to transfer large data. The file data is directly stored, which improves the performance of the blockchain system.

可选地,方法还包括:第二数据拥有者节点根据第一数据的哈希值通过分布式文件系统确定与第一数据相同的第二数据;将与第一数据相同的第二数据的时间戳与第一数据的时间戳进行比较;以及在第二数据的时间戳与第一数据的时间戳不相同的情况下,对第一数据的数据版权进行确权。Optionally, the method further includes: the second data owner node determines the second data that is the same as the first data through the distributed file system according to the hash value of the first data; The stamp is compared with the timestamp of the first data; and in the case that the timestamp of the second data is different from the timestamp of the first data, the data copyright of the first data is confirmed.

具体地,参考图4a以及图4b所示,节点140(第二数据拥有者节点)需要在分布式文件系统100中发布数据(即,第二数据),从而要对第二数据进行确权,则节点140(第二数据拥有者节点)会获取第二数据的哈希值,并在分布式文件系统100中搜索与第二数据的哈希值相同的数据的哈希值。当节点140(第二数据拥有者节点)在分布式文件系统100中搜索到与第二数据相同的数据为第一数据时,则从区块链系统200中获取第一数据在确权时的时间戳,并获取第二数据的时间戳,之后节点140(第二数据拥有者节点)将第一数据对应的时间戳与第二数据对应的时间戳进行比较,当第一数据对应的时间戳在第二数据的时间戳之前,则说明第一数据在第二数据进行确权之前就已进行确权,从而第二数据确权失败。由于第二数据与第一数据相同,从而节点140(第二数据拥有者节点)发布的第二数据的数据版权依旧属于数据拥有者110,并且节点140可以作为数据使用者节点使用与第二数据相同的第一数据。Specifically, as shown in FIG. 4a and FIG. 4b, the node 140 (the second data owner node) needs to publish data (that is, the second data) in the distributed file system 100, so as to confirm the right of the second data, Then the node 140 (the second data owner node) will obtain the hash value of the second data, and search the distributed file system 100 for the hash value of the data that is the same as the hash value of the second data. When the node 140 (the second data owner node) searches the distributed file system 100 for the same data as the second data as the first data, it obtains the first data from the block chain system 200 when the right is confirmed. timestamp, and obtain the timestamp of the second data, then node 140 (the second data owner node) compares the timestamp corresponding to the first data with the timestamp corresponding to the second data, when the timestamp corresponding to the first data If it is before the time stamp of the second data, it means that the right of the first data has been confirmed before the confirmation of the second data, so the confirmation of the second data fails. Since the second data is the same as the first data, the data copyright of the second data issued by the node 140 (the second data owner node) still belongs to the data owner 110, and the node 140 can be used as a data user node with the second data same first data.

此外,在第一数据确权后,节点110(第一数据拥有者节点)对第一数据进行更新,从而得到新一版本的第一数据。之后节点110(第一数据拥有者节点)在区块链系统200中记录第一数据的第一数据版本和第二数据版本之间的关联关系。此外,节点110(第一数据拥有者节点)还会将自己的隐私信息存储至区块链系统200中。In addition, after the ownership of the first data is confirmed, the node 110 (the first data owner node) updates the first data to obtain a new version of the first data. Then the node 110 (the first data owner node) records the association relationship between the first data version and the second data version of the first data in the blockchain system 200 . In addition, the node 110 (the first data owner node) will also store its private information in the blockchain system 200 .

从而本技术方案通过对数据进行确权,更新数据版本,并且通过分布式文件系统将不同版本的数据进行关联,从而避免不同版本数据出现数据版权冲突。并且作者的个人信息等隐私数据均存于区块链系统中,仅作者ID参与第一数据的确权,保证了用户数据的隐私性。Therefore, the technical solution confirms the data rights, updates the data version, and associates different versions of data through the distributed file system, thereby avoiding data copyright conflicts in different versions of data. In addition, the author's personal information and other private data are stored in the blockchain system, and only the author's ID participates in the confirmation of the first data, ensuring the privacy of user data.

可选地,数据使用者节点根据第一数据的确权信息获取第一数据的数据版权的操作,包括:数据使用者节点根据第一数据向数据拥有者节点支付版权费用;以及数据使用者节点向第一数据拥有者节点获取对应的第一数据。Optionally, the operation for the data user node to obtain the data copyright of the first data according to the confirmation information of the first data includes: the data user node pays the copyright fee to the data owner node according to the first data; and the data user node Obtain the corresponding first data from the first data owner node.

具体地,参考图4a以及图4b所示,节点120(即,数据使用者节点)想要获取节点110(即,第一数据拥有者节点)的第一数据时,会向节点110(即,第一数据拥有者节点)发送数据获取请求,节点120(即,数据使用者节点)会通过区块链系统200向节点110(即,第一数据拥有者节点)支付用于获取第一数据的版权费用。更具体地,节点110(即,第一数据拥有者节点)在区块链系统200中产生一笔关于第一数据的数据版权的交易,之后区块链系统200将该交易在区块链系统200中进行广播,从而区块链系统200中的参与节点收到该广播,之后区块链系统200中的参与节点将该交易盖上时间戳并存储至区块中。之后各个参与节点通过工作量证明的计算,确定验证节点。之后该验证节点将自己的区块广播给其他参与节点,各个参与节点进行验证,并接上区块,其他参与节点会确认这个区块链所包含的交易是否有效,确认没被重复话费并具有有效数位签章后,接受该区块,此时区块正是接上区块链。Specifically, as shown in FIG. 4a and FIG. 4b, when node 120 (that is, a data user node) wants to acquire the first data of node 110 (that is, a first data owner node), it will send a request to node 110 (that is, a The first data owner node) sends a data acquisition request, and the node 120 (that is, the data user node) will pay the node 110 (that is, the first data owner node) through the blockchain system 200 for obtaining the first data. Royalty fees. More specifically, the node 110 (that is, the first data owner node) generates a transaction about the data copyright of the first data in the block chain system 200, and then the block chain system 200 puts the transaction in the block chain system 200, so that the participating nodes in the blockchain system 200 receive the broadcast, and then the participating nodes in the blockchain system 200 stamp the transaction with a time stamp and store it in a block. After that, each participating node determines the verification node through the calculation of the proof of work. Afterwards, the verification node broadcasts its own block to other participating nodes. Each participating node verifies and connects the block. Other participating nodes will confirm whether the transaction contained in this blockchain is valid, confirm that it has not been duplicated and has After a valid digital signature, the block is accepted, and the block is connected to the blockchain at this time.

从而区块链系统200完成了记录节点120(即,数据使用者节点)收到的版权费用,以及节点120(即,数据使用者节点)支付的版权费用。Thus, the blockchain system 200 completes the recording of the copyright fee received by the node 120 (ie, the data user node) and the copyright fee paid by the node 120 (ie, the data user node).

进一步地,节点120(即,数据使用者节点)支付版权费用之后,向节点110(即,第一数据拥有者节点)获取对应的第一数据。Further, after paying the copyright fee, the node 120 (ie, the data user node) acquires the corresponding first data from the node 110 (ie, the first data owner node).

从而本技术方案通过支付版权费用获取数据,保护了数据拥有者合法权益,并且激励了数据拥有者,使得数据拥有者乐于分享数据。Therefore, the technical solution obtains data by paying copyright fees, protects the legitimate rights and interests of data owners, and encourages data owners to make data owners willing to share data.

可选地,数据使用者节点向第一数据拥有者节点获取对应的第一数据的操作,包括:数据使用者节点向数据拥有者节点发送获取第一数据的数据获取请求;以及在数据拥有者节点根据数据获取请求检测到数据使用者节点已获取第一数据的数据版权的情况下,数据使用者节点向数据拥有者节点获取第一数据。Optionally, the operation for the data user node to obtain the corresponding first data from the first data owner node includes: the data user node sends a data acquisition request for obtaining the first data to the data owner node; When the node detects that the data user node has acquired the data copyright of the first data according to the data acquisition request, the data user node acquires the first data from the data owner node.

具体地,参考图4a以及图4b所示,当节点120(即,数据使用者节点)要获取第一数据时,会向相邻节点发送用于查询第一数据所属节点的查询请求,当相邻节点并未拥有第一数据的数据版权,则会向其他相邻节点发送用于查询第一数据所属节点的查询请求,直到查询到拥有第一数据的数据版权的节点110(即,第一数据拥有者节点)。之后节点110(即,第一数据拥有者节点)通过相邻节点向节点120(即,数据使用者节点)返回响应信息。其中响应信息包括节点110(即,第一数据拥有者节点)的ID。Specifically, as shown in FIG. 4a and FIG. 4b, when the node 120 (that is, the data user node) wants to obtain the first data, it will send a query request to the adjacent node for querying the node to which the first data belongs. If the adjacent node does not own the data copyright of the first data, it will send a query request to other adjacent nodes for querying the node to which the first data belongs, until the node 110 (that is, the first data owner node). Then the node 110 (ie, the first data owner node) returns the response information to the node 120 (ie, the data user node) through the adjacent nodes. The response information includes the ID of the node 110 (ie, the first data owner node).

进一步地,节点120(即,数据使用者节点)向区块链系统200发送用于查询自己是否已获取第一数据的数据版权的查询请求,区块链系统200接收到该查询请求后,根据第一数据的数据版权的ID在数据表查询节点120(即,数据使用者节点)是否已获取该数据的数据版权。其中数据表存储在区块链系统200中,并且该数据表用于记录分布式文件系统100中各个节点的情况,包括节点ID以及节点所拥有的数据版权等信息。Further, the node 120 (that is, the data user node) sends a query request to the blockchain system 200 to check whether it has obtained the data copyright of the first data. After receiving the query request, the blockchain system 200, according to The ID of the data copyright of the first data is inquired in the data table whether the node 120 (ie, the data user node) has acquired the data copyright of the data. The data table is stored in the block chain system 200, and the data table is used to record the situation of each node in the distributed file system 100, including information such as node ID and data copyright owned by the node.

例如区块链系统200从数据表中查询到节点120(即,数据使用者节点)是否获取第一数据的数据版权,之后将该查询结果发送给节点120(即,数据使用者节点)。当查询结果为节点120(即,数据使用者节点)未获取第一数据的数据版权,则节点120(即,数据使用者节点)通过区块链系统200向节点110(即,第一数据拥有者节点)支付第一数据的数据版权。For example, the block chain system 200 inquires from the data table whether the node 120 (ie, the data user node) obtains the data copyright of the first data, and then sends the query result to the node 120 (ie, the data user node). When the result of the query is that the node 120 (that is, the data user node) has not obtained the data copyright of the first data, then the node 120 (that is, the data user node) sends the data copyright to the node 110 (that is, the first data owner) through the block chain system 200 . or node) to pay the data copyright of the first data.

之后节点120(即,数据使用者节点)向节点110(即,第一数据拥有者节点)发送获取第一数据的数据获取请求,节点110(即,第一数据拥有者节点)接收到数据获取请求后,向区块链系统200发送用于查询节点120(即,数据使用者节点)是否已获取第一数据的数据版权的查询请求。区块链系统200接收到该查询请求后,在数据表中查询节点120(即,数据使用者节点)是否已支付版权费用并获取第一数据的数据版权,之后将查询结果发送给节点110(即,第一数据拥有者节点)。当查询结果为节点120(即,数据使用者节点)已支付版权费用并获取第一数据的数据版权,则节点110(即,第一数据拥有者节点)在分布式文件系统100中向节点120(即,数据使用者节点)发送第一数据。当查询结果为节点120(即,数据使用者节点)未支付版权费用,从而未获取第一数据的数据版权,则节点110(即,第一数据拥有者节点)拒绝向节点120(即,数据使用者节点)发送第一数据。Afterwards, node 120 (i.e., the data user node) sends a data acquisition request for obtaining the first data to node 110 (i.e., the first data owner node), and node 110 (i.e., the first data owner node) receives the data acquisition request After the request, a query request for querying whether the node 120 (that is, the data user node) has obtained the data copyright of the first data is sent to the block chain system 200 . After the block chain system 200 receives the query request, it queries the data table whether the node 120 (that is, the data user node) has paid the copyright fee and obtained the data copyright of the first data, and then sends the query result to the node 110 ( That is, the first data owner node). When the query result is that the node 120 (i.e., the data user node) has paid the copyright fee and obtained the data copyright of the first data, then the node 110 (i.e., the first data owner node) sends the data to the node 120 in the distributed file system 100 (ie, the data user node) sends the first data. When the query result is that the node 120 (i.e., the data user node) has not paid the copyright fee, thereby not obtaining the data copyright of the first data, then the node 110 (i.e., the first data owner node) refuses to provide the data copyright to the node 120 (i.e., the data user node) to send the first data.

从而本技术方案中,通过检测数据使用者节点是否已经支付版权费用,保证了数据安全性。Therefore, in this technical solution, data security is guaranteed by detecting whether the data user node has paid the copyright fee.

可选地,方法还包括:在数据使用者节点检测到与第一数据相关的发行代理节点的情况下,将发行代理节点的性能与第一数据拥有者节点的性能进行比较;以及在发行代理节点的性能优于第一数据拥有者节点的性能的情况下,向发行代理节点获取第一数据。Optionally, the method further includes: when the data user node detects an issuing agent node related to the first data, comparing the performance of the issuing agent node with the performance of the first data owner node; When the performance of the node is better than that of the first data owner node, the first data is acquired from the issuing proxy node.

具体地,节点130作为数据使用者节点向节点110(即,第一数据拥有者节点)获取第一数据的数据版权之后,向区块链系统200申请成为发行代理节点,区块链系统200根据节点130的申请请求后,确定节点130是否已经获取第一数据的数据版权。当区块链系统200确定节点130已经获取了第一数据的数据版权,则同意节点130成为发行代理节点的申请请求,并将节点130的信息在用于存储发行代理节点信息的数据表中进行登记。从而节点130成为可以代理发行第一数据的发行代理节点。Specifically, after the node 130, as a data user node, obtains the data copyright of the first data from the node 110 (that is, the first data owner node), it applies to the block chain system 200 to become an issuing agent node, and the block chain system 200 according to After the application request of the node 130, it is determined whether the node 130 has acquired the data copyright of the first data. When the block chain system 200 determines that the node 130 has obtained the data copyright of the first data, it agrees with the application request of the node 130 to become an issuing agent node, and stores the information of the node 130 in the data table for storing the information of the issuing agent node. register. Thus, the node 130 becomes an issuing agent node that can issue the first data on behalf of the agent.

进一步地,参考图4a以及图4b所示,在节点120(即,数据使用者节点)获取第一数据的数据版权之前,向区块链系统200发送用于查询是否存在代理发行第一数据的发行代理节点的查询请求。之后区块链系统200接收到该查询请求后,根据第一数据的数据版权的ID从数据表中查询是否存在代理发行第一数据的发行代理节点,并将查询结果返回至节点120(即,数据使用者节点)。其中发行代理节点也是数据使用者节点,即,当数据使用者节点向区块链系统200申请代理发行数据时,才可以成为发行代理节点。Further, as shown in FIG. 4a and FIG. 4b, before the node 120 (that is, the data user node) obtains the data copyright of the first data, it sends to the blockchain system 200 a query for inquiring whether there is an agent issuing the first data. Issue query requests for agent nodes. After block chain system 200 receives this query request, according to the ID of the data copyright of the first data, query from the data table whether there is an issuing agent node that issues the first data by proxy, and returns the query result to node 120 (that is, data consumer nodes). The issuing agent node is also a data user node, that is, when the data user node applies to the blockchain system 200 for issuing data as an agent, it can become an issuing agent node.

进一步地,当查询结果为区块链系统200查询到存在代理发行第一数据的发行代理节点,则节点120(即,数据使用者节点)会从相邻节点处获取节点列表。其中节点列表包括节点的传输速率等指标信息。Further, when the result of the query is that the block chain system 200 inquires that there is an issuing agent node that issues the first data, the node 120 (that is, the data user node) will obtain the node list from the adjacent nodes. The node list includes index information such as the transmission rate of the node.

之后节点120(即,数据使用者节点)从节点列表中获取节点110(即,第一数据拥有者节点)的指标信息以及发行代理节点(例如,节点130)的指标信息,利用预先设定的权重根据指标信息分别计算节点110(即,第一数据拥有者节点)的性能值和节点130(即,发行代理节点)的性能值。之后节点120(即,数据使用者节点)将节点110(即,第一数据拥有者节点)的性能值和节点130(即,发行代理节点)的性能值进行比较。Then the node 120 (that is, the data user node) obtains the index information of the node 110 (that is, the first data owner node) and the index information of the issuing agent node (for example, the node 130) from the node list, and uses the preset The weight calculates respectively the performance value of the node 110 (ie, the first data owner node) and the performance value of the node 130 (ie, the issuing proxy node) according to the index information. Then the node 120 (ie, the data consumer node) compares the performance value of the node 110 (ie, the first data owner node) with the performance value of the node 130 (ie, the issuing agent node).

当节点120(即,数据使用者节点)判定节点130(即,发行代理节点)的性能优于节点110(即,第一数据拥有者节点)的性能,则向节点130(即,发行代理节点)发送获取第一数据的数据获取请求。节点130(即,发行代理节点)接收到数据获取请求后,向区块链系统200发送用于查询节点120(即,数据使用者节点)是否已获取第一数据的数据版权的查询请求。区块链系统200接收到该查询请求后,在数据表中查询节点120(即,数据使用者节点)是否已获取第一数据的数据版权,之后将查询结果发送给节点130(即,发行代理节点)。当查询结果为节点120(即,数据使用者节点)已获取第一数据的数据版权,则发行代理节点向节点120(即,数据使用者节点)发送第一数据。当查询结果为节点120(即,数据使用者节点)未获取第一数据的数据版权,则节点130(即,发行代理节点)拒绝向节点120(即,数据使用者节点)发送第一数据。When the node 120 (that is, the data user node) determines that the performance of the node 130 (that is, the issuing agent node) is better than the performance of the node 110 (that is, the first data owner node), then the node 130 (that is, the issuing agent node) ) sending a data acquisition request for acquiring the first data. After receiving the data acquisition request, the node 130 (ie, the issuing agent node) sends a query request to the blockchain system 200 to check whether the node 120 (ie, the data user node) has acquired the data copyright of the first data. After the blockchain system 200 receives the query request, it queries the data table whether the node 120 (that is, the data user node) has obtained the data copyright of the first data, and then sends the query result to the node 130 (that is, the issuing agent node). node). When the result of the query is that the node 120 (ie, the data user node) has obtained the data copyright of the first data, the issuing proxy node sends the first data to the node 120 (ie, the data user node). When the result of the query is that the node 120 (ie, the data user node) has not acquired the data copyright of the first data, the node 130 (ie, the issuing agent node) refuses to send the first data to the node 120 (ie, the data user node).

当节点120(即,数据使用者节点)判定节点110(即,第一数据拥有者节点)的性能优于节点130(即,发行代理节点)的性能,则向节点110(即,第一数据拥有者节点)发送获取第一数据的数据获取请求。节点110(即,第一数据拥有者节点)接收到数据获取请求后,向区块链系统200发送用于查询节点120(即,数据使用者节点)是否已获取第一数据的数据版权的查询请求。区块链系统200接收到该查询请求后,在数据表中查询节点120(即,数据使用者节点)是否已获取第一数据的数据版权,之后将查询结果发送给节点110(即,第一数据拥有者节点)。当查询结果为节点120(即,数据使用者节点)已获取第一数据的数据版权,则节点110(即,第一数据拥有者节点)向节点120(即,数据使用者节点)发送第一数据。当查询结果为节点120(即,数据使用者节点)未获取第一数据的数据版权,则节点110(即,第一数据拥有者节点)拒绝向节点120(即,数据使用者节点)发送第一数据。When the node 120 (i.e., the data user node) determines that the performance of the node 110 (i.e., the first data owner node) is better than that of the node 130 (i.e., the issuing agent node), the node 110 (i.e., the first data owner node) The owner node) sends a data acquisition request for acquiring the first data. After the node 110 (ie, the first data owner node) receives the data acquisition request, it sends to the blockchain system 200 a query for inquiring whether the node 120 (ie, the data user node) has acquired the data copyright of the first data ask. After the blockchain system 200 receives the query request, it queries the data table whether the node 120 (that is, the data user node) has obtained the data copyright of the first data, and then sends the query result to the node 110 (that is, the first data user node). data owner node). When the query result is that the node 120 (that is, the data user node) has obtained the data copyright of the first data, the node 110 (that is, the first data owner node) sends the first data copyright to the node 120 (that is, the data user node). data. When the query result is that the node 120 (that is, the data user node) has not obtained the data copyright of the first data, then the node 110 (that is, the first data owner node) refuses to send the first data to the node 120 (that is, the data user node). a data.

从而本技术方案通过性能最优的节点获取第一数据,可以提高获取数据的效率和速度。Therefore, the technical solution acquires the first data through the node with the best performance, which can improve the efficiency and speed of acquiring data.

可选地,方法还包括:在数据使用者节点向第一数据拥有者节点获取第一数据后,向第一数据拥有者节点支付数据信用点数。Optionally, the method further includes: after the data user node acquires the first data from the first data owner node, paying data credits to the first data owner node.

具体地,区块链系统预先设置有信用规则。其中信用规则为:向其他节点发送数据可以增加信用值,从其他节点接收数据降低信用值。从而节点110(即,第一数据拥有者节点)向节点120(即,数据使用者节点)发送第一数据的同时,区块链系统200在账本中为节点120(即,数据使用者节点)减少相应的信用点数,并为节点110(即,第一数据拥有者节点)增加相应的信用点数。Specifically, the blockchain system is preset with credit rules. The credit rules are: sending data to other nodes can increase the credit value, and receiving data from other nodes can reduce the credit value. Thus, while the node 110 (that is, the first data owner node) sends the first data to the node 120 (that is, the data user node), the blockchain system 200 is the node 120 (that is, the data user node) in the ledger. The corresponding credit points are decreased, and the corresponding credit points are increased for the node 110 (ie, the first data owner node).

从而本技术方案通过向其他节点分享数据可以增加信用值,从其他节点接收数据降低信用值这样的规则,促进节点分享数据。Therefore, this technical solution promotes nodes to share data by sharing data with other nodes to increase the credit value and receiving data from other nodes to reduce the credit value.

可选地,方法还包括:发行代理节点向第一数据拥有者获取第一数据;以及发行代理节点在分享第一数据的情况下,向第一数据拥有者节点获取相应的分成。Optionally, the method further includes: the issuing agent node obtains the first data from the first data owner; and when the issuing agent node shares the first data, obtains a corresponding share from the first data owner node.

具体地,节点140在获取第一数据后,向区块链系统200发送申请成为代理发行第一数据的发行代理节点的申请请求,则区块链系统200根据接收到的申请请求,查询节点140是否已经支付用于获取第一数据的版权费用,以及查询节点140是否已经从节点110(即,第一数据拥有者节点)处获取第一数据。当区块链系统200查询到节点140既支付了相应的版权费用,也获取了第一数据,则区块链系统200将记录节点140成为代理发行第一数据的发行代理节点。当其他的节点也想要获取第一数据时,就可以从数据使用者节点处获取该第一数据,同时节点140(即,发行代理节点)会向需要获取该第一数据的其他的节点收取版权费用。其中节点140(即,发行代理节点)收取的版权费用为数据拥有者给数据使用者的分成。Specifically, after acquiring the first data, the node 140 sends an application request to the block chain system 200 to apply for becoming an issuing agent node for issuing the first data, and the block chain system 200 queries the node 140 according to the received application request. Whether the copyright fee for obtaining the first data has been paid, and whether the query node 140 has obtained the first data from the node 110 (ie, the first data owner node). When the blockchain system 200 inquires that the node 140 has not only paid the corresponding copyright fee but also obtained the first data, the blockchain system 200 will record that the node 140 becomes the agency node for issuing the first data. When other nodes also want to obtain the first data, they can obtain the first data from the data user node, and at the same time, the node 140 (that is, the issuing agent node) will charge other nodes that need to obtain the first data Royalty fees. The copyright fee collected by the node 140 (ie, the issuing agent node) is the share from the data owner to the data user.

从而本技术方案中,数据拥有者节点从版权收益中让渡部分利润激励发行代理节点分享数据,从而可以使得正向传播数据,并促进了作者的版权收益。Therefore, in this technical solution, the data owner node transfers part of the profits from the copyright income to encourage the distribution agent node to share the data, so that the data can be forwarded and the author's copyright income can be promoted.

此外,参考图1所示,根据本实施例的第二个方面,提供了一种存储介质。所述存储介质包括存储的程序,其中,在所述程序运行时由处理器执行以上任意一项所述的方法。In addition, referring to FIG. 1 , according to a second aspect of this embodiment, a storage medium is provided. The storage medium includes a stored program, wherein, when the program is running, the processor executes any one of the methods described above.

从而根据本实施例,通过分布式文件系统将需要确权的数据利用比较哈希值的方式进行确权,将确权的数据的哈希值存储在区块链上,从而避免了将较大的文件数据直接进行存储,提高了区块链的性能。并且本技术方案通过为参与分享数据的节点分成的方式,提高了用户对数据进行分享的意愿,从而增强了数据流通性。进而解决了现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题。Therefore, according to this embodiment, through the distributed file system, the data that needs to be confirmed is confirmed by comparing the hash value, and the hash value of the confirmed data is stored on the block chain, thereby avoiding the need for large The file data of the file is directly stored, which improves the performance of the blockchain. In addition, the technical solution increases the user's willingness to share data by dividing the nodes participating in the data sharing, thereby enhancing the data circulation. Furthermore, the technical problem existing in the prior art that cannot satisfy data copyright confirmation, data circulation and data storage at the same time is solved.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.

实施例2Example 2

图5示出了根据本实施例的第一个方面所述的基于分布式文件系统的数据流通装置500,该装置500与根据实施例1的第一个方面所述的方法相对应。参考图5所示,该装置500包括:数据确权模块510,用于第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;数据存储模块520,用于第一数据拥有者节点将确权的第一数据存储至区块链系统;以及数据版权获取模块530,用于数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。FIG. 5 shows a data circulation device 500 based on a distributed file system according to the first aspect of this embodiment, and the device 500 corresponds to the method according to the first aspect of Embodiment 1. As shown in FIG. 5 , the device 500 includes: a data right confirmation module 510, used for the first data owner node to confirm the data copyright of the first data owned by the first data owner node through a distributed file system; a data storage module 520 for The first data owner node stores the confirmed first data in the blockchain system; and the data copyright acquisition module 530 is used for the data user node to acquire the data copyright of the first data according to the confirmation information of the first data.

可选地,数据确权模块510,包括:数据确权子模块,第一数据拥有者节点通过分布式文件系统根据第一数据的哈希值对第一数据的数据版权进行确权;以及数据存储子模块,将第一数据的哈希值存储至区块链系统。Optionally, the data right confirmation module 510 includes: a data right confirmation submodule, the first data owner node confirms the data copyright of the first data according to the hash value of the first data through the distributed file system; The storage submodule stores the hash value of the first data in the block chain system.

可选地,装置500还包括:第一确定模块,第二数据拥有者节点根据第一数据的哈希值通过分布式文件系统确定与第一数据相同的第二数据;数据比较模块,将与第一数据相同的第二数据的时间戳与第一数据的时间戳进行比较;以及第一确权模块,在第二数据的时间戳与第一数据的时间戳不相同的情况下,对第一数据的数据版权进行确权。Optionally, the device 500 further includes: a first determination module, the second data owner node determines the second data that is the same as the first data through the distributed file system according to the hash value of the first data; the data comparison module compares the second data with The timestamp of the second data that is the same as the first data is compared with the timestamp of the first data; and the first confirmation module, in the case that the timestamp of the second data is different from the timestamp of the first data, Confirm the data copyright of a data.

可选地,数据版权获取模块530,包括:费用支付子模块,数据使用者节点根据第一数据向数据拥有者节点支付版权费用;以及数据获取子模块,数据使用者节点向第一数据拥有者节点获取对应的第一数据。Optionally, the data copyright acquisition module 530 includes: a fee payment submodule, the data user node pays the copyright fee to the data owner node according to the first data; and a data acquisition submodule, the data user node pays the first data owner node The node acquires the corresponding first data.

可选地,数据获取子模块,包括:请求发送单元,数据使用者节点向数据拥有者节点发送获取第一数据的数据获取请求;以及数据获取单元,在数据拥有者节点根据数据获取请求检测到数据使用者节点已获取第一数据的数据版权的情况下,数据使用者节点向数据拥有者节点获取第一数据。Optionally, the data acquisition submodule includes: a request sending unit, the data user node sends a data acquisition request for acquiring the first data to the data owner node; and a data acquisition unit, when the data owner node detects according to the data acquisition request When the data user node has obtained the data copyright of the first data, the data user node obtains the first data from the data owner node.

可选地,装置500还包括:第一比较模块,在数据使用者节点检测到与第一数据相关的发行代理节点的情况下,将发行代理节点的性能与第一数据拥有者节点的性能进行比较;以及第一获取模块,在发行代理节点的性能优于第一数据拥有者节点的性能的情况下,向发行代理节点获取第一数据。Optionally, the apparatus 500 further includes: a first comparison module, in the case that the data user node detects an issuing agent node related to the first data, compares the performance of the issuing agent node with the performance of the first data owner node comparison; and the first acquisition module, if the performance of the issuing agent node is better than that of the first data owner node, acquire the first data from the issuing agent node.

可选地,装置500还包括:点数支付模块,在数据使用者节点向第一数据拥有者节点获取第一数据后,向第一数据拥有者节点支付数据信用点数。Optionally, the apparatus 500 further includes: a point payment module, after the data user node obtains the first data from the first data owner node, pays the data credit points to the first data owner node.

可选地,装置500还包括:第二获取模块,用于发行代理节点向第一数据拥有者获取第一数据;以及第三获取模块,用于发行代理节点在分享第一数据的情况下,向第一数据拥有者节点获取相应的分成。Optionally, the apparatus 500 further includes: a second acquisition module, configured to obtain the first data from the first data owner by the issuing agent node; and a third acquisition module, configured to share the first data by the issuing agent node, Obtain the corresponding share from the first data owner node.

从而根据本实施例,通过分布式文件系统将需要确权的数据利用比较哈希值的方式进行确权,将确权的数据的哈希值存储在区块链上,从而避免了将较大的文件数据直接进行存储,提高了区块链的性能。并且本技术方案通过为参与分享数据的节点分成的方式,提高了用户对数据进行分享的意愿,从而增强了数据流通性。进而解决了现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题。Therefore, according to this embodiment, through the distributed file system, the data that needs to be confirmed is confirmed by comparing the hash value, and the hash value of the confirmed data is stored on the block chain, thereby avoiding the need for large The file data of the file is directly stored, which improves the performance of the blockchain. In addition, the technical solution increases the user's willingness to share data by dividing the nodes participating in the data sharing, thereby enhancing the data circulation. Furthermore, the technical problem existing in the prior art that cannot satisfy data copyright confirmation, data circulation and data storage at the same time is solved.

实施例3Example 3

图6示出了根据本实施例的第一个方面所述的基于分布式文件系统的数据流通装置600,该装置600与根据实施例1的第一个方面所述的方法相对应。参考图6所示,该装置600包括:处理器610;以及存储器620,与处理器610连接,用于为处理器510提供处理以下处理步骤的指令:第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;第一数据拥有者节点将确权的第一数据存储至区块链系统;以及数据使用者节点根据第一数据的确权信息获取第一数据的数据版权。FIG. 6 shows a data circulation device 600 based on a distributed file system according to the first aspect of this embodiment, and the device 600 corresponds to the method according to the first aspect of Embodiment 1. As shown in FIG. 6 , the device 600 includes: a processor 610; and a memory 620 connected to the processor 610 for providing the processor 510 with instructions for processing the following processing steps: the first data owner node passes through the distributed file system Confirm the data copyright of the owned first data; the first data owner node stores the confirmed first data in the blockchain system; and the data user node obtains the first data according to the first data confirmation information data copyright.

可选地,第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权的操作,包括:第一数据拥有者节点通过分布式文件系统根据第一数据的哈希值对第一数据的数据版权进行确权;以及将第一数据的哈希值存储至区块链系统。Optionally, the first data owner node performs the operation of confirming the data copyright of the owned first data through the distributed file system, including: the first data owner node uses the distributed file system according to the hash of the first data confirming the data copyright of the first data; and storing the hash value of the first data in the block chain system.

可选地,装置600还包括:第二数据拥有者节点根据第一数据的哈希值通过分布式文件系统确定与第一数据相同的第二数据;将与第一数据相同的第二数据的时间戳与第一数据的时间戳进行比较;以及在第二数据的时间戳与第一数据的时间戳不相同的情况下,对第一数据的数据版权进行确权。Optionally, the apparatus 600 further includes: the second data owner node determines the second data that is the same as the first data through the distributed file system according to the hash value of the first data; comparing the time stamp with the time stamp of the first data; and confirming the data copyright of the first data when the time stamp of the second data is different from the time stamp of the first data.

可选地,数据使用者节点根据第一数据的确权信息获取第一数据的数据版权的操作,包括:数据使用者节点根据第一数据向数据拥有者节点支付版权费用;以及数据使用者节点向第一数据拥有者节点获取对应的第一数据。Optionally, the operation for the data user node to obtain the data copyright of the first data according to the confirmation information of the first data includes: the data user node pays the copyright fee to the data owner node according to the first data; and the data user node Obtain the corresponding first data from the first data owner node.

可选地,数据使用者节点向第一数据拥有者节点获取对应的第一数据的操作,包括:数据使用者节点向数据拥有者节点发送获取第一数据的数据获取请求;以及在数据拥有者节点根据数据获取请求检测到数据使用者节点已获取第一数据的数据版权的情况下,数据使用者节点向数据拥有者节点获取第一数据。Optionally, the operation for the data user node to obtain the corresponding first data from the first data owner node includes: the data user node sends a data acquisition request for obtaining the first data to the data owner node; When the node detects that the data user node has acquired the data copyright of the first data according to the data acquisition request, the data user node acquires the first data from the data owner node.

可选地,装置600还包括:在数据使用者节点检测到与第一数据相关的发行代理节点的情况下,将发行代理节点的性能与第一数据拥有者节点的性能进行比较;以及在发行代理节点的性能优于第一数据拥有者节点的性能的情况下,向发行代理节点获取第一数据。Optionally, the device 600 further includes: when the data user node detects the issuing agent node related to the first data, comparing the performance of the issuing agent node with the performance of the first data owner node; When the performance of the proxy node is better than that of the first data owner node, the first data is acquired from the issuing proxy node.

可选地,装置600还包括:在数据使用者节点向第一数据拥有者节点获取第一数据后,向第一数据拥有者节点支付数据信用点数。Optionally, the apparatus 600 further includes: after the data user node acquires the first data from the first data owner node, paying data credits to the first data owner node.

可选地,装置600还包括:发行代理节点向第一数据拥有者获取第一数据;以及发行代理节点在分享第一数据的情况下,向第一数据拥有者节点获取相应的分成。Optionally, the apparatus 600 further includes: the publishing proxy node obtains the first data from the first data owner; and the publishing proxy node obtains a corresponding share from the first data owner node in the case of sharing the first data.

从而根据本实施例,通过分布式文件系统将需要确权的数据利用比较哈希值的方式进行确权,将确权的数据的哈希值存储在区块链上,从而避免了将较大的文件数据直接进行存储,提高了区块链的性能。并且本技术方案通过为参与分享数据的节点分成的方式,提高了用户对数据进行分享的意愿,从而增强了数据流通性。进而解决了现有技术中存在的无法同时满足数据版权确权、数据流通以及数据存储的技术问题。Therefore, according to this embodiment, through the distributed file system, the data that needs to be confirmed is confirmed by comparing the hash value, and the hash value of the confirmed data is stored on the block chain, thereby avoiding the need for large The file data of the file is directly stored, which improves the performance of the blockchain. In addition, the technical solution increases the user's willingness to share data by dividing the nodes participating in the data sharing, thereby enhancing the data circulation. Furthermore, the technical problem existing in the prior art that cannot satisfy data copyright confirmation, data circulation and data storage at the same time is solved.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be realized in other ways. Wherein, the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (10)

1.一种基于分布式文件系统的数据流通方法,其特征在于,包括:1. A data circulation method based on a distributed file system, comprising: 第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;The first data owner node confirms the data copyright of the owned first data through the distributed file system; 所述第一数据拥有者节点将确权的第一数据存储至区块链系统;以及The first data owner node stores the confirmed first data in the blockchain system; and 数据使用者节点根据所述第一数据的确权信息获取所述第一数据的数据版权。The data user node acquires the data copyright of the first data according to the first data confirmation information. 2.根据权利要求1所述的方法,其特征在于,第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权的操作,包括:2. The method according to claim 1, wherein the first data owner node confirms the data copyright of the owned first data through the distributed file system, including: 所述第一数据拥有者节点通过所述分布式文件系统根据所述第一数据的哈希值对所述第一数据的数据版权进行确权;以及The first data owner node confirms the data copyright of the first data according to the hash value of the first data through the distributed file system; and 将所述第一数据的哈希值存储至所述区块链系统。storing the hash value of the first data in the block chain system. 3.根据权利要求2所述的方法,其特征在于,还包括:3. The method according to claim 2, further comprising: 第二数据拥有者节点根据所述第一数据的哈希值通过所述分布式文件系统确定与所述第一数据相同的第二数据;The second data owner node determines the same second data as the first data through the distributed file system according to the hash value of the first data; 将与所述第一数据相同的第二数据的时间戳与所述第一数据的时间戳进行比较;以及comparing a timestamp of second data identical to said first data with a timestamp of said first data; and 在所述第二数据的时间戳与所述第一数据的时间戳不相同的情况下,对所述第一数据的数据版权进行确权。If the time stamp of the second data is different from the time stamp of the first data, the data copyright of the first data is confirmed. 4.根据权利要求1所述的方法,其特征在于,数据使用者节点根据所述第一数据的确权信息获取所述第一数据的数据版权的操作,包括:4. The method according to claim 1, wherein the operation for the data user node to obtain the data copyright of the first data according to the right confirmation information of the first data includes: 所述数据使用者节点根据所述第一数据向所述数据拥有者节点支付版权费用;以及The data user node pays a copyright fee to the data owner node according to the first data; and 所述数据使用者节点向所述第一数据拥有者节点获取对应的第一数据。The data user node obtains corresponding first data from the first data owner node. 5.根据权利要求4所述的方法,其特征在于,所述数据使用者节点向所述第一数据拥有者节点获取对应的第一数据的操作,包括:5. The method according to claim 4, wherein the operation for the data user node to obtain the corresponding first data from the first data owner node comprises: 所述数据使用者节点向数据拥有者节点发送获取所述第一数据的数据获取请求;以及The data user node sends a data acquisition request for acquiring the first data to the data owner node; and 在所述数据拥有者节点根据所述数据获取请求检测到所述数据使用者节点已获取所述第一数据的数据版权的情况下,所述数据使用者节点向所述数据拥有者节点获取所述第一数据。When the data owner node detects that the data user node has acquired the data copyright of the first data according to the data acquisition request, the data user node acquires the data copyright of the first data from the data owner node. Describe the first data. 6.根据权利要求5所述的方法,其特征在于,还包括:6. The method according to claim 5, further comprising: 在所述数据使用者节点检测到与所述第一数据相关的发行代理节点的情况下,将所述发行代理节点的性能与所述第一数据拥有者节点的性能进行比较;以及In the event that the data consumer node detects an issuing agent node associated with the first data, comparing the performance of the issuing agent node with the performance of the first data owner node; and 在所述发行代理节点的性能优于所述第一数据拥有者节点的性能的情况下,向所述发行代理节点获取所述第一数据。If the performance of the issuing proxy node is better than that of the first data owner node, the first data is acquired from the issuing proxy node. 7.根据权利要求5所述的方法,其特征在于,还包括:7. The method according to claim 5, further comprising: 在所述数据使用者节点向所述第一数据拥有者节点获取所述第一数据后,向所述第一数据拥有者节点支付数据信用点数。After the data user node obtains the first data from the first data owner node, it pays data credits to the first data owner node. 8.根据权利要求1所述的方法,其特征在于,还包括:8. The method of claim 1, further comprising: 发行代理节点向所述第一数据拥有者获取所述第一数据;以及an issuing agent node acquires the first data from the first data owner; and 所述发行代理节点在分享所述第一数据的情况下,向所述第一数据拥有者节点获取相应的分成。In the case of sharing the first data, the issuing proxy node obtains corresponding shares from the first data owner node. 9.一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,在所述程序运行时由处理器执行权利要求1至8中任意一项所述的方法。9. A storage medium, characterized in that the storage medium includes a stored program, wherein the method according to any one of claims 1 to 8 is executed by a processor when the program is running. 10.一种基于分布式文件系统的数据流通装置,其特征在于,包括:10. A data circulation device based on a distributed file system, characterized in that it comprises: 数据确权模块,用于第一数据拥有者节点通过分布式文件系统对拥有的第一数据的数据版权进行确权;The data right confirmation module is used for the first data owner node to confirm the data copyright of the first data owned by the first data owner node through the distributed file system; 数据存储模块,用于所述第一数据拥有者节点将确权的第一数据存储至区块链系统;以及A data storage module, used for the first data owner node to store the confirmed first data in the block chain system; and 数据版权获取模块,用于数据使用者节点根据所述第一数据的确权信息获取所述第一数据的数据版权。The data copyright acquisition module is used for the data user node to acquire the data copyright of the first data according to the first data confirmation information.
CN202310147745.XA 2023-02-22 2023-02-22 Data circulation method, device and storage medium based on distributed file system Pending CN116305000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310147745.XA CN116305000A (en) 2023-02-22 2023-02-22 Data circulation method, device and storage medium based on distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310147745.XA CN116305000A (en) 2023-02-22 2023-02-22 Data circulation method, device and storage medium based on distributed file system

Publications (1)

Publication Number Publication Date
CN116305000A true CN116305000A (en) 2023-06-23

Family

ID=86784428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310147745.XA Pending CN116305000A (en) 2023-02-22 2023-02-22 Data circulation method, device and storage medium based on distributed file system

Country Status (1)

Country Link
CN (1) CN116305000A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118152999A (en) * 2024-05-11 2024-06-07 深圳中科保泰科技有限公司 Data management platform and data right determining method for data management

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118152999A (en) * 2024-05-11 2024-06-07 深圳中科保泰科技有限公司 Data management platform and data right determining method for data management

Similar Documents

Publication Publication Date Title
WO2020207090A1 (en) Blockchain-based data processing system and method, computing device and storage medium
US11151607B2 (en) Blockchain-enabled targeted content system
WO2022121538A1 (en) Data synchronization method and system based on blockchain, and related device
CN108876383A (en) A kind of data trade method, device and equipment based on block chain
US12093349B2 (en) Method for distributing certificate of right to use digital content, and computer program stored in medium in order to carry out method
CN110599275A (en) Data processing method and device based on block chain network and storage medium
CN111414434A (en) Block chain-based data transaction management network, transaction device and storage medium
Sober et al. A blockchain-based IoT data marketplace
CN110955724B (en) Blockchain-based data processing method, device, node device and storage medium
CN112837023A (en) Organization's business collaboration platform, method, device and electronic device
CN116305000A (en) Data circulation method, device and storage medium based on distributed file system
TWI736608B (en) Method and device for facilitating expansion of payment subject
KR20200095900A (en) Method for providing blockchain based reward service using resource rent of node in blockchain network
KR102739896B1 (en) System and method for trading digital content based on peer-to-peer network
Nguyen et al. Trustless framework for iterative double auction based on blockchain
CN112036850A (en) Digital asset data access method and device and digital asset transaction system
US20030044015A1 (en) Method and system for automatic brokered transactions
CN108876339B (en) Token-based electronic pet transaction method and device
CN110784324A (en) Node admission method and device
KR20210070696A (en) Did-based interchain system and method for data exchange/transaction thereof
CN108696587A (en) Network service implementation method, server and storage medium
CN108667841A (en) Network service realization method, server and storage medium
CN108632285A (en) Network service implementation method, service node device and storage medium
CN111414412B (en) Video compression based on machine learning
CN114580027A (en) Data sharing method and device based on block chain and computer program product

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