Method for storing information, method, device, equipment and medium for obtaining information

By using blockchain technology to store and manage information in cloud storage sharing technology, the problems of low security of information interaction and large communication overhead in cloud storage sharing technology are solved, and the secure storage and management of information are realized.

CN113721833BActive Publication Date: 2025-03-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011348673.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2025-03-18
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In cloud storage sharing technology, information interaction through shared links has problems such as low security and large communication overhead.

Method used

Through blockchain technology, information is stored and managed, description information and information storage addresses are generated, and information sharing constraints are formulated, and this information is stored in the blockchain to achieve secure storage and management of information.

Benefits of technology

It improves information security, reduces the access pressure of servers, reduces the cost of data management, and realizes secure storage and management of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113721833B_ABST
    Figure CN113721833B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method for storing information, a method for obtaining information, an apparatus, a device and a medium. A specific implementation of the method for storing information includes: receiving a request for storing information, the request for storing information includes information to be shared; generating first description information and an information storage address according to the information to be shared, the first description information is used to describe the information content of the information to be shared; in response to generating the first description information, generating information sharing constraints corresponding to the first description information; storing the information sharing constraints, the first description information, and the information storage address in the blockchain; in response to receiving a confirmation signal of successful storage, sending a storage success message. This implementation realizes the secure storage of data and is conducive to data management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method for storing information, a method, apparatus, device, and medium for acquiring information. Background Art

[0002] Due to the explosive growth of user information, cloud storage sharing technology has become an important way of information exchange. However, there are great security issues in information exchange through shared links. This leads to the following problems in information exchange:

[0003] First, low security;

[0004] Second, a lot of communication overhead is required. Summary of the invention

[0005] The content of this disclosure is used to introduce concepts in a brief form, and these concepts will be described in detail in the specific implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution for which protection is sought, nor is it intended to limit the scope of the technical solution for which protection is sought. Some embodiments of the present disclosure propose a method for storing information, a method for obtaining information, an apparatus, a device, and a medium to solve the technical problems mentioned in the above background technology section.

[0006] In a first aspect, some embodiments of the present disclosure provide a method for storing information, the method comprising: receiving a request for storing information, the request for storing information comprising information to be shared; generating first description information and an information storage address according to the information to be shared, the first description information being used to describe the information content of the information to be shared; in response to generating the first description information, generating information sharing constraints corresponding to the first description information; storing the information sharing constraints, the first description information, and the information storage address in a blockchain; and in response to receiving a confirmation signal of successful storage, sending storage success information.

[0007] In a second aspect, some embodiments of the present disclosure provide a method for obtaining information, the method comprising: receiving a request for obtaining information, the request for obtaining information comprising second descriptive information and user attribute information, the second descriptive information being used to describe the request content of the request for obtaining information; querying the blockchain for first descriptive information corresponding to the second descriptive information; in response to querying the first descriptive information corresponding to the second descriptive information, matching the information sharing constraint conditions corresponding to the first descriptive information with the user attribute information; in response to receiving a signal of successful matching, querying the blockchain for an information storage address corresponding to the first descriptive information, and obtaining shared information based on the information storage address.

[0008] In a third aspect, some embodiments of the present disclosure provide a device for storing information, the device comprising: a first receiving unit, configured to receive a request for storing information, the request for storing information comprising information to be shared; a first generating unit, configured to generate first description information and an information storage address according to the information to be shared, the first description information being used to describe the information content of the information to be shared; a second generating unit, configured to generate information sharing constraints corresponding to the first description information in response to generating the first description information; a storage unit, configured to store the information sharing constraints, the first description information, and the information storage address in a blockchain; a sending unit, configured to send storage success information in response to receiving a confirmation signal of successful storage.

[0009] In a fourth aspect, some embodiments of the present disclosure provide a device for obtaining information, the device comprising: a second receiving unit, configured to receive a request for obtaining information, the request for obtaining information comprising second description information and user attribute information, the second description information being used to describe the request content of the request for obtaining information; a query unit, configured to query the blockchain for first description information corresponding to the second description information; a matching unit, configured to match the information sharing constraint condition corresponding to the first description information with the user attribute information in response to querying the first description information corresponding to the second description information; and an output unit, configured to query the blockchain for an information storage address corresponding to the first description information in response to receiving a signal of successful matching, and obtain shared information based on the information storage address.

