CN111078706A - Personal health data storage method and device based on block chain - Google Patents

Personal health data storage method and device based on block chain Download PDF

Info

Publication number
CN111078706A
CN111078706A CN201911325878.1A CN201911325878A CN111078706A CN 111078706 A CN111078706 A CN 111078706A CN 201911325878 A CN201911325878 A CN 201911325878A CN 111078706 A CN111078706 A CN 111078706A
Authority
CN
China
Prior art keywords
storage
data
node
stored
personal health
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
CN201911325878.1A
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 CN201911325878.1A priority Critical patent/CN111078706A/en
Publication of CN111078706A publication Critical patent/CN111078706A/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/22Indexing; Data structures therefor; Storage structures
    • 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/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the invention provides a personal health data storage method and device based on a block chain. The method comprises the following steps: the storage node receives a business data storage request from user equipment, wherein the business data storage request comprises personal health data to be stored; the storage node stores the personal health data to be stored, and sends a storage certificate to the user equipment after the storage is finished; the storage node sends the storage certificate to the block outlet node; the block-out node records the storage certificate in a block chain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the block chain after a preset time. Therefore, the problems of real-time storage of service data, reduction of data storage delay and improvement of user experience are solved.

Description

Personal health data storage method and device based on block chain
Technical Field
The invention relates to the technical field of computers, in particular to a personal health data storage method and device based on a block chain.
Background
The block chain technology, also called as distributed book technology, is an internet database technology, and is characterized in that centralization and openness are realized, and everyone can participate in database recording.
If we assume the database as a book, the reading and writing of the database can be regarded as an accounting behavior, the principle of the block chain technology is to find the person with the fastest accounting speed in a period of time, the person accounts, and then the page of information of the book is sent to other owners in the whole system. This is equivalent to changing all records in the database and sending to every other node in the whole network, so the block chain technique is also called distributed ledger (distributed ledger).
Currently, in data uplink, it is necessary to wait for the data to be packed into blocks and uplink is sent after the blocks are verified, that is, it is necessary to wait for the data to be identified as an irreversible block, and then send a data uplink response to the user.
In PoW consensus, an irreversible block takes about 60 minutes; the DPoS consensus also needs about 10 minutes, and the block confirmation time is long, so that the storage delay of data is too long, and the experience of a user using a block chain system is greatly influenced.
Disclosure of Invention
Based on the above problems, embodiments of the present invention provide a method and an apparatus for storing personal health data based on a block chain.
In a first aspect, a method for storing personal health data based on a blockchain is provided. The block chain link point in the block chain system comprises a storage node and a block outlet node, and the method is applied to the block chain system and comprises the following steps: the storage node receives a business data storage request from user equipment, wherein the business data storage request comprises personal health data to be stored; the storage node stores the personal health data to be stored, and sends a storage certificate to the user equipment after the storage is finished; the storage node sends the storage certificate to the block outlet node; the block-out node records the storage certificate in a block chain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the block chain after a preset time.
In one optional implementation, the personal health data includes one or more of physical metrics data, work and rest data, exercise data, physical examination data; the body index data comprises one or more of height, weight, body fat rate, heart rate, respiration, blood pressure; the work and rest data comprise one or more items of time for falling asleep, time for getting up, time for deep sleep, time for afternoon nap and diet data; the motion data comprises one or more items of motion types, motion duration, motion intensity and motion places; the physical examination data comprises one or more of physical examination time, physical examination place, physical examination type and physical examination report.
In an optional implementation, the storage attestation includes an identifier of a storage node, a user identifier, a data identifier, a storage address, and a signature of the storage node, where the storage node includes a specified number of storage nodes that are backups of each other.
In one optional implementation, the step of storing the personal health data to be stored by the storage node comprises: if the data volume of the personal health data to be stored is smaller than a first threshold value, selecting a specified number of storage nodes to respectively store the personal health data to be stored; or if the data volume of the personal health data to be stored is larger than a first threshold value, dividing the personal health data to be stored into a plurality of fragmented data according to a predetermined fragmentation rule; selecting a specified number of storage nodes for storage aiming at each piece of fragmented data;
the specified number is determined according to a preset downtime threshold value, and the total downtime probability of the storage nodes of the specified number is less than or equal to the downtime threshold value.
In one optional implementation, the method further comprises: the storage node receives a service data access request sent by user equipment, wherein the access request comprises a user identifier and/or a data identifier; the storage node determines stored personal health data corresponding to the access request according to the user identification and/or the data identification; the storage node sends the stored personal health data to the user device.
In one optional implementation, the method further comprises: the block-out node receives an authenticity query request sent by the user equipment, wherein the authenticity query request comprises a user identifier and/or a data identifier; the block outlet node inquires in the block chain according to the user identification and/or the data identification, and determines whether a corresponding uplink storage certificate exists; and the block outlet node sends the query result to the user equipment.
In an optional implementation, the business data storage request further includes a user identifier, where the user identifier corresponds to a remaining storage space, and the step of storing, by the storage node, the personal health data to be stored includes: the storage node determines whether the residual storage space corresponding to the user identification is sufficient or not based on the data volume of the personal health data to be stored; and if the personal health data are sufficient, the storage node stores the personal health data to be stored.
In one optional implementation, the method further comprises: charging the user corresponding to the uplink storage certificate based on a preset rule; the preset rule comprises charging according to the storage space or charging according to the time.
In one optional implementation, the method further comprises: and sending a reward point to a storage node corresponding to the uplink storage certificate based on the uplink storage certificate.
In one optional implementation, the method further comprises: the user equipment sends a mortgage operation to the block chain link point, wherein the mortgage operation comprises a user identifier and a mortgage score; the block link points allocate storage space for the users based on the mortgage credits.
In one optional implementation, the method further comprises: the storage node periodically sends a storage attestation inquiry request to the block-out node; and if the storage certificate is not recorded in the block chain by the out-block node within a specified time period, the storage certificate is sent to the out-block node again.
In one optional implementation, the method further comprises: after receiving the storage certificate, the block output node confirms whether the storage certificate is real or not based on the storage certificate; if true, rewarding the storage node; and if not, punishing the storage node.
In a second aspect, a blockchain based personal health data store is provided. The device is applied to the blockchain system and comprises: the receiving module is used for receiving a business data storage request from user equipment, wherein the business data storage request comprises personal health data to be stored; the storage module is used for storing the personal health data to be stored and sending a storage certificate to the user equipment after the storage is finished; a sending module, configured to send the storage certificate to the egress node; the recording module is used for recording the storage certification in a block chain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the block chain after a preset time.
In a third aspect, the present specification provides a computer device, including a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method steps of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when being executed by a processor, carries out the method steps of the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of the first aspect described above.
The embodiment of the invention provides a personal health data storage method and device based on a block chain. When the personal health data is stored based on the block chain, the storage certificate is returned to the user equipment after the data storage is finished, the storage certificate can indicate that the personal health data is stored by the block chain system, the time is short, the storage of the data is completely ensured, the storage certificate is recorded in the block chain, and the user confirms the authenticity of the stored business data based on the storage certificate on the block chain after the preset time, so that the safety, the non-tamper property and the like of the business data are ensured. The problem of real-time storage of service data, reduce the storage delay of data, improve user experience is solved.
Drawings
FIG. 1 illustrates an exemplary architecture for applying embodiments provided herein;
fig. 2 is a flowchart of a method for storing personal health data based on a block chain according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a block chain-based personal health data storage device according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a computer device provided in an embodiment of the present specification.
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 embodiment of the invention provides a personal health data storage method and device based on a block chain. Fig. 1 shows an exemplary architecture to which embodiments provided herein apply.
As shown in fig. 1, the exemplary architecture may include one or more user equipments 101 and one or more blockchain nodes 102, and when there are a plurality of blockchain nodes 102, a blockchain system is formed, where the blockchain nodes in the blockchain system may include storage nodes and out-of-block nodes. The user equipment 101 may be configured to interact with the block node nodes 102, for example, the user equipment 101 sends service data to the storage node; the storage node stores the service data, and returns a storage certificate to the user equipment after the storage is finished; the storage node that receives the service data may send the service data to another storage node, and the other storage node stores the service data. The storage node sends the storage certificate to the block node, the block node packs the block, and the block becomes an irreversible block after consensus is completed. After a preset time, the ue 101 may query the block node whether its service data is actually stored.
It should be noted that the architecture of this embodiment is not limited to implement other functions, for example, the user equipment 101 may also be used as a block link node.
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.
Fig. 2 is a schematic flow chart of a method for storing personal health data based on a blockchain according to the present invention. As shown in fig. 2, the blockchain link point in the blockchain system includes a storage node and an out-of-block node, and the method is applied to the blockchain system, and the method may include the following steps:
s210, the storage node receives a service data storage request from the user equipment. The business data storage request includes personal health data to be stored.
The personal health data comprises one or more of physical index data, work and rest data, exercise data, physical examination data, and the like;
the body index data comprises one or more of height, weight, body fat rate, heart rate, respiration, blood pressure and the like;
the work and rest data comprises one or more items of time for falling asleep, time for getting up, time for deep sleep, time for afternoon nap, diet data and the like;
the motion data comprises one or more items of motion types, motion duration, motion intensity, motion places and the like;
the physical examination data includes one or more of time of physical examination, location of physical examination, type of physical examination, report of physical examination, and the like.
And S220, the storage node stores the personal health data to be stored, and sends a storage certificate to the user equipment after the storage is finished.
The storage certificate may include an identifier of a storage node, a user identifier, a data identifier, a storage address, and a signature of the storage node, where the storage node includes a specified number of storage nodes, the specified number of storage nodes are backup of each other, and the specified number is generally greater than or equal to 2.
The storage node identification may be an ID of the storage node, a signature of the storage node, or an address of the storage node, etc. The address of the storage node may be the address of the storage node used to record the credit. The user identification may be an ID of the user, an account name of the user, a signature of the user or an address of the user, etc. The address of the user may be an address for the user to pay a storage space usage fee. The address of the storage node and the address of the user may be addresses on the same blockchain.
For each storage certificate, signatures of a specified number of storage nodes can be included, and when the specified number of storage nodes are all signed, the service data can be represented to be successfully stored.
The identifier of the data may be a hash value of the personal health data to be stored, or may be a timestamp or a serial number corresponding to the personal health data to be stored.
The storage address may be a storage path, such as a location of a stored disk.
And S230, the storage node sends the storage certificate to the block-out node.
After the node to be stored finishes storing the personal health data to be stored, the node to be stored can also send the storage certificate to the block output node, so that the block output node records the storage certificate in the block chain.
And S240, the block-out node records the storage certificate in the block chain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the block chain after a preset time.
And the block output node packs the storage certificate to output a block, and becomes an irreversible block after the consensus is completed. After a preset time, the ue may query the block node whether its service data is actually stored.
By the implementation of the application, when the personal health data is stored based on the block chain, the storage certificate is returned to the user equipment after the data storage is finished, the storage certificate can indicate that the personal health data is stored by the block chain system, the time is fast, the storage of the data is completely guaranteed, the storage certificate is recorded in the block chain, the user confirms the authenticity of the stored business data based on the storage certificate on the block chain after the preset time, and the safety, the non-tamper property and the like of the business data are guaranteed. The problem of real-time storage of service data, reduce the storage delay of data, improve user experience is solved.
In one embodiment, for the storage of the service data, the storage may be performed based on the data volume, and for the service data with a larger data volume, the fragmented storage may be performed to ensure the storage efficiency. Based on this, the step S220 further includes the following steps:
step 1.1), if the data volume of the personal health data to be stored is smaller than a first threshold value, selecting a specified number of storage nodes to respectively store the personal health data to be stored;
alternatively, the first and second electrodes may be,
step 1.2), if the data volume of the personal health data to be stored is larger than a first threshold value, dividing the personal health data to be stored into a plurality of fragmented data according to a predetermined fragmentation rule; selecting a specified number of storage nodes for storage aiming at each piece of fragmented data;
the specified number is determined according to a preset downtime threshold value, and the total downtime probability (the probability of downtime of each storage node is multiplied) of the specified number of storage nodes is less than or equal to the downtime threshold value.
When a specified number of storage nodes are selected, the storage nodes can be selected in a random mode, and the random mode can also be a random mode capable of verifying randomness.
In some embodiments, after the storage node stores the data, the user may directly access the data stored by the user according to the information in the storage certificate. As an example, the method may further comprise the steps of:
step 2.1), the storage node receives a service data access request sent by user equipment, wherein the access request comprises a user identifier and/or a data identifier;
step 2.2), the storage node determines the stored personal health data corresponding to the access request according to the user identification and/or the data identification;
and 2.3), the storage node sends the stored personal health data to the user equipment.
Each user identifier may correspond to a plurality of data identifiers, and the data identifier may be an identifier of one data fragment or an identifier of one data segment, and the like.
In some embodiments, the user device may query the stored authenticity of the personal wellness data to be stored in a variety of ways. As one example, the user device may query the egress block node based on information in the stored credentials. Based on this, the method may further comprise the steps of:
step 3.1), the output block node receives an authenticity query request sent by user equipment, wherein the authenticity query request comprises a user identifier and/or a data identifier;
step 3.2), the block output node inquires in the block chain according to the user identification and/or the data identification, and determines whether a corresponding storage certificate of the uplink exists;
and 3.3), the block outlet node sends the query result to the user equipment.
The query result may include the existence of the corresponding stored certificate of the uplink or the absence of the corresponding stored certificate of the uplink. Wherein the query result may include a signature of the out-of-block node.
In some embodiments, the service data storage request further comprises a user identifier, and the user identifier corresponds to the remaining storage space. Based on this, the step S220 can be specifically realized by the following steps:
step 4.1), the storage node determines whether the residual storage space corresponding to the user identification is sufficient or not based on the data volume of the personal health data to be stored; that is, it is checked whether the remaining storage space corresponding to the user identifier is greater than or equal to the storage space required by the storage of this time.
And 4.2) if the quantity of the personal health data is sufficient, the storage node stores the personal health data to be stored.
And 4.3) if the storage space is insufficient, sending an alarm to the user equipment, wherein the alarm is used for indicating that the storage space is insufficient.
In some embodiments, the usage of the storage space may also be billed for the user. Based on this, the method may further comprise the steps of:
step 5.1), charging the user corresponding to the uplink storage certificate based on a preset rule; wherein the preset rule comprises charging according to the storage space or charging according to the time. Charging according to storage space may refer to deducting a fee according to a total amount of storage space, which is equal to storage time per unit time. Charging by time may refer to deducting the storage space per unit time before each unit time starts. The unit time may be determined according to actual needs, for example, year/month/day.
In some embodiments, after the storage node performs the storage task, the storage node may be rewarded, and the reward may be issued in the form of points through the block chain. As an example, the method may further comprise the steps of:
and 6.1) sending the reward points to the storage nodes corresponding to the uplink storage certificate based on the uplink storage certificate.
In some embodiments, the user device may obtain storage space by acting as a mortgage or lock bin to the chain. For storage space that has been used, the mortgage credits cannot be redeemed. As an example, the method may further comprise the steps of:
step 7.1), the user equipment sends a mortgage operation to the block link points, wherein the mortgage operation comprises user identification and mortgage integration;
and 7.2), the block link points allocate storage space for the users based on the mortgage scores.
In some embodiments, the storage node checks whether the block node will store the certificate uplink; the out-of-block node checks whether the storage attestation of the storage node is authentic. As an example, the method may further include the steps of:
step 8.1), the storage node periodically sends a storage certification inquiry request to the block-out node;
step 8.2), if the out-block node does not record the storage certificate in the block chain within the specified time period, the storage certificate is sent to the out-block node again.
The sending of the storage attestation query request to the egress block node may be stopped if the egress block node records a storage attestation in a blockchain.
As an example, the method may further include the steps of:
step 9.1), after receiving the storage certificate, the out-block node confirms whether the storage certificate is real or not based on the storage certificate; the out-blocking node may query the storage node according to the storage attestation to confirm whether the storage attestation is authentic.
Step 9.2), if true, rewarding the storage node; the reward may be the issuance of points over a blockchain.
Step 9.3), if not true, punishing the storage node. The penalty may be that no points are issued to the storage node. Or, the storage node is instructed to suspend storing the new service data within a specified time period.
Fig. 3 is a schematic structural diagram of a block chain-based personal health data storage device according to an embodiment of the present application. As shown in fig. 3, a blockchain link point in a blockchain system includes a storage node and an out-of-block node, and the apparatus is applied to the blockchain system, and includes:
a receiving module 301, configured to receive a service data storage request from a user equipment, where the service data storage request includes personal health data to be stored;
a storage module 302, configured to store the personal health data to be stored, and send a storage certificate to the user equipment after the storage is completed;
a sending module 303, configured to send the storage credential to the egress node;
a recording module 304, configured to record the storage certification in a blockchain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the blockchain after a preset time.
In some embodiments, the personal health data comprises one or more of physical metrics data, work and rest data, exercise data, physical examination data;
the body index data comprises one or more of height, weight, body fat rate, heart rate, respiration, blood pressure;
the work and rest data comprise one or more items of time for falling asleep, time for getting up, time for deep sleep, time for afternoon nap and diet data;
the motion data comprises one or more items of motion types, motion duration, motion intensity and motion places;
the physical examination data comprises one or more of physical examination time, physical examination place, physical examination type and physical examination report.
In some embodiments, the storage attestation includes an identification of a storage node, a user identification, a data identification, a storage address, and a signature of the storage node, where the storage node includes a specified number of storage nodes that are backups of each other.
In some embodiments, the storage module 302 is specifically configured to:
if the data volume of the personal health data to be stored is smaller than a first threshold value, selecting a specified number of storage nodes to respectively store the personal health data to be stored;
alternatively, the first and second electrodes may be,
if the data volume of the personal health data to be stored is larger than a first threshold value, dividing the personal health data to be stored into a plurality of fragmented data according to a predetermined fragmentation rule; selecting a specified number of storage nodes for storage aiming at each piece of fragmented data;
the specified number is determined according to a preset downtime threshold value, and the total downtime probability of the storage nodes of the specified number is less than or equal to the downtime threshold value.
In some embodiments, the receiving module 301 is further configured to receive a service data access request sent by a user equipment, where the access request includes a user identifier and/or a data identifier;
the first determining module is used for determining the stored personal health data corresponding to the access request according to the user identification and/or the data identification;
the sending module is further configured to send the stored personal health data to the user equipment.
In some embodiments, the receiving module 301 is further configured to receive an authenticity query request sent by the user equipment, where the authenticity query request includes a user identifier and/or a data identifier;
a second determining module, configured to query the block chain according to the user identifier and/or the data identifier, and determine whether a corresponding storage certificate of an uplink exists;
the sending module 303 is further configured to send the query result to the user equipment.
In some embodiments, the service data storage request further includes a user identifier, where the user identifier corresponds to the remaining storage space, and the storage module 302 is specifically configured to:
the storage node determines whether the residual storage space corresponding to the user identification is sufficient or not based on the data volume of the personal health data to be stored;
and if the personal health data are sufficient, the storage node stores the personal health data to be stored.
In some embodiments, further comprising:
the charging module is used for charging the user corresponding to the uplink storage certificate based on a preset rule;
the preset rule comprises charging according to the storage space or charging according to the time.
In some embodiments, further comprising:
and the reward module is used for sending reward points to the storage node corresponding to the uplink storage certificate based on the uplink storage certificate.
In some embodiments, further comprising:
the mortgage module is used for sending mortgage operation to the block chain link points, and the mortgage operation comprises user identification and mortgage integration;
and the allocation module is used for allocating storage space for the user based on the mortgage credits.
In some embodiments, further comprising:
the sending module 303 is further configured to periodically send a storage attestation query request to the egress block node;
the sending module 303 is further configured to, if the out-block node does not record the storage credential in the block chain within a specified time period, resend the storage credential to the out-block node.
In some embodiments, further comprising:
a third determining module, configured to, after receiving the storage attestation, determine whether the storage attestation is authentic based on the storage attestation;
the reward module is used for rewarding the storage node if the storage node is real;
and the punishing module is used for punishing the storage node if the storage node is not real.
It is understood that the block chain based personal health data storage device of the present embodiment corresponds to the method embodiment shown in fig. 2, and therefore, the above description about the method embodiment shown in fig. 2 is also applicable to the device of the present embodiment, and is not repeated herein.
Fig. 4 shows a schematic structural diagram of a computer device provided in an embodiment of the present specification, where the computer device may include: a processor 410, a memory 420, an input/output interface 430, a communication interface 440, and a bus 450. Wherein processor 410, memory 420, input/output interface 430, and communication interface 440 are communicatively coupled to each other within the device via bus 450.
The processor 410 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 420 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 420 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 420 and called to be executed by the processor 410.
The input/output interface 430 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 440 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the 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 450 includes a pathway to transfer information between various components of the device, such as processor 410, memory 420, input/output interface 430, and communication interface 440.
It should be noted that although the above-mentioned device only shows the processor 410, the memory 420, the input/output interface 430, the communication interface 440 and the bus 450, 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. A personal health data storage method based on a blockchain, wherein each blockchain link point in a blockchain system comprises a storage node and an out-of-block node, and the method is applied to the blockchain system and comprises the following steps:
the storage node receives a business data storage request from user equipment, wherein the business data storage request comprises personal health data to be stored;
the storage node stores the personal health data to be stored, and sends a storage certificate to the user equipment after the storage is finished;
the storage node sends the storage certificate to the block outlet node;
the block-out node records the storage certificate in a block chain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the block chain after a preset time.
2. The method of claim 1, wherein the personal health data comprises one or more of physical metrics data, work and rest data, exercise data, physical examination data;
the body index data comprises one or more of height, weight, body fat rate, heart rate, respiration, blood pressure;
the work and rest data comprise one or more items of time for falling asleep, time for getting up, time for deep sleep, time for afternoon nap and diet data;
the motion data comprises one or more items of motion types, motion duration, motion intensity and motion places;
the physical examination data comprises one or more of physical examination time, physical examination place, physical examination type and physical examination report.
3. The method of claim 1, wherein the storage attestation includes an identification of storage nodes, a user identification, a data identification, a storage address, and a signature of the storage nodes, wherein the storage nodes include a specified number of storage nodes that are backups of each other, and further comprising:
the storage node receives a service data access request sent by user equipment, wherein the access request comprises a user identifier and/or a data identifier;
the storage node determines stored personal health data corresponding to the access request according to the user identification and/or the data identification;
the storage node sends the stored personal health data to the user device.
4. The method of claim 3, further comprising:
the block-out node receives an authenticity query request sent by the user equipment, wherein the authenticity query request comprises a user identifier and/or a data identifier;
the block outlet node inquires in the block chain according to the user identification and/or the data identification, and determines whether a corresponding uplink storage certificate exists;
and the block outlet node sends the query result to the user equipment.
5. The method of claim 1, further comprising:
and sending the reward points to the storage node corresponding to the uplink storage certificate based on the uplink storage certificate.
6. The method of claim 5, further comprising:
the user equipment sends a mortgage operation to the block chain link point, wherein the mortgage operation comprises a user identifier and a mortgage score;
the block link points allocate storage space for the users based on the mortgage credits.
7. The method of claim 1, further comprising:
the storage node periodically sends a storage attestation inquiry request to the block-out node;
and if the storage certificate is not recorded in the block chain by the out-block node within a specified time period, the storage certificate is sent to the out-block node again.
8. A blockchain-based personal health data storage device, wherein a blockchain link point in a blockchain system includes a storage node and an out-of-block node, the device being applied to the blockchain system, the device comprising:
the receiving module is used for receiving a business data storage request from user equipment, wherein the business data storage request comprises personal health data to be stored;
the storage module is used for storing the personal health data to be stored and sending a storage certificate to the user equipment after the storage is finished;
a sending module, configured to send the storage certificate to the egress node;
the recording module is used for recording the storage certification in a block chain, so that the user equipment confirms the stored authenticity of the personal health data to be stored through the block chain after a preset time.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-7.
CN201911325878.1A 2019-12-20 2019-12-20 Personal health data storage method and device based on block chain Pending CN111078706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911325878.1A CN111078706A (en) 2019-12-20 2019-12-20 Personal health data storage method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911325878.1A CN111078706A (en) 2019-12-20 2019-12-20 Personal health data storage method and device based on block chain

