CN109493055B - Network access block chain equipment based on block chain, data processing method and device - Google Patents

Network access block chain equipment based on block chain, data processing method and device Download PDF

Info

Publication number
CN109493055B
CN109493055B CN201811448695.4A CN201811448695A CN109493055B CN 109493055 B CN109493055 B CN 109493055B CN 201811448695 A CN201811448695 A CN 201811448695A CN 109493055 B CN109493055 B CN 109493055B
Authority
CN
China
Prior art keywords
block chain
data
storage
file system
network access
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
CN201811448695.4A
Other languages
Chinese (zh)
Other versions
CN109493055A (en
Inventor
应红峰
陈超
吴君健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZNV Technology Co Ltd
Original Assignee
Shenzhen ZNV Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZNV Technology Co Ltd filed Critical Shenzhen ZNV Technology Co Ltd
Priority to CN201811448695.4A priority Critical patent/CN109493055B/en
Publication of CN109493055A publication Critical patent/CN109493055A/en
Application granted granted Critical
Publication of CN109493055B publication Critical patent/CN109493055B/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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • 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/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

A network access block chain device based on a block chain, a data processing method and a device thereof comprise: the network access block chain equipment establishes an index for data and sends the data to an interplanetary file system for storage; the network access block chain equipment receives a storage address of the data returned by the interplanetary file system; and the network-accessing block chain equipment stores the storage address and the index information to a contract account through a block chain. The embodiment of the application comprises the steps that the network access block chain equipment establishes indexes for data and sends the data to an interplanetary file system for storage; and the network-accessing block chain equipment stores the storage address and the index information to a contract account through a block chain, so that the data is stored through an interplanetary file system, the storage is decentralized, and the data can be ensured to be protected in privacy.

Description

Block chain-based network access block chain equipment, data processing method and device
Technical Field
The application relates to the field of security protection, in particular to a network access block chain device based on a block chain, a data processing method and a data processing device.
Background
With the rapid development of networks, security monitoring products (such as network cameras) utilizing the networks gradually cover all corners of our lives. At present, in the field of security, particularly home security, a network camera is generally accessed to a service provider through a network. Due to platform centralization, privacy is often difficult to guarantee since data is not encrypted or a symmetric key is used.
Disclosure of Invention
The application provides a network access block chain device based on a block chain, a data processing method and a data processing device.
According to a first aspect of the present application, there is provided a data processing method based on a block chain, including:
the network access block chain equipment establishes an index for data and sends the data to an interplanetary file system for storage;
the network access block chain equipment receives a storage address of the data returned by the interplanetary file system;
and the network-accessing block chain equipment stores the storage address and the index information to a contract account through a block chain.
According to a second aspect of the present application, there is provided a data processing method based on a block chain, including:
the network access block chain equipment establishes an index for data and sends the data to an interplanetary file system for storage;
the interplanetary file system sends the storage address of the data to the networking block chain equipment;
and the network-accessing block chain equipment sends the storage address and the index information to a block chain, and the block chain stores the storage address and the index information to a contract account.
According to a third aspect of the present application, there is provided a network-entering blockchain apparatus based on a blockchain, including:
the sending module is used for establishing indexes for the data and sending the data to an interplanetary file system for storage;
the receiving module is used for receiving the storage address of the data returned by the interplanetary file system;
and the storage module is used for storing the storage address and the index information to a contract account through a block chain.
According to a fourth aspect of the present application, there is provided a data processing apparatus based on a blockchain, comprising a network-accessing blockchain device and an interplanetary file system; the network access block chain equipment comprises a sending module, a receiving module and a storage module;
the sending module is used for establishing indexes for the data and sending the data to an interplanetary file system;
the interplanetary file system is used for storing the data and returning a storage address of the data;
a receiving module, configured to receive the storage address;
and the storage module is used for storing the storage address and the index information to a contract account through a block chain.
Due to the adoption of the technical scheme, the beneficial effects of the application are as follows:
the embodiment of the application comprises the steps that the network access block chain equipment establishes indexes for data and sends the data to an interplanetary file system for storage; and the network-accessing block chain equipment stores the storage address and the index information to a contract account through a block chain, so that the data is stored through an interplanetary file system, the storage is decentralized, and the privacy protection of the data can be ensured.
Drawings
FIG. 1 is a flow chart of a method in one embodiment of the present application;
FIG. 2 is a flow chart of a method in another embodiment according to the first embodiment of the present application;
FIG. 3 is a flow chart of a method in an embodiment of the present application;
FIG. 4 is a flow chart of a method in another embodiment of the second embodiment of the present application;
FIG. 5 is a flowchart of a method in accordance with example two of the present application in one embodiment;
FIG. 6 is a schematic diagram of program modules in one implementation of a third embodiment of the present application;
FIG. 7 is a schematic diagram of program modules in another implementation of example three of the present application;
FIG. 8 is a schematic diagram of program modules in one implementation of the fourth embodiment of the present application;
fig. 9 is a schematic diagram of program modules in another implementation of example five of the present application.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. The present application may be embodied in many different forms and is not limited to the embodiments described in the present embodiment. The following detailed description is provided to facilitate a more thorough understanding of the present disclosure, and the words used to indicate orientation, top, bottom, left, right, etc. are used solely to describe the illustrated structure in connection with the accompanying figures.
One skilled in the relevant art will recognize, however, that one or more of the specific details can be omitted, or other methods, components, or materials can be used. In some instances, some embodiments are not described or not described in detail.
The ordinal numbers used herein for the components, such as "first," "second," etc., are used merely to distinguish between the objects described, and do not have any sequential or technical meaning.
Furthermore, the technical features, aspects described herein may also be combined in any suitable manner in one or more embodiments. It will be readily appreciated by those of skill in the art that the order of the steps or operations of the methods associated with the embodiments provided herein may be varied. Thus, any sequence in the figures and examples is for illustrative purposes only and does not imply a requirement in a certain order unless explicitly stated to require a certain order.
Based on the IPFS (Internet File System) technology, the method is a permanent and decentralized method for saving and sharing files, and is a distributed protocol of content addressable, versioned and point-to-point hypermedia. When storing a file, the file is first sliced and cut into 256KB sized files. The loop then calls (MerkleDAG. add) the method to build the file MerkleDAG. The main characteristics are as follows:
A. content addressing: using multiple hashes to uniquely identify the contents of a block of data; rather than referencing objects (pictures, articles, videos) stored on a particular server, IPFS references a file by its content corresponding to a hash value. It can be understood that if you want to access a particular page in your browser, then IPFS asks the entire network "do someone have the file for the hash? At IPFS there will be a node returning the file, at which time you have access to it.
B. Tamper resistance: the hash value can be conveniently checked to confirm whether the data has been tampered with.
C. Removing weight: because the hash of the data blocks with the same content is the same, repeated data can be easily removed, and the storage space is saved.
The first embodiment is as follows:
as shown in fig. 1 and fig. 2, an embodiment of a data processing method based on a block chain according to the present application includes the following steps:
step 102: and the network access block chain equipment establishes an index for the data and sends the data to an interplanetary file system for storage. The data may include audio-visual data, and may also include pictures or other data. The network access block chain device can be a server or terminal devices such as a mobile phone.
Step 104: and the network access block chain equipment receives the storage address of the data returned by the interplanetary file system.
IPFS (InterPlanetary File System) is a File storage and content distribution network protocol that combines the existing successful System Distributed Hash Tables (DHTs), BitTorrent, version control System Git, Self-Certified File systems (Self-Certified File systems-SFS) with a blockchain. The combined advantages of these systems bring about its remarkable characteristics: 1. persistent, decentralized save and share files (storage DHTs in blockchain mode); 2. point-to-point hypermedia: P2P holds various types of data (BitTorrent); 3. versioning: traceable file modification history (Git-Merkle DAG merkel directed acyclic graph); 4. content addressing: rather than identifying the file by its storage location, the file is identified by its content generating an independent hash value. The files with the same content only exist in one copy in the system, and the storage space is saved. Step 106: and the network-accessing block chain equipment stores the storage address and the index information to a contract account through the block chain.
The network-accessing block chain equipment firstly sends the storage address and the index information to the block chain, and then the block chain sends the received storage address and the index information to the contract account.
In an embodiment, after step 104 and before step 106, the method may further include:
step 105: and the network access block chain equipment sends the plurality of storage addresses to the interplanetary file system for storage and receives the storage addresses of the storage addresses returned by the interplanetary file system.
If the number of the storage addresses returned from the IPFS is large, multiple storage can be performed, namely all the storage addresses are combined into a file, the file is stored in the IPFS, the unique address is finally obtained, multiple storage is performed on the address, too much data can be prevented from being stored by the networking block chain equipment, and the occupation of the networking block chain equipment resources is reduced.
In another embodiment, after step 106, the method may further include:
step 108: and the network access block chain equipment acquires a query address from a contract account according to a query request of a user, acquires query data from the IPFS according to the query address, and returns the query data to the user.
When a user needs to query data, a request can be sent to the network access blockchain equipment, after the network access blockchain equipment receives the query request, a query address of the data to be queried is obtained from a contract account according to a related query condition, the query address is a storage address of the data in the IPFS, the network access blockchain equipment searches for related data in the IPFS according to the storage address of the data to be queried, and the searched data are returned to the user.
The embodiment of the application comprises the steps that the network access block chain equipment establishes indexes for data and sends the data to an interplanetary file system for storage; and the network-accessing block chain equipment stores the storage address and the index information to the contract account through the block chain, so that the data is stored through an interplanetary file system, the storage is decentralized, and the privacy protection of the data can be ensured.
Example two:
as shown in fig. 3 and 4, an embodiment of the data processing method based on a block chain according to the present application includes the following steps:
step 302: and the network access block chain equipment establishes an index for the data and sends the data to an interplanetary file system for storage.
Step 304: and the interplanetary file system sends the storage address of the data to the network block chain equipment.
Step 306: and the network-accessing block chain equipment sends the storage address and the index information to the block chain, and the block chain stores the storage address and the index information to the contract account.
In an embodiment, the data processing method based on a block chain according to the present application may further include the following steps:
step 402: and the network access block chain equipment establishes an index for the data and sends the data to an interplanetary file system for storage.
Step 404: and the interplanetary file system sends the storage address of the data to the network block chain equipment.
Step 406: and the network-accessing block chain equipment sends the storage address and the index information to the block chain, and the block chain stores the storage address and the index information to the contract account.
Step 408: and the network access block chain equipment acquires a query address from the contract account according to a query request of a user.
Step 410: and the network access block chain equipment sends a query request to the interplanetary file system according to the query address.
Step 412: and the interplanetary file system sends the query data in the query address to the network access block chain equipment.
Step 414: and the network access block chain equipment returns the query data to the user.
As shown in fig. 5, a specific embodiment of the block chain-based data processing method according to the present application includes the following steps:
step 502: and the network camera sends an access request to the network access block chain equipment.
Step 504: and the network access block chain equipment receives the access request and sends a connection success message to the network camera.
Step 506: and the network camera sends audio and video data to the network access block chain equipment.
Step 508: and the network access block chain equipment processes the data and establishes an index.
Step 510: and the network access block chain equipment sends the network access block chain equipment to the IPFS for storage.
Step 512: and the IPFS returns a unique storage address for storing the audio and video data in the whole network.
Step 514: and the audio and video data sends the storage address and the index information to the block chain.
Step 516: and the block chain stores the storage address and the index information to the contract account number.
Step 518: and the network access blockchain equipment receives a request of a user for inquiring the audio and video data.
Step 520: and the network access block links the equipment to the contract account to search audio and video data.
Step 522: and the contract account returns a storage address for storing the audio and video data to the network access block chain equipment.
Step 524: and the network access block chain equipment sends a request for acquiring audio and video data from the IPFS according to the storage address.
Step 526: and the IPFS returns the inquired audio and video data to the network access blockchain equipment.
Step 528: and the network access block chain equipment sends the inquired audio and video data to the user.
Example three:
as shown in fig. 6 and 7, an embodiment of the network access blockchain device based on a blockchain according to the present application includes a sending module, a receiving module, and a storing module. The network access block chain device can be a server or terminal devices such as a mobile phone.
The sending module is used for establishing an index for data and sending the data to an interplanetary file system for storage;
the receiving module is used for receiving the storage address of the data returned by the interplanetary file system;
and the storage module is used for storing the storage address and the index information to a contract account through a block chain. The network-accessing block chain equipment firstly sends the storage address and the index information to the block chain, and then the block chain sends the received storage address and the index information to the contract account.
In one embodiment, the network-accessing blockchain device may further include a query module.
And the query module is used for acquiring a query address from the contract account according to a query request of the user, acquiring query data from the interplanetary file system according to the query address and returning the query data to the user.
In another embodiment, the storage module may be further configured to send the network-accessing blockchain device to the interplanetary file system for storage, and receive a storage address of a storage address returned by the interplanetary file system.
If the number of the storage addresses returned from the IPFS is large, multiple storage can be performed, namely all the storage addresses are combined into a file, a unique address is finally obtained in the storage of the IPFS, the addresses are subjected to multiple storage, the phenomenon that too much data are stored in the network access block chain equipment can be avoided, and the occupation of network access block chain equipment resources is reduced.
Example four:
as shown in fig. 8 and 9, an embodiment of the data processing apparatus based on a blockchain according to the present application includes a network-accessing blockchain device and an interplanetary file system. The network access block chain equipment comprises a sending module, a receiving module and a storage module.
The sending module is used for establishing indexes for the data and sending the data to an interplanetary file system;
the interplanetary file system is used for storing the data and returning the storage address of the data;
the receiving module is used for receiving the storage address;
and the storage module is used for storing the storage address and the index information to the contract account through the block chain.
In one embodiment, the network access blockchain device may further include a query module;
and the query module is used for acquiring a query address from the contract account according to a query request of the user, acquiring query data from the interplanetary file system according to the query address and returning the query data to the user.
Example five:
a computer-readable storage medium comprising a program executable by a processor to implement the method as in embodiments one through three.
Those skilled in the art will appreciate that all or part of the steps of the various methods in the above embodiments may be implemented by instructions associated with hardware via a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read-only memory, random access memory, magnetic or optical disk, and the like. The foregoing is a more detailed description of the present application in connection with specific embodiments thereof, and it is not intended that the present application be limited to the specific embodiments thereof. It will be apparent to those skilled in the art from this disclosure that many more simple deductions or substitutions can be made without departing from the spirit of the disclosure.

Claims (4)

1. A data processing method based on a block chain is characterized by comprising the following steps:
the network access block chain equipment establishes an index for data and sends the data to an interplanetary file system for storage;
the network access block chain equipment receives a storage address of the data returned by the interplanetary file system;
the network access block chain equipment forms a file from the received storage addresses, sends the file to an interplanetary file system for storage, and receives the storage address of the file returned by the interplanetary file system;
the network-accessing block chain equipment stores the storage address and the index information to a contract account through a block chain;
further comprising:
the network access block chain equipment acquires a query address from the contract account according to a query request of a user;
the network access block chain equipment acquires query data from an interplanetary file system according to the query address;
and the network access block chain equipment returns the query data to the user.
2. The method of claim 1, wherein the data comprises audiovisual data and/or pictures sent by a webcam.
3. An apparatus for network-accessing blockchain based on blockchain, comprising:
the sending module is used for establishing indexes for the data and sending the data to an interplanetary file system for storage;
the receiving module is used for receiving the storage address of the data returned by the interplanetary file system;
the storage module is used for storing the storage address and the index information to a contract account through a block chain, forming a file by the received storage addresses, sending the file to the interstellar file system for storage, and receiving the storage address of the file returned by the interstellar file system;
further comprising:
and the query module is used for acquiring a query address from the contract account according to a query request of a user, acquiring query data from the interplanetary file system according to the query address, and returning the query data to the user.
4. A computer-readable storage medium, characterized by comprising a program which is executable by a processor to implement the method of any one of claims 1-2.
CN201811448695.4A 2018-11-28 2018-11-28 Network access block chain equipment based on block chain, data processing method and device Active CN109493055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811448695.4A CN109493055B (en) 2018-11-28 2018-11-28 Network access block chain equipment based on block chain, data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811448695.4A CN109493055B (en) 2018-11-28 2018-11-28 Network access block chain equipment based on block chain, data processing method and device

Publications (2)

Publication Number Publication Date
CN109493055A CN109493055A (en) 2019-03-19
CN109493055B true CN109493055B (en) 2022-09-13

Family

ID=65698830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811448695.4A Active CN109493055B (en) 2018-11-28 2018-11-28 Network access block chain equipment based on block chain, data processing method and device

Country Status (1)

Country Link
CN (1) CN109493055B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175471B (en) * 2019-05-23 2021-07-30 语联网(武汉)信息技术有限公司 File storage method and system
CN110674140B (en) * 2019-09-29 2022-04-15 腾讯科技(深圳)有限公司 Block chain-based content processing method, device, equipment and storage medium
CN111104386B (en) * 2019-11-04 2023-09-01 京东科技信息技术有限公司 File storage method, terminal and storage medium
CN111506549B (en) * 2020-04-16 2023-07-14 深圳市迅雷网络技术有限公司 File processing system, method, equipment and storage medium based on block chain
CN112084522B (en) * 2020-09-28 2021-09-21 深圳市腾盟技术有限公司 Data storage method, device, equipment and storage medium
CN112257087B (en) * 2020-10-23 2024-01-19 上海信联信息发展股份有限公司 File chaining method and system of block chain
CN112287026A (en) * 2020-10-28 2021-01-29 昆明理工大学 Data storage method based on block chain and IPFS
CN112988674B (en) * 2021-03-12 2024-07-12 深圳平安智慧医健科技有限公司 Big data file processing method and device, computer equipment and storage medium
CN113407512A (en) * 2021-06-10 2021-09-17 湖南大学 Block chain-based distributed storage system, method, device and storage medium
CN113535669A (en) * 2021-07-23 2021-10-22 广东工业大学 File uploading method, downloading method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681898A (en) * 2018-05-15 2018-10-19 广东工业大学 A kind of data trade method and system based on block chain
CN108769153A (en) * 2018-05-15 2018-11-06 广东工业大学 A kind of data processing method and system of network application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681898A (en) * 2018-05-15 2018-10-19 广东工业大学 A kind of data trade method and system based on block chain
CN108769153A (en) * 2018-05-15 2018-11-06 广东工业大学 A kind of data processing method and system of network application

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
区块链安全与标准化;黄永洪 等;《信息技术与标准化》;20180331(第3期);全文 *
让IPFS星际文件系统永久保存你的数据;CCH陈常鸿;《CSDN》;20180518;第1-4页 *

Also Published As

Publication number Publication date
CN109493055A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN109493055B (en) Network access block chain equipment based on block chain, data processing method and device
CN109936571B (en) Mass data sharing method, open sharing platform and electronic equipment
US9400800B2 (en) Data transport by named content synchronization
CN111399756B (en) Data storage method, data downloading method and device
EP3170091B1 (en) Method and server of remote information query
CN110569213A (en) File access method, device and equipment
CN104104971A (en) Video file processing method and system
US10979532B2 (en) Resource download method, electronic device, and apparatus
CN109873855B (en) Resource acquisition method and system based on block chain network
CN104301741A (en) Data live broadcast system and method
CN111224829B (en) Method and device for accessing external node to block chain network, and block chain network
US9665732B2 (en) Secure Download from internet marketplace
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
CN107357557B (en) Information updating method and device
CN103678535A (en) Browser and downloading method thereof
CN108573071A (en) A kind of file operation method and relevant apparatus
CN111225248B (en) On-demand content management method and content distribution network on-demand server
CN112579877A (en) Information source system control method, device, storage medium and equipment
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN113162997B (en) Data transmission method and device, electronic equipment and readable storage medium
CN102947825B (en) The computer documents that management is shared between at least two devices
CN111221781B (en) Data searching method, device, electronic equipment and system
CN113626188A (en) Task pushing method and device, computer equipment and storage medium
US20150227534A1 (en) Method for processing data query using information-centric network
CN113010600A (en) Data management system, method, related device and medium based on block chain

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