[0010] In a fifth aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for storing information as in the first aspect or the method for obtaining information as in the second aspect.

[0011] In a sixth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for storing information as in the first aspect or the method for acquiring information as in the second aspect is implemented.

[0012] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the storage information method of some embodiments of the present disclosure, the secure storage of data is achieved, and it is beneficial to data management. Specifically, the inventors found that the reason why information cannot be stored securely is that most cloud storage sharing systems adopt a centralized management mode, that is, information is uniformly managed with the help of a central server, which easily causes excessive server access, and the centralized management mode is not conducive to the secure storage of data. Based on this, the storage information method of some embodiments of the present disclosure can store and manage data through blockchain, so that data is no longer centrally managed, which is beneficial to the secure storage of data. Moreover, the formulation of sharing constraints also reduces the high-frequency access pressure of the server, reduces the cost of data management, and is beneficial to data management. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0014] Figure 1 is a schematic diagram of an application scenario of the method for storing information according to the present disclosure;

[0015] Figure 2 is a schematic diagram of an application scenario of the method for obtaining information according to the present disclosure;

[0016] Figure 3 is a flow chart of some embodiments of a method for storing information according to the present disclosure;

[0017] Figure 4 is a flow chart of some embodiments of the method for obtaining information according to the present disclosure;

[0018] Figure 5 is a schematic diagram of the structure of some embodiments of the device for storing information according to the present disclosure;

[0019] Figure 6 is a schematic diagram of the structure of some embodiments of the device for acquiring information according to the present disclosure;

[0020] Figure 7 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0022] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0026] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0027] Figure 1 It is a schematic diagram of an application scenario of the method for storing information in some embodiments of the present disclosure.

[0028] exist Figure 1In the application scenario, the electronic device 101 receives a storage information request 102, which includes the information to be shared 103. The electronic device 101 generates an information storage address 104 and a first description information 105 (which may be ["management", "information"]) according to the information to be shared 103, and the first description information 105 is used to describe the information content of the information to be shared 103. In response to generating the first description information 105, the electronic device 101 generates an information sharing constraint 106 corresponding to the first description information 105 (which may be ["student", "teacher", "greater than or equal to 5 (yuan)"]). Other users need to meet at least one of the information sharing constraint conditions 106 to obtain the information to be shared 103. Then, the information sharing constraint conditions 106, the first description information 105, and the information storage address 104 are stored in the blockchain. In response to receiving a confirmation signal 107 of successful storage sent by other terminal devices, a storage success message 108 (which may be "successful storage") is sent to the device storing the information to be shared 103.

[0029] It should be understood that Figure 1 The number of electronic devices 101 in the embodiment is only for illustration. Any number of electronic devices 101 may be provided according to implementation requirements.

[0030] Figure 2 It is a schematic diagram of an application scenario of the method for obtaining information in some embodiments of the present disclosure.

[0031] exist Figure 2 In the application scenario of , the electronic device 201 receives the information acquisition request 203, which includes the second description information 204 (which may be "management") and the user attribute information 206 (which may be ["student", "10 (yuan)"]), and the second description information 204 is used to describe the request content of the information acquisition request 203. The electronic device 201 queries the first description information 205 (which may be ["management", "information"]) corresponding to the second description information 204 on the block 202. In response to the query of the first description information 205 corresponding to the second description information 204, the electronic device 201 matches the information sharing constraint 207 (which may be ["student", "teacher", "greater than or equal to 5 (yuan)"]) corresponding to the first description information 205 with the user attribute information 206. The "student" in the user attribute information 206 is included in the information sharing constraint 207, and the "10 (yuan)" in the user attribute information 206 satisfies the condition of "greater than or equal to 5 (yuan)" in the information sharing constraint 207. It can be seen that the user attribute information 206 meets the restriction condition in the information sharing constraint condition 207. In response to receiving a signal of successful matching, the information storage address 208 corresponding to the first description information 205 is queried on the blockchain, and the shared information 212 is obtained according to the information storage address 208.