Publications (1)

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

Family

ID=70316206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911325878.1A Pending CN111078706A (en) 2019-12-20 2019-12-20 Personal health data storage method and device based on block chain

Country Status (1)

Country Link
CN (1) CN111078706A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111710422A (en) * 2020-06-04 2020-09-25 四川虹微技术有限公司 Identification code determination method and device, electronic equipment and readable storage medium
CN111899826A (en) * 2020-07-27 2020-11-06 深圳微控科技有限公司 Health data management method and device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111710422A (en) * 2020-06-04 2020-09-25 四川虹微技术有限公司 Identification code determination method and device, electronic equipment and readable storage medium
CN111710422B (en) * 2020-06-04 2024-01-26 四川虹微技术有限公司 Identification code determining method and device, electronic equipment and readable storage medium
CN111899826A (en) * 2020-07-27 2020-11-06 深圳微控科技有限公司 Health data management method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109981281B (en) Method and device for determining candidate elements based on block chain proposal random consensus
CN111078706A (en) Personal health data storage method and device based on block chain
US11533163B2 (en) Mining method and device based on blockchain, and computer readable storage medium
CN110278246B (en) Certificate storage service transfer method, device and equipment for alliance chain
CN111831641A (en) Traffic data storage method and device based on PBFT consensus
CN111831726A (en) Financial mortgage data storage method and device based on block chain
CN111831738A (en) Method and device for storing Internet recruitment data on block chain
CN111831669A (en) Method and device for storing internet voting data according to block chain
CN111831851A (en) Family monitoring data storage method and device based on PBFT consensus
CN111833051A (en) Physical mortgage data storage method and device based on PBFT consensus
CN111832063A (en) Personal health data storage method and device based on PBFT consensus
CN111831644A (en) Credit mortgage data storage method and device based on block chain
CN111831736A (en) Block chain-based physical mortgage data storage method and device
CN111831850A (en) Method and device for storing home monitoring data based on block chain
CN111832077A (en) Contract mortgage data storage method and device based on block chain
CN111831621A (en) Clothing data storage method and device based on block chain
CN111831727A (en) Traffic data storage method and device based on block chain
CN111831668A (en) Outdoor space detection data storage method and device based on block chain
CN111831728A (en) Medicine data storage method and device based on block chain
US20150180878A1 (en) Unauthorized user classification
CN111831646A (en) Cosmetic data storage method and device based on block chain
CN111831645A (en) Wine data storage method and device based on block chain
CN111046086A (en) Food data storage method and device based on block chain
CN111831672A (en) Furniture data storage method and device based on block chain
CN111831737A (en) Household appliance data storage method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication