CN111831652A - Method and device for storing internet community data on block chain - Google Patents

Method and device for storing internet community data on block chain Download PDF

Info

Publication number
CN111831652A
CN111831652A CN201911327585.7A CN201911327585A CN111831652A CN 111831652 A CN111831652 A CN 111831652A CN 201911327585 A CN201911327585 A CN 201911327585A CN 111831652 A CN111831652 A CN 111831652A
Authority
CN
China
Prior art keywords
data
storage
community
node
user
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
CN201911327585.7A
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 Aimo Ruice Technology Co Ltd
Beijing Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Aimo Ruice 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 Beijing Aimo Ruice Technology Co Ltd filed Critical Beijing Aimo Ruice Technology Co Ltd
Priority to CN201911327585.7A priority Critical patent/CN111831652A/en
Publication of CN111831652A publication Critical patent/CN111831652A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2219Large Object storage; Management thereof
    • 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/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries

Landscapes

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

Abstract

The application discloses a method and a device for storing internet community data on a block chain, wherein the block chain system comprises a first storage node and a first block outlet node, the first storage node stores data through a local database, and the first block outlet node is used for packaging blocks and chaining the blocks; the method is applied to the first storage node, the first storage node comprises a first public key and a first private key, and the method comprises the following steps: receiving a user community data uplink request sent by a terminal; storing user community data through a local database, and generating a first storage certificate of the community data, so that a first storage node sends the first storage certificate of the community data to a block node, and the block node links the user community data; and sending the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system. The method can shorten the uplink time of the user community data, and further improve the uplink experience of the user community data.

Description