[0032] It should be understood that Figure 2 The number of electronic devices 201 in the embodiment is only for illustration. Any number of electronic devices 201 may be provided according to implementation requirements.

[0033] Continue to refer Figure 3 , shows a process 300 of some embodiments of the method for storing information according to the present disclosure. The method for storing information includes the following steps:

[0034] Step 301: receiving a storage information request, where the storage information request includes information to be shared.

[0035] In some embodiments, the execution subject of the method of storing information (eg Figure 1 The electronic device 101 shown may receive the request for storing information via a wired connection or a wireless connection. It should be noted that the wireless connection may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future. As an example, the information to be shared may be information about text or information about images.

[0036] Step 302: Generate first description information and an information storage address according to the information to be shared, where the first description information is used to describe the information content of the information to be shared.

[0037] In some embodiments, the first description information and the information storage address are generated based on the information to be shared in the storage information request in step 301. As an example, the execution subject may store the information to be shared in the storage information request to a designated storage device A, and use the storage address returned by the storage device A as the information storage address. As an example, the first description information may be a summary of the content of the information to be shared (e.g., ["About information management"]).

[0038] In some optional implementations of some embodiments, generating the first description information according to the information to be shared includes: generating the first description information according to keywords in the information to be shared. As an example, the most frequently appearing words in the information to be shared can be used as keywords, and the keywords can be "management" and "information". The first description information can be keywords of the content to be obtained, such as ["management", "information"].

[0039] In some optional implementations of some embodiments, generating an information storage address according to the information to be shared includes: storing the information to be shared in a specified location, and obtaining the information storage address of the specified location. As an example, the specified location can be any specified server, and the information storage address is generated according to the storage location returned by the stored server.

[0040] Step 303: in response to generating the first description information, generate information sharing constraint conditions corresponding to the first description information.

[0041] In some embodiments, as an example, the information sharing constraint condition may be generated by the constraint condition pre-set by the execution subject, or the information sharing constraint condition may be generated by querying a table about the first description information and the information sharing constraint condition. As an example, the information sharing constraint condition may be the specified user identity information, the fee to be paid for obtaining the information, etc. As an example, the information sharing constraint condition may be ["student", "teacher", "greater than or equal to 5 (yuan)"].

[0042] In some optional implementations of some embodiments, before generating the information sharing constraint corresponding to the first description information, the method further includes: in response to receiving the storage information request, displaying a constraint selection interface, the constraint selection interface displays at least one shared user attribute and a shared reward input box, and the shared user attribute may include a user identity attribute. As an example, the shared user attribute displayed on the constraint selection interface is ["student", "teacher"].

[0043] In some optional implementations of some embodiments, generating the information sharing constraint corresponding to the first description information includes: in response to receiving at least one shared user attribute and shared remuneration of the corresponding constraint selection interface, encapsulating the at least one shared user attribute and shared remuneration into the information sharing constraint. As an example, the above-mentioned execution subject encapsulates the at least one shared user attribute and shared remuneration into the information sharing constraint ["student", "teacher", "greater than or equal to 5 (yuan)"] in response to receiving at least one shared user attribute ["student", "teacher", "greater than or equal to 5 (yuan)"] of the corresponding constraint selection interface.

[0044] Step 304: store the information sharing constraint, the first description information, and the information storage address in the blockchain.

[0045] In some embodiments, as an example, the information sharing constraints may include user identity information and the fee required to obtain the information (eg, ["student", "teacher", "greater than or equal to 5 (yuan)"]).

[0046] Step 305: In response to receiving a confirmation signal indicating successful storage, a storage success message is sent.

[0047] In some embodiments, as an example, the execution subject sends a storage success message "Stored successfully" in response to receiving a confirmation signal of successful storage.

[0048] Some embodiments of the present disclosure disclose a method for storing information, which realizes the secure storage of data and is conducive to data management. Specifically, the inventors found that the reason why information cannot be stored securely is that most cloud storage sharing systems adopt a centralized management mode, that is, information is uniformly managed with the help of a central server, which easily causes excessive server access, and the centralized management mode is not conducive to the secure storage of data. Based on this, the method for storing information in some embodiments of the present disclosure can store and manage data through blockchain, so that data is no longer centrally managed, which is conducive to the secure storage of data. In addition, the formulation of sharing constraints also reduces the high-frequency access pressure of the server, reduces the cost of data management, and is conducive to data management.

[0049] Further references Figure 4 , which shows a process 400 of another embodiment of a method for obtaining information. The process 400 of the method for obtaining information includes the following steps:

[0050] Step 401: Receive a request for obtaining information.

[0051] In some embodiments, the method for obtaining information is executed on an execution subject (eg, Figure 2 The electronic device 201 shown can receive the information acquisition request through a wired connection or a wireless connection, wherein the information acquisition request includes the second description information and the user attribute information, and the second description information is used to describe the request content of the information acquisition request. As an example, the second description information can be ["management"], and the user attribute information can be ["student"].

[0052] Step 402: query the blockchain for the first description information corresponding to the second description information.

[0053] In some embodiments, as an example, the first description information may be ["management", "information"], the second description information may be ["management"], and the first description information corresponding to the second description information is queried.

[0054] Step 403: In response to querying the first description information corresponding to the second description information, matching the information sharing constraint condition corresponding to the first description information with the user attribute information.

[0055] In some embodiments, user attribute information needs to satisfy at least one of the information sharing constraints in order to obtain information. As an example, the first description information may be ["management", "information"], and the second description information may be ["management"], in response to a query finding that the information content in the first description information includes the information content of the second description information. Then, the information sharing constraint corresponding to the first description information (such as ["student", "greater than or equal to 5 (yuan)"]) is matched with the user attribute information (such as ["student"]), and the information sharing constraint contains the user attribute information ["student"], so the match is successful.

[0056] In an optional implementation of some embodiments, the user attribute information includes local user attributes and user balance, the information sharing constraint includes at least one shared user attribute and a shared reward; and matching the information sharing constraint corresponding to the first description information with the user attribute information includes: matching the local user attribute with at least one shared user attribute; in response to the local user attribute successfully matching the at least one shared user attribute, matching the user balance with the shared reward. As an example, the local user attribute may be ["student"], and the user balance may be ["10 (yuan)"]. The at least one shared user attribute included in the information sharing constraint may be ["student", "teacher"], and the shared reward included in the information sharing constraint may be ["greater than or equal to 5 (yuan)"], so the information sharing constraint may be ["student", "teacher", "greater than or equal to 5 (yuan)"]. The local user attribute ["student"] is matched with at least one shared user attribute ["student", "teacher"]. In response to the successful matching of the local user attribute with at least one shared user attribute (at least one shared user attribute ["student", "teacher"] contains the local user attribute ["student"]), the user balance ["10 (yuan)"] is matched with the shared reward ["greater than or equal to 5 (yuan)"].

[0057] In some optional implementations of the embodiments, matching the user balance with the shared reward includes: settling the shared reward and the user balance. The execution subject may settle the user balance by subtracting the shared reward. For example, the user balance may be [“10 (yuan)”], the shared reward may be [“greater than or equal to 5 (yuan)”], and the final user balance is [“5 (yuan)”].

[0058] Step 404, in response to receiving a signal indicating successful matching, querying an information storage address corresponding to the first description information on the blockchain, and obtaining shared information according to the information storage address.

[0059] In some embodiments, the information storage address may be obtained by querying a table of information storage addresses corresponding to the first description information.

[0060] Some embodiments of the present disclosure disclose a method for obtaining information, which realizes the secure acquisition of data and reduces the number of visits to the server storing the data. Specifically, the inventors found that the reason why information cannot be stored securely and the server has too many visits is that most cloud storage sharing systems adopt a centralized management model, that is, information is managed uniformly with the help of a central server. Based on this, the method for obtaining information in some embodiments of the present disclosure can obtain data through blockchain, which is conducive to the secure acquisition of data. Moreover, the formulation of sharing constraints also reduces the high-frequency access pressure of the server, screens out some users who do not meet the sharing constraints, thereby reducing the access pressure on the server.

[0061] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a device for storing information. These device embodiments are similar to Figure 3 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0062] like Figure 5 As shown, the device 500 for storing information in some embodiments includes: a first receiving unit 501, a first generating unit 502, a second generating unit 503, a storage unit 504, and a sending unit 505. The receiving unit 501, the parsing unit 502, the information selecting unit 503 and the generating unit 504. Among them, the first receiving unit 501 is configured to receive a storage information request, and the storage information request includes the information to be shared; the first generating unit 502 is configured to generate first description information and an information storage address according to the information to be shared, and the first description information is used to describe the information content of the information to be shared; the second generating unit 503 is configured to generate information sharing constraints corresponding to the first description information in response to generating the first description information; the storage unit 504 is configured to store the information sharing constraints, the first description information, and the information storage address in the blockchain; the sending unit 505 is configured to send storage success information in response to receiving a confirmation signal of successful storage.

[0063] In an optional implementation of some embodiments, the first generating unit 502 is further configured to: generate first description information according to keywords in the information to be shared.

[0064] In an optional implementation of some embodiments, the first generating unit 502 is further configured to: store the information to be shared in a designated location, and obtain an information storage address of the designated location.

[0065] In an optional implementation of some embodiments, the storage information device 500 also includes: a display unit (not shown in the figure), which is configured to: in response to receiving a storage information request, display a constraint selection interface, the constraint selection interface displays at least one shared user attribute and a shared reward input box, and the shared user attributes include user identity attributes.

[0066] In an optional implementation of some embodiments, the second generating unit 503 is further configured to: in response to receiving at least one shared user attribute and shared remuneration corresponding to the constraint selection interface, encapsulate the at least one shared user attribute and shared remuneration into an information sharing constraint.

[0067] It is understood that the units described in the device 500 are similar to those described in the reference Figure 3 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be described in detail here.

[0068] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a device for obtaining information. These device embodiments are similar to Figure 4 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0069] like Figure 6 As shown, the device 600 for obtaining information in some embodiments includes: a second receiving unit 601, a query unit 602, a matching unit 603, and an output unit 604. Among them, the second receiving unit 601 is configured to receive a request for obtaining information, the request for obtaining information includes the second description information and the user attribute information, and the second description information is used to describe the request content of the request for obtaining information; the query unit 602 is configured to query the first description information corresponding to the second description information on the blockchain; the matching unit 603 is configured to match the information sharing constraint condition corresponding to the first description information with the user attribute information in response to querying the first description information corresponding to the second description information; the output unit 604 is configured to query the information storage address corresponding to the first description information on the blockchain in response to receiving a signal of successful matching, and obtain the shared information according to the information storage address.

