CN111078795A - Method and device for storing social data of internet on block chain - Google Patents

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

Info

Publication number
CN111078795A
CN111078795A CN201911327485.4A CN201911327485A CN111078795A CN 111078795 A CN111078795 A CN 111078795A CN 201911327485 A CN201911327485 A CN 201911327485A CN 111078795 A CN111078795 A CN 111078795A
Authority
CN
China
Prior art keywords
social
storage
data
user
node
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
CN201911327485.4A
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 CN201911327485.4A priority Critical patent/CN111078795A/en
Publication of CN111078795A publication Critical patent/CN111078795A/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/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/2291User-Defined Types; Storage management thereof
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • 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
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Tourism & Hospitality (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

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

Description

Method and device for storing social data of internet 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 social 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 social 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 link social data (e.g., social platform data such as WeChat, microblog, etc.), the experience of the user using the blockchain technique is affected by the often-ten and several minutes of the link time.
Therefore, how to store social data in a chain manner and further shorten the time for user data chain 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, according to the method and the device for storing the internet social data on the block chain, the method can shorten the chain linking time of the user social data, and further improve the chain linking experience of the user social data.
The first aspect of the application discloses a storage method according to internet social 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 social data uplink request sent by a terminal, wherein the user social data comprises social operation data of a user on an internet social platform, a social operation data ID, a user ID, a social operation data hash value, a signature of a terminal private key to the social operation data and a terminal public key;
storing the user social data through a local database, and generating a first storage certificate of the social data; the social data first storage certificate comprises the user social data, a storage address, a signature of a first private key on the user social data and a first public key, so that the first storage node sends the social data first storage certificate to the block-out node, and the block-out node links the user social data;
and sending the first storage certificate of the social data to the terminal so as to inform the terminal that the social data of the user is stored by the blockchain system.
In one possible implementation, the social operation data includes one or more of video communication data, text communication data and picture communication data of the user on the internet social platform.
In one possible embodiment, the method further comprises: and the first storage node randomly sends the user social data to a second storage node so that the second storage node backups and stores the user social data, the second storage node sends each generated second storage certificate of the social data to the block output node, and the block output node links the user social 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 user social data first storage certificate uplink response sent by the output block node, sending the user social data first storage certificate to the output block node at intervals of a preset time period until the output block node uplinks the user social data first storage certificate.
In one possible embodiment, the method further comprises: the first storage node sends a user social data query request to the block-giving node, wherein the user social data query request comprises the social operation data ID;
receiving first social operation data corresponding to the social operation data ID sent by the block outlet node;
and comparing a first hash value obtained by performing hash operation on the first social operation data with the hash value of the social operation, and if the first hash value is the same as the hash value of the social operation, the first storage node confirms that the block outlet node links the social operation data.
In one possible embodiment, the method further comprises: the first storage node receives the user social data query request sent by the block-out node at preset time intervals, wherein the user social data query request comprises the social operation data ID; and sending second social operation data to the given block node, wherein the second social operation data corresponds to the social operation data ID, so that the given block node performs hash operation on the second social operation data to obtain a second hash value, and comparing the second hash value with the hash value of the social operation data, if the second hash value is the same as the second hash value, determining that the first storage node stores the social operation data within 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 social operation data of the user; after the verification is passed, deducting the storage space authority corresponding to the user social 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 social data of the internet 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 and chaining 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 social data uplink request sent by a terminal, wherein the user social data comprises social operation data of a user on an internet social platform, a social operation data ID, a user ID, a social operation data hash value, a signature of a terminal private key on the social operation data and a terminal public key;
the processing unit stores the social data of the user through a local database and generates a first storage certificate of the social data; the social data first storage certificate comprises the user social data, a storage address, a signature of a first private key on the user social data and a first public key, so that the first storage node sends the social data first storage certificate to the block-out node, and the block-out node links the user social data;
the sending unit sends the first storage certificate of the social data to the terminal so as to inform the terminal that the social data of the user is stored by the blockchain system.
In one possible implementation, the social operation data includes one or more of video communication data, text communication data and picture communication data of the user on the internet social platform.
In a possible implementation manner, the sending unit sends the user social data to a second storage node at random, so that the second storage node stores the user social data in a backup manner, and the second storage node sends a second storage certificate of the social data generated by the second storage node to the block giving node, and the block giving node links the user social 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 user social data first storage certificate uplink response sent by the outgoing block node, the processing unit sends the user social data first storage certificate to the outgoing block node at intervals of a predetermined time period until the outgoing block node uplinks the user social data first storage certificate.
In one possible embodiment, the method further comprises: the first storage node receives the user social data query request sent by the block-out node at preset time intervals, wherein the user social data query request comprises the social operation data ID; and sending second social operation data to the given block node, wherein the second social operation data corresponds to the social operation data ID, so that the given block node performs hash operation on the second social operation data to obtain a second hash value, and comparing the second hash value with the hash value of the social operation data, if the second hash value is the same as the second hash value, determining that the first storage node stores the social operation data within 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 social operation data of the user; after the verification is passed, deducting the storage space authority corresponding to the user social 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 social data of the user can be shortened, and the experience of chaining of the social data of the user is 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 social data of the Internet according to a block chain according to the present disclosure;
FIG. 2 is a schematic diagram of a storage device for social data based on the block link internet disclosed in the present application;
FIG. 3 is a schematic diagram of a storage device according to social data of the Internet on a block chain according to the present disclosure;
fig. 4 is a block chain architecture diagram illustrating storage of internet social 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, a method for storing internet social data according to a block chain includes S101-S103.
S101, receiving a user social data uplink request sent by a terminal, wherein the user social data comprises social operation data, a social operation data ID, a user ID, a social operation data hash value, a signature of a terminal private key to the social operation data and a terminal public key of a user on an Internet social platform.
At this time, the social operation data ID or the user ID provides two query modes for the user; the terminal private key signs the social operation data, and the first storage node verifies the storage space authority corresponding to the private key.
S102, storing the social data of the user through a local database, and generating a first storage certificate of the social data; the social data first storage certificate comprises the user social data, a storage address, a signature of a first private key on the user social data and a first public key, so that the first storage node sends the social data first storage certificate to the block-out node, and the block-out node links the user social data.
S103, sending the first storage certificate of the social data to the terminal so as to inform the terminal that the social data of the user is stored by the blockchain system.
In the above description, after the storage node stores the user social 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 social operation data includes one or more of video communication data, text communication data, and picture communication data of the user on an internet social platform.
In one example, the method further comprises: and the first storage node randomly sends the user social data to a second storage node so that the second storage node backups and stores the user social data, the second storage node sends each generated second storage certificate of the social data to the block output node, and the block output node links the user social data.
It should be noted that, if the number of the user social data is greater than the preset threshold, after the first storage node stores the user social data, the user social data may be divided into social data segments, and the social data segments are sent to a plurality of second storage nodes, where one social data segment 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 user social data first storage certificate uplink response sent by the output block node, sending the user social data first storage certificate to the output block node at intervals of a preset time period until the output block node uplinks the user social data first storage certificate.
In one example, the method further comprises: the first storage node sends a user social data query request to the block-giving node, wherein the user social data query request comprises the social operation data ID;
receiving first social operation data corresponding to the social operation data ID sent by the block outlet node;
and comparing a first hash value obtained by performing hash operation on the first social operation data with the hash value of the social operation, and if the first hash value is the same as the hash value of the social operation, the first storage node confirms that the block outlet node links the social operation data.
In one example, the method further comprises: the first storage node receives the user social data query request sent by the block-out node at preset time intervals, wherein the user social data query request comprises the social operation data ID; and sending second social operation data to the given block node, wherein the second social operation data corresponds to the social operation data ID, so that the given block node performs hash operation on the second social operation data to obtain a second hash value, and comparing the second hash value with the hash value of the social operation data, if the second hash value is the same as the second hash value, determining that the first storage node stores the social operation data within 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 social data required to be stored by the user is up, the storage node may delete the social 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 social operation data of the user; after the verification is passed, deducting the storage space authority corresponding to the user social 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.
In addition, the user obtains the space storage authority in a mortgage integral mode, so that the situation that the user uses space storage resources without limit can be avoided; on one hand, when the user needs to store data, the block chain system can directly deduct the space storage authority of the user, and the problem that the user experiences poor results is avoided because the user directly carries out real-time point transfer (the real-time point transfer needs to be confirmed by the block chain system, and the confirmation of the point transfer by the block chain system also needs time from dozens of minutes to dozens of minutes).
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 social operation data of the user; 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 social data query request to the block-giving node, wherein the user social data query request comprises the social operation data ID; receiving first social operation data corresponding to the social operation data ID sent by the block outlet node; and comparing a first hash value obtained by performing hash operation on the first social operation data with the hash value of the social operation, and if the first hash value is the same as the hash value of the social operation, the first storage node confirms that the block outlet node links the social operation data.
In one example, the method further comprises: the first storage node receives the user social data query request sent by the block-out node at preset time intervals, wherein the user social data query request comprises the social operation data ID;
and sending second social operation data to the given block node, wherein the second social operation data corresponds to the social operation data ID, so that the given block node performs hash operation on the second social operation data to obtain a second hash value, and comparing the second hash value with the hash value of the social operation data, if the second hash value is the same as the second hash value, determining that the first storage node stores the social operation data within 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 social operation data of the user; after the verification is passed, deducting the storage space authority corresponding to the user social 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 social data of the user can be shortened, and the experience of chaining of the social data of the user is improved.
The second aspect of the application discloses a storage device for social data of the internet 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 and chaining 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 social data uplink request sent by a terminal, wherein the user social data comprises social operation data of a user on an internet social platform, a social operation data ID, a user ID, a social operation data hash value, a signature of a terminal private key on the social operation data and a terminal public key;
the processing unit stores the social data of the user through a local database and generates a first storage certificate of the social data; the social data first storage certificate comprises the user social data, a storage address, a signature of a first private key on the user social data and a first public key, so that the first storage node sends the social data first storage certificate to the block-out node, and the block-out node links the user social data;
the sending unit sends the first storage certificate of the social data to the terminal so as to inform the terminal that the social data of the user is stored by the blockchain system.
In one example, the social operation data includes one or more of video communication data, text communication data, and picture communication data of the user on an internet social platform.
In an example, the sending unit sends the user social data to a second storage node at random, so that the second storage node stores the user social data in a backup manner, and the second storage node sends a second storage certificate of the social data generated by the second storage node to the block giving node, and the block giving node links the user social 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 of user social data uplink response sent by the out-block node, the processing unit sends the first storage certificate of user social data to the out-block node at intervals of a predetermined time period until the out-block node uplink the first storage certificate of user social 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 social data of the user can be shortened, and the experience of chaining of the social data of the user is 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 the form of 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 social 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 data through a local database, and the first block outlet node is used for packaging 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 social data uplink request sent by a terminal, wherein the user social data comprises social operation data of a user on an internet social platform, a social operation data ID, a user ID, a social operation data hash value, a signature of a terminal private key to the social operation data and a terminal public key;
storing the user social data through a local database, and generating a first storage certificate of the social data; the social data first storage certificate comprises the user social data, a storage address, a signature of a first private key on the user social data and a first public key, so that the first storage node sends the social data first storage certificate to the block-out node, and the block-out node links the user social data;
and sending the first storage certificate of the social data to the terminal so as to inform the terminal that the social data of the user is stored by the blockchain system.
2. The storage method according to claim 1, wherein the social operation data comprises one or more of video communication data, text communication data and picture communication data of the user on an internet social platform.
3. The storage method according to claim 1, wherein the method further comprises:
and the first storage node randomly sends the user social data to a second storage node so that the second storage node backups and stores the user social data, the second storage node sends each generated second storage certificate of the social data to the block output node, and the block output node links the user social 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 user social data first storage certificate uplink response sent by the output block node, sending the user social data first storage certificate to the output block node at intervals of a preset time period until the output block node uplinks the user social data first storage certificate.
6. The storage method according to claim 1, wherein the method further comprises:
the first storage node receives the user social data query request sent by the block-out node at preset time intervals, wherein the user social data query request comprises the social operation data ID;
and sending second social operation data to the given block node, wherein the second social operation data corresponds to the social operation data ID, so that the given block node performs hash operation on the second social operation data to obtain a second hash value, and comparing the second hash value with the hash value of the social operation data, if the second hash value is the same as the second hash value, determining that the first storage node stores the social operation data within a preset time period.
7. The storage method according to claim 1, wherein 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; wherein the storage space is a unit time storage space X storage time.
8. The storage method according to claim 7, wherein the method further comprises:
the first storage node verifies the storage space authority of the user according to the storage space required by the social operation data of the user;
after the verification is passed, deducting the storage space authority corresponding to the user social 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.
9. The storage device for the internet social 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 data through a local database, and the first block outlet 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 social data uplink request sent by a terminal, wherein the user social data comprises social operation data of a user on an internet social platform, a social operation data ID, a user ID, a social operation data hash value, a signature of a terminal private key on the social operation data and a terminal public key;
the processing unit stores the social data of the user through a local database and generates a first storage certificate of the social data; the social data first storage certificate comprises the user social data, a storage address, a signature of a first private key on the user social data and a first public key, so that the first storage node sends the social data first storage certificate to the block-out node, and the block-out node links the user social data;
the sending unit sends the first storage certificate of the social data to the terminal so as to inform the terminal that the social data of the user is stored by the blockchain system.
10. The storage device of claim 9, wherein the social operation data comprises one or more of video communication data, text communication data, and picture communication data of the user on an internet social platform.
CN201911327485.4A 2019-12-20 2019-12-20 Method and device for storing social data of internet on block chain Pending CN111078795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911327485.4A CN111078795A (en) 2019-12-20 2019-12-20 Method and device for storing social data of internet on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911327485.4A CN111078795A (en) 2019-12-20 2019-12-20 Method and device for storing social data of internet on block chain

Publications (1)

Publication Number Publication Date
CN111078795A true CN111078795A (en) 2020-04-28

Family

ID=70316491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911327485.4A Pending CN111078795A (en) 2019-12-20 2019-12-20 Method and device for storing social data of internet on block chain

Country Status (1)

Country Link
CN (1) CN111078795A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268490A (en) * 2021-07-21 2021-08-17 广东卓启云链科技有限公司 Account book processing method, device, equipment and storage medium based on intelligent contract

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268490A (en) * 2021-07-21 2021-08-17 广东卓启云链科技有限公司 Account book processing method, device, equipment and storage medium based on intelligent contract
CN113268490B (en) * 2021-07-21 2021-10-12 广东卓启云链科技有限公司 Account book processing method, device, equipment and storage medium based on intelligent contract

Similar Documents

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