Method and device for storing internet community data on block chain
Technical Field
The invention relates to the technical field of internet big data, in particular to a method and a device for storing internet community data on a block chain.
Background
Currently, the blockchain technology is a distributed stored ledger that uses technologies such as encryption algorithm and consensus mechanism. With the application of the block chain technology, more and more internet data can be stored on the block chain; see patent nos.: 201910306004.5.
the existing community data is stored in a block chain, and the block chain link points need to pack the data into blocks; and then storing the blocks into a block chain after the blocks are identified. If the workload proves PoW consensus method is adopted, the uplink process needs about 60 minutes; if the DPoS method is adopted, the uplink process needs about 15 minutes; the two consensus methods, PoW and DPoS, are the mainstream consensus methods of the current block chain system. When a user needs to uplink community data (e.g., community platform data such as Baidu Bar, Homing Community, etc.), the ten-minute uplink time affects the user experience of using the blockchain technique.
Therefore, how to store the community data uplink and further shorten the time of the user data uplink becomes an urgent problem to be solved.
The foregoing description is merely for convenience in understanding and is not to be construed as limiting the prior art to the present application.
Disclosure of Invention
Based on the above problems, the method and the device for storing the internet community data on the block chain can shorten the uplink time of the user community data, and further improve the uplink experience of the user community data.
The first aspect of the application discloses a method for storing internet community data on a block chain, wherein the block chain system comprises a first storage node and a first block outlet node, the first storage node stores data through a local database, and the first block outlet node is used for packaging blocks and linking the blocks; the storage method is applied to the first storage node, the first storage node comprises a first public key and a first private key, and the storage method comprises the following steps:
receiving a user community data uplink request sent by a terminal, wherein the user community data comprises community operation data of a user on an internet community platform, a community operation data ID, a user ID, a community operation data hash value, a signature of a terminal private key on the community operation data and a terminal public key;
storing the user community data through a local database, and generating a first storage certificate of the community data; the first storage certificate of the community data comprises the user community data, a storage address, a signature of a first private key on the user community data and a first public key, so that the first storage node sends the first storage certificate of the community data to the block output node, and the block output node links the user community data;
and sending the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system.
In one possible implementation, the community operational data includes one or more of posting data, post type data, post rating data, and post interest data of a user on an internet community platform.
In one possible embodiment, the method further comprises: and the first storage node randomly sends the user community data to a second storage node so that the second storage node backups and stores the user community data, the second storage node sends the generated second storage certificate of the community data to the block output node, and the block output node uplinks the user community data.
In one possible embodiment, the number M of the second storage nodes is greater than or equal to 2, and M is a positive integer.
In one possible embodiment, the method further comprises: and if the first storage node does not receive the first storage certificate uplink response of the user community data sent by the output block node, sending the first storage certificate of the user community data to the output block node at intervals of a preset time period until the output block node uplinks the first storage certificate of the user community data.
In one possible embodiment, the method further comprises: the first storage node sends a user community data query request to the given block node, wherein the user community data query request comprises the community operation data ID;
receiving first community operation data corresponding to the community operation data ID sent by the block outlet node;
and comparing a first hash value obtained by performing hash operation on the first community operation data with the hash value of the community operation, and if the first hash value is the same as the hash value of the community operation data, the first storage node confirms that the outlet block node links the community operation data.
In one possible embodiment, the method further comprises: the first storage node receives the user community data query request sent by the block output node at preset time intervals, wherein the user community data query request comprises the community operation data ID; and sending second community operation data to the given block node, wherein the second community operation data corresponds to the community operation data ID, so that the given block node performs hash operation on the second community operation data to obtain a second hash value, the second hash value is compared with the hash value of the community operation data, and if the second hash value is the same as the second hash value, the first storage node is confirmed to store the community operation data in a preset time period.
In one possible embodiment, the method further comprises: the first storage node receives the integral mortgage operation of the terminal; allocating storage space authority to the terminal according to the integral number of the terminal; the storage space is the unit time storage space X storage time.
In one possible embodiment, the method further comprises: the first storage node verifies the storage space authority of the user according to the storage space required by the user community operation data; after the verification is passed, deducting the storage space authority corresponding to the user community operation data from the user storage space authority; and sending the user residual storage space authority to the terminal so as to inform the terminal of the corresponding user.
The second aspect of the application discloses a storage device for internet community data on a block chain, wherein the block chain system comprises a first storage node and a first block output node, the first storage node stores data through a local database, and the first block output node is used for packaging blocks and chaining the blocks; the storage device is applied to the first storage node, the first storage node comprises a first public key and a first private key, and the storage device comprises a receiving unit, a processing unit and a sending unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a user community data uplink request sent by a terminal, wherein the user community data comprises community operation data of a user on an internet community platform, a community operation data ID, a user ID, a community operation data hash value, a signature of a terminal private key on the community operation data and a terminal public key;
the processing unit stores the user community data through a local database and generates a first storage certificate of the community data; the first storage certificate of the community data comprises the user community data, a storage address, a signature of a first private key on the user community data and a first public key, so that the first storage node sends the first storage certificate of the community data to the block output node, and the block output node links the user community data;
the sending unit sends the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system.
In one possible implementation, the community operational data includes one or more of posting data, post type data, post rating data, and post interest data of a user on an internet community platform.
In a possible implementation manner, the sending unit sends the user community data to a second storage node at random, so that the second storage node stores the user community data in a backup manner, and the second storage node sends a second storage certificate of the respective generated community data to the block giving node, and the block giving node chains the user community data.
In one possible embodiment, the number M of the second storage nodes is greater than or equal to 2, and M is a positive integer.
In a possible implementation manner, if the first storage node does not receive the first storage certificate uplink response of the user community data sent by the outgoing block node, the processing unit sends the first storage certificate of the user community data to the outgoing block node at intervals of a predetermined time period until the outgoing block node uplinks the first storage certificate of the user community data.
According to the method and the device, the chaining time of the user community data can be shortened, and the user community data chaining experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a method for storing Internet community data on a blockchain according to the present disclosure;
FIG. 2 is a schematic diagram of a block chain Internet community data storage device according to the present disclosure;
FIG. 3 is a schematic diagram of a block chain Internet community data storage device according to the present disclosure;
fig. 4 is a block chain architecture diagram illustrating storage of internet community data on a block chain according to the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in this application are used for convenience of understanding only, and are not to be construed as sequential or limiting in any way.
For the purpose of facilitating understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
As shown in fig. 4, the blockchain system includes a first storage node and a first out-block node, the first storage node stores data through a local database, and the first out-block node is used for packing blocks and linking the blocks; the storage method is applied to the first storage node, and the first storage node comprises a first public key and a first private key.
As shown in FIG. 1, the method for storing the Internet community data on the blockchain comprises S101-S103.
S101, a user community data uplink request sent by a terminal is received, wherein the user community data comprises community operation data of a user on an Internet community platform, a community operation data ID, a user ID, a community operation data hash value, a signature of a terminal private key on the community operation data and a terminal public key.
At this time, the community operation data ID or the user ID provides two query modes for the user; the terminal private key signs the community operation data, and the first storage node verifies the storage space authority corresponding to the private key.
S102, storing the user community data through a local database, and generating a first storage certificate of the community data; the first storage certificate of the community data comprises the user community data, a storage address, a signature of a first private key on the user community data and a first public key, so that the first storage node sends the first storage certificate of the community data to the block output node, and the block output node links the user community data.
S103, sending the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system.
In the above description, after the storage node stores the user community data, it directly returns a storage certificate to the user, and the storage certificate prompts that the storage operation of the user blockchain system is completed; the user does not need to wait, and can directly perform other operations; meanwhile, the block chain system can perform packaging uplink processing on the storage certificate, and other functions of the block chain system used by a user are not influenced; thereby improving the user experience of storing data on the blockchain system.
In one example, the community operational data includes one or more of posting data, post type data, post rating data, and post interest data of a user on an internet community platform.
In one example, the method further comprises: and the first storage node randomly sends the user community data to a second storage node so that the second storage node backups and stores the user community data, the second storage node sends the generated second storage certificate of the community data to the block output node, and the block output node uplinks the user community data.
It should be noted that, if the number of the user community data is greater than the preset threshold, after the first storage node stores the user community data, the user community data may be divided into community data fragments, and the community data fragments are sent to a plurality of second storage nodes, where one community data fragment corresponds to one second storage node. The data with large data volume is fragmented, and fragmented backup storage is performed, so that the efficiency of data backup storage can be improved.
In addition, when a plurality of second storage nodes are selected, in order to ensure the availability of the backup storage function, the downtime rates of the plurality of second storage nodes can be multiplied to obtain a total downtime rate; and selecting a plurality of second storage nodes with the total downtime rate smaller than the preset downtime rate.
In one example, the number M ≧ 2 of second storage nodes, M being a positive integer.
At this time, the number of the second storage nodes is the number of the backup data.
In one example, the method further comprises: and if the first storage node does not receive the first storage certificate uplink response of the user community data sent by the output block node, sending the first storage certificate of the user community data to the output block node at intervals of a preset time period until the output block node uplinks the first storage certificate of the user community data.
In one example, the method further comprises: the first storage node sends a user community data query request to the given block node, wherein the user community data query request comprises the community operation data ID;
receiving first community operation data corresponding to the community operation data ID sent by the block outlet node;
and comparing a first hash value obtained by performing hash operation on the first community operation data with the hash value of the community operation, and if the first hash value is the same as the hash value of the community operation data, the first storage node confirms that the outlet block node links the community operation data.
In one example, the method further comprises: the first storage node receives the user community data query request sent by the block output node at preset time intervals, wherein the user community data query request comprises the community operation data ID; and sending second community operation data to the given block node, wherein the second community operation data corresponds to the community operation data ID, so that the given block node performs hash operation on the second community operation data to obtain a second hash value, the second hash value is compared with the hash value of the community operation data, and if the second hash value is the same as the second hash value, the first storage node is confirmed to store the community operation data in a preset time period.
In one example, the method further comprises: the first storage node receives the integral mortgage operation of the terminal; allocating storage space authority to the terminal according to the integral number of the terminal; the storage space is the unit time storage space X storage time.
At this time, after the time of the community data required to be stored by the user is up, the storage node may delete the community data; in addition, the user does not have the used storage space authority, and the user can initiate a mortgage operation through the terminal to redeem the points corresponding to the remaining unused storage space authority.
In one example, the method further comprises: the first storage node verifies the storage space authority of the user according to the storage space required by the user community operation data; after the verification is passed, deducting the storage space authority corresponding to the user community operation data from the user storage space authority; and sending the user residual storage space authority to the terminal so as to inform the terminal of the corresponding user.
It should be noted that, the ways of deducting the storage space authority include two ways: one is to directly deduct the storage space required by the user community operation data; one is to deduct the storage space right per unit time. The unit time may be one day, one week, or one month.
In one example, the method further comprises: the first storage node sends a user community data query request to the given block node, wherein the user community data query request comprises the community operation data ID; receiving first community operation data corresponding to the community operation data ID sent by the block outlet node; and comparing a first hash value obtained by performing hash operation on the first community operation data with the hash value of the community operation, and if the first hash value is the same as the hash value of the community operation data, the first storage node confirms that the outlet block node links the community operation data.
In one example, the method further comprises: the first storage node receives the user community data query request sent by the block output node at preset time intervals, wherein the user community data query request comprises the community operation data ID;
and sending second community operation data to the given block node, wherein the second community operation data corresponds to the community operation data ID, so that the given block node performs hash operation on the second community operation data to obtain a second hash value, the second hash value is compared with the hash value of the community operation data, and if the second hash value is the same as the second hash value, the first storage node is confirmed to store the community operation data in a preset time period.
In one example, the method further comprises: the first storage node receives the integral mortgage operation of the terminal;
allocating storage space authority to the terminal according to the integral number of the terminal; the storage space is the unit time storage space X storage time.
In one example, the method further comprises: the first storage node verifies the storage space authority of the user according to the storage space required by the user community operation data; after the verification is passed, deducting the storage space authority corresponding to the user community operation data from the user storage space authority;
and sending the user residual storage space authority to the terminal so as to inform the terminal of the corresponding user.
According to the method and the device, the chaining time of the user community data can be shortened, and the user community data chaining experience is further improved.
The second aspect of the application discloses a storage device for internet community data on a block chain, wherein the block chain system comprises a first storage node and a first block output node, the first storage node stores data through a local database, and the first block output node is used for packaging blocks and chaining the blocks; the storage device is applied to the first storage node, the first storage node comprises a first public key and a first private key, and the storage device comprises a receiving unit, a processing unit and a sending unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a user community data uplink request sent by a terminal, wherein the user community data comprises community operation data of a user on an internet community platform, a community operation data ID, a user ID, a community operation data hash value, a signature of a terminal private key on the community operation data and a terminal public key;
the processing unit stores the user community data through a local database and generates a first storage certificate of the community data; the first storage certificate of the community data comprises the user community data, a storage address, a signature of a first private key on the user community data and a first public key, so that the first storage node sends the first storage certificate of the community data to the block output node, and the block output node links the user community data;
the sending unit sends the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system.
In one example, the community operational data includes one or more of posting data, post type data, post rating data, and post interest data of a user on an internet community platform.
In an example, the sending unit sends the user community data to a second storage node at random, so that the second storage node stores the user community data in a backup manner, and the second storage node sends a second storage certificate of the community data generated by the second storage node to the block giving node, and the block giving node chains the user community data.
In one example, the number M ≧ 2 of second storage nodes, M being a positive integer.
In an example, if the first storage node does not receive the first storage certificate uplink response of the user community data sent by the egress block node, the processing unit sends the first storage certificate of the user community data to the egress block node at intervals of a predetermined time period until the egress block node uplinks the first storage certificate of the user community data.
It should be noted that, in the device embodiment, reference may be made to the same or similar parts as in the method embodiment, and details are not described herein.
According to the method and the device, the chaining time of the user community data can be shortened, and the user community data chaining experience is further improved.
The application further discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of the above embodiments when executing the program.
The present application also discloses a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above embodiments.
Fig. 3 shows a schematic diagram of a computer device, which may include: a processor 310, a memory 320, an input/output interface 330, a communication interface 340, and a bus 350. Wherein the processor 340, the memory 320, the input/output interface 330, and the communication interface 340 are communicatively coupled to each other within the device via a bus 350.
The processor 310 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 320 may be implemented in a ROM (read only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 320 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 320 and called to be executed by the processor 310.
The input/output interface 330 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 340 is used for connecting a communication module (not shown in the figure) to implement communication interaction between the present device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 350 includes a path that transfers information between the various components of the device, such as processor 310, memory 320, input/output interface 330, and communication interface 340.
It should be noted that although the above-mentioned device only shows the processor 310, the memory 320, the input/output interface 330, the communication interface 340 and the bus 350, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the scope of the present invention should be included in the scope of the present invention.

Claims (10)

1. The method for storing the internet community data on the block chain is characterized in that the block chain system comprises a first storage node and a first block outlet node, the first storage node stores the data through a local database, and the first block outlet node is used for packaging the blocks and chaining the blocks; the storage method is applied to the first storage node, the first storage node comprises a first public key and a first private key, and the storage method comprises the following steps:
receiving a user community data uplink request sent by a terminal, wherein the user community data comprises community operation data of a user on an internet community platform, a community operation data ID, a user ID, a community operation data hash value, a signature of a terminal private key on the community operation data and a terminal public key;
storing the user community data through a local database, and generating a first storage certificate of the community data; the first storage certificate of the community data comprises the user community data, a storage address, a signature of a first private key on the user community data and a first public key, so that the first storage node sends the first storage certificate of the community data to the block output node, and the block output node links the user community data;
and sending the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system.
2. The storage method of claim 1, wherein the community operational data comprises one or more of posting data, post type data, post rating data, and post interest data of a user on an internet community platform.
3. The storage method according to claim 1, wherein the method further comprises:
and the first storage node randomly sends the user community data to a second storage node so that the second storage node backups and stores the user community data, the second storage node sends the generated second storage certificate of the community data to the block output node, and the block output node uplinks the user community data.
4. The storage method according to claim 3, wherein the number M of the second storage nodes is greater than or equal to 2, and M is a positive integer.
5. The storage method according to claim 1, wherein the method further comprises:
and if the first storage node does not receive the first storage certificate uplink response of the user community data sent by the output block node, sending the first storage certificate of the user community data to the output block node at intervals of a preset time period until the output block node uplinks the first storage certificate of the user community data.
6. The device for storing the internet community data on the block chain is characterized in that the block chain system comprises a first storage node and a first block outlet node, the first storage node stores the data through a local database, and the first block outlet node is used for packaging the blocks and chaining the blocks; the storage device is applied to the first storage node, the first storage node comprises a first public key and a first private key, and the storage device comprises a receiving unit, a processing unit and a sending unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a user community data uplink request sent by a terminal, wherein the user community data comprises community operation data of a user on an internet community platform, a community operation data ID, a user ID, a community operation data hash value, a signature of a terminal private key on the community operation data and a terminal public key;
the processing unit stores the user community data through a local database and generates a first storage certificate of the community data; the first storage certificate of the community data comprises the user community data, a storage address, a signature of a first private key on the user community data and a first public key, so that the first storage node sends the first storage certificate of the community data to the block output node, and the block output node links the user community data;
the sending unit sends the first storage certificate of the community data to the terminal so as to inform the terminal that the user community data is stored by the block chain system.
7. The storage device of claim 6, wherein the community operational data comprises one or more of posting data, post type data, post rating data, and post interest data of a user on an internet community platform.
8. The storage device of claim 6,
the sending unit sends the user community data to a second storage node randomly so that the second storage node stores the user community data in a backup mode, the second storage node sends the generated second storage certificate of the community data to the block-out node, and the block-out node links the user community data.
9. The storage device of claim 8, wherein the number M of second storage nodes is greater than or equal to 2, and M is a positive integer.
10. The storage device of claim 6,
if the first storage node does not receive the first storage certificate uplink response of the user community data sent by the output block node, the processing unit sends the first storage certificate of the user community data to the output block node at intervals of a preset time period until the output block node uplinks the first storage certificate of the user community data.
CN201911327585.7A 2019-12-20 2019-12-20 Method and device for storing internet community data on block chain Pending CN111831652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911327585.7A CN111831652A (en) 2019-12-20 2019-12-20 Method and device for storing internet community data on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911327585.7A CN111831652A (en) 2019-12-20 2019-12-20 Method and device for storing internet community data on block chain

Publications (1)

Publication Number Publication Date
CN111831652A true CN111831652A (en) 2020-10-27

Family

ID=72911709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911327585.7A Pending CN111831652A (en) 2019-12-20 2019-12-20 Method and device for storing internet community data on block chain

Country Status (1)

Country Link
CN (1) CN111831652A (en)

Similar Documents

Publication Publication Date Title
CN110247753B (en) Block output method and device based on block chain node point network
CN111831738A (en) Method and device for storing Internet recruitment data on block chain
CN110298757B (en) Consensus method and device relating to DPoS
CN111831669A (en) Method and device for storing internet voting data according to block chain
CN111078715A (en) Synchronous storage method and device for internet advertisement data on block chain
CN110233722B (en) Block output method and device on block chain
CN111831671A (en) Method and device for storing internet advertisement data on block chain
CN111831670A (en) Storage method and device related to internet comment data on block chain
CN111078795A (en) Method and device for storing social data of internet on block chain
CN111046048A (en) Method and device for storing Internet business license data on block chain
CN111831652A (en) Method and device for storing internet community data on block chain
CN111835815A (en) Synchronous storage method and device for internet self-media data on block chain
CN111831653A (en) Method and device for storing self-media data of Internet on block chain
CN111831731A (en) Method and device for storing internet life service data on block chain
CN111833054A (en) Method and device for storing Internet e-commerce data on block chain
CN111831651A (en) Storage method and device for sharing economic data on block chain through Internet
CN111125250A (en) Method and device for storing internet evaluation data on block chain
CN111831729A (en) Storage method and device for internet academic certificate data on block chain
CN111831730A (en) Method and device for storing internet knowledge payment data on block chain
CN111831732A (en) Method and device for storing tourism data on block chain
CN111833056A (en) Method and device for storing internet search data on block chain
CN110224813B (en) Block discharging method and device based on block chain
CN111833055A (en) Method and device for storing Internet research data on block chain
CN111078758A (en) Method and device for storing Internet marriage certificate data on block chain
CN111831859A (en) Method and device for storing internet knowledge question-answer data on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201027

WD01 Invention patent application deemed withdrawn after publication