[0070] In an optional implementation of some embodiments, the user attribute information includes local user attributes and user balance, the information sharing constraint includes at least one shared user attribute and shared remuneration; and the matching unit 603 is further configured to: match the local user attributes with at least one shared user attribute; in response to a successful match between the local user attributes and at least one shared user attribute, match the user balance with the shared remuneration.

[0071] In an optional implementation of some embodiments, the matching unit 603 is further configured to: settle the shared reward and the user balance.

[0072] It is understood that the units described in the device 600 are similar to those described in the reference Figure 4 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 600 and the units included therein, and will not be described in detail here.

[0073] Reference below Figure 7 , which shows an electronic device (eg, Figure 1 The electronic device 101 or Figure 2 The electronic devices in some embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0074] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0075] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0076] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0077] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0078] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0079] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: receives a request for storage information, the request for storage information includes information to be shared; generates first description information and an information storage address according to the information to be shared, the first description information is used to describe the information content of the information to be shared; in response to generating the first description information, generates information sharing constraints corresponding to the first description information; stores the information sharing constraints, the first description information, and the information storage address in the blockchain; in response to receiving a confirmation signal of successful storage, sends a storage success message.

[0080] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0082] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a first receiving unit, a first generating unit, a second generating unit, a storage unit, and a sending unit. The names of these units do not constitute limitations on the units themselves in some cases, for example, the first receiving unit may also be described as a "unit for receiving a storage information request".

[0083] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0084] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for storing information, comprising: receiving a storage information request, wherein the storage information request includes information to be shared; Generate first description information and an information storage address according to the information to be shared, wherein the first description information is used to describe the information content of the information to be shared; In response to generating the first description information, generating information sharing constraint conditions corresponding to the first description information, including: generating the information sharing constraint conditions by querying a table about the first description information and the information sharing constraint conditions; Storing the information sharing constraint, the first description information, and the information storage address in a blockchain; In response to receiving a confirmation signal indicating successful storage, storage success information is sent.

2. The method according to claim 1, wherein: The generating first description information according to the information to be shared includes: The first description information is generated according to keywords in the information to be shared.

3. The method according to claim 1, wherein: The step of generating an information storage address according to the information to be shared includes: The information to be shared is stored in a designated location, and an information storage address of the designated location is obtained.

4. The method according to claim 1, wherein: Before generating the information sharing constraint condition corresponding to the first description information, the method further includes: In response to receiving a storage information request, a constraint selection interface is displayed, wherein the constraint selection interface displays at least one shared user attribute and a shared reward input box, wherein the shared user attribute includes a user identity attribute.

5. The method according to claim 4, wherein: The generating of the information sharing constraint condition corresponding to the first description information includes: In response to receiving the at least one shared user attribute and the shared remuneration corresponding to the constraint selection interface, the at least one shared user attribute and the shared remuneration are packaged into an information sharing constraint.

6. A method for obtaining information, comprising: receiving an information acquisition request, the information acquisition request including second description information and user attribute information, the second description information being used to describe request content of the information acquisition request; Querying the blockchain for first description information corresponding to the second description information, wherein the first description information is generated according to the information to be shared; In response to querying the first description information corresponding to the second description information, matching the information sharing constraint condition corresponding to the first description information with the user attribute information, wherein the information sharing constraint condition is generated by querying a table of the first description information and the information sharing constraint condition; In response to receiving a signal indicating a successful match, an information storage address corresponding to the first description information is queried on the blockchain, and shared information is obtained according to the information storage address.

7. The method according to claim 6, wherein: The user attribute information includes local user attributes and user balance, and the information sharing constraint condition includes at least one shared user attribute and shared reward; as well as The matching the information sharing constraint condition corresponding to the first description information with the user attribute information includes: matching the local user attribute with the at least one shared user attribute; In response to the local user attribute being successfully matched with the at least one shared user attribute, the user balance is matched with the shared reward.

8. The method according to claim 7, wherein: The matching of the user balance with the shared reward includes: The shared reward and the user's balance are settled.

9. An information storage device, comprising: A first receiving unit is configured to receive a storage information request, wherein the storage information request includes information to be shared; A first generating unit is configured to generate first description information and an information storage address according to the information to be shared, wherein the first description information is used to describe the information content of the information to be shared; The second generating unit is configured to generate, in response to generating the first description information, an information sharing constraint condition corresponding to the first description information, including: generating the information sharing constraint condition by querying a table about the first description information and the information sharing constraint condition; A storage unit, configured to store the information sharing constraint, the first description information, and the information storage address in a blockchain; The sending unit is configured to send storage success information in response to receiving a confirmation signal of storage success.

10. An information acquisition device, comprising: A second receiving unit is configured to receive an information acquisition request, wherein the information acquisition request includes second description information and user attribute information, wherein the second description information is used to describe the request content of the information acquisition request; A query unit is configured to query the blockchain for first description information corresponding to the second description information, wherein the first description information is generated according to the information to be shared; a matching unit configured to, in response to querying the first description information corresponding to the second description information, match the information sharing constraint condition corresponding to the first description information with the user attribute information, wherein the information sharing constraint condition is generated by querying a table about the first description information and the information sharing constraint condition; The output unit is configured to query the information storage address corresponding to the first description information on the blockchain in response to receiving a signal indicating a successful match, and obtain the shared information according to the information storage address.

11. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5 or claims 6 to 8.

12. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 5 or claims 6 to 8 is implemented.

Citation Information

Patent Citations

  • A user authorization and data sharing access control method based on block chain

    CN108989357A

  • Data storage and recovery method, device and equipment based on block chain and medium

    CN110019235A

  • Data storage method based on block chain, terminal equipment and storage medium

    CN111950032A