CN108959280B - Method and device for storing virtual resource associated information - Google Patents

Method and device for storing virtual resource associated information Download PDF

Info

Publication number
CN108959280B
CN108959280B CN201710348446.7A CN201710348446A CN108959280B CN 108959280 B CN108959280 B CN 108959280B CN 201710348446 A CN201710348446 A CN 201710348446A CN 108959280 B CN108959280 B CN 108959280B
Authority
CN
China
Prior art keywords
virtual resource
associated information
information
resource associated
compressed file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710348446.7A
Other languages
Chinese (zh)
Other versions
CN108959280A (en
Inventor
刘童桐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710348446.7A priority Critical patent/CN108959280B/en
Publication of CN108959280A publication Critical patent/CN108959280A/en
Application granted granted Critical
Publication of CN108959280B publication Critical patent/CN108959280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a method and a device for storing virtual resource associated information, wherein the method comprises the steps of sending a request message for acquiring the virtual resource associated information to a server when a specified application program is determined to be started; receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information which accords with a preset screening rule in the first virtual resource associated information set to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user; and setting corresponding configuration information for inquiry aiming at the virtual resource compressed file, and storing the virtual resource compressed file and the corresponding configuration information. Therefore, the total amount of the virtual resource associated information needing to be stored and the occupied storage resources are reduced, the storage time is saved, and the processing efficiency of the whole process is improved.

Description

Method and device for storing virtual resource associated information
Technical Field
The present application relates to communications technologies, and in particular, to a method and an apparatus for storing virtual resource association information.
Background
With the development of internet technology, virtual resources (e.g., network virtual currency) are also widely used, and each user can trade virtual resources in a virtual world through a virtual resource application program (e.g., a desktop wallet), and transaction information (e.g., trade time, trade price) of all virtual resources in the entire network is recorded in a block chain in the network, where the block chain is a series of blocks associated by using a cryptographic method, and each block contains information of all virtual resource network transactions in the past ten minutes, so as to verify the validity of the information and generate the next block.
For example, the user purchases the corresponding goods in the network shopping mall by using the network virtual currency through the desktop wallet, and further, the virtual resource server records the transaction information of the transaction in the blockchain.
Further, in order to facilitate the user to perform operations such as transaction of virtual resources and query of transaction information, the virtual resource application program needs to locally store the acquired virtual resource association information; the virtual resource related information refers to transaction information (e.g., transaction time, transaction amount, total information transaction amount, transaction address, etc.) of the virtual resource recorded in the blockchain.
In the prior art, when a virtual resource application stores obtained virtual resource associated information, the following method is mainly adopted:
after the first installation is finished, all transaction information recorded in the whole block chain is directly downloaded and stored, and all transaction information in the block chain is synchronized when the block chain is started each time, so that the transaction information stored locally is updated.
However, with the increase of the transaction amount of the virtual resource, the transaction information recorded in the block chain is gradually increased, the transaction information obtained by the virtual resource application program through the synchronous block chain is correspondingly increased, and all the transaction information recorded in the whole block chain contains a large amount of unnecessary information (such as transaction records unrelated to the user or early historical transaction records of the user).
Disclosure of Invention
The embodiment of the application provides a method and a device for storing virtual resource associated information, which are used for screening and storing the obtained virtual resource associated information when the virtual resource associated information is locally stored, so that occupied storage resources are reduced, storage time is saved, and processing efficiency of the whole process is improved.
The embodiment of the application provides the following specific technical scheme:
a method of storing virtual resource association information, comprising:
when determining that the appointed application program is started, sending a request message for acquiring the associated information of the virtual resource to a server;
receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information which accords with a preset screening rule in the first virtual resource associated information set to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user;
and setting corresponding configuration information for inquiry aiming at the virtual resource compressed file, and storing the virtual resource compressed file and the corresponding configuration information.
Preferably, the compressing each piece of virtual resource associated information in the first set of virtual resource associated information that meets the preset filtering rule to obtain the virtual resource compressed file specifically includes:
transaction description information of a transaction corresponding to each piece of virtual resource associated information contained in the first virtual resource associated information set and block attribute information of a block corresponding to each piece of virtual resource associated information are respectively obtained, wherein the block is used for storing the virtual resource associated information of the transaction generated within a preset recording duration;
screening out all virtual resource associated information of which the transaction description information meets a preset transaction screening condition and the block attribute information meets the preset block screening condition;
and compressing the screened virtual resource associated information to obtain a virtual resource compressed file.
Preferably, the transaction description information at least includes any one or any combination of the following parameters: the network sending address, the network receiving address, the transaction time and the transaction amount, and the block attribute information at least comprises any one or any combination of the following parameters: the maximum information capacity of the block, the mine pool for generating the block, the generation difficulty coefficient of the block, and the statistic value of the virtual resource related information contained in the block.
Preferably, the configuration information at least includes any one or any combination of the following parameters: the file name of the virtual resource compressed file, the storage path of the virtual resource compressed file, the transaction description information of the virtual resource associated information contained in the virtual resource compressed file, and the block attribute information of the virtual resource associated information contained in the virtual resource compressed file.
Preferably, after storing the virtual resource compressed file and the corresponding configuration information, the method further includes:
acquiring a query condition input by a user;
screening out the virtual resource compressed files corresponding to the configuration information which meets the query condition from the configuration information corresponding to each locally stored virtual resource compressed file;
downloading and decompressing the screened virtual resource compressed file to obtain a second virtual resource associated information set;
and screening out the virtual resource associated information which meets the query condition from all the virtual resource associated information contained in the second virtual resource associated information set, and presenting the screened out virtual resource associated information to the user.
An apparatus for storing virtual resource association information, comprising:
the sending unit is used for sending a request message for acquiring the associated information of the virtual resource to the server when the specified application program is determined to be started;
the compression unit is used for receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information which accords with a preset screening rule in the first virtual resource associated information set to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user;
and the storage unit is used for setting corresponding configuration information for inquiry aiming at the virtual resource compressed file and storing the virtual resource compressed file and the corresponding configuration information.
Preferably, when compressing each piece of virtual resource associated information that meets a preset filtering rule in the first virtual resource associated information set to obtain a virtual resource compressed file, the compressing unit is specifically configured to:
transaction description information of a transaction corresponding to each piece of virtual resource associated information contained in the first virtual resource associated information set and block attribute information of a block corresponding to each piece of virtual resource associated information are respectively obtained, wherein the block is used for storing the virtual resource associated information of the transaction generated within a preset recording duration;
screening out all virtual resource associated information of which the transaction description information meets a preset transaction screening condition and the block attribute information meets the preset block screening condition;
and compressing the screened virtual resource associated information to obtain a virtual resource compressed file.
Preferably, the transaction description information at least includes any one or any combination of the following parameters: the network sending address, the network receiving address, the transaction time and the transaction amount, and the block attribute information at least comprises any one or any combination of the following parameters: the maximum information capacity of the block, the mine pool for generating the block, the generation difficulty coefficient of the block, and the statistic value of the virtual resource related information contained in the block.
Preferably, the configuration information at least includes any one or any combination of the following parameters: the file name of the virtual resource compressed file, the storage path of the virtual resource compressed file, the transaction description information of the virtual resource associated information contained in the virtual resource compressed file, and the block attribute information of the virtual resource associated information contained in the virtual resource compressed file.
Preferably, after storing the virtual resource compressed file and the corresponding configuration information, the storage unit is further configured to:
acquiring a query condition input by a user;
screening out the virtual resource compressed files corresponding to the configuration information which meets the query condition from the configuration information corresponding to each locally stored virtual resource compressed file;
downloading and decompressing the screened virtual resource compressed file to obtain a second virtual resource associated information set;
and screening out the virtual resource associated information which meets the query condition from all the virtual resource associated information contained in the second virtual resource associated information set, and presenting the screened out virtual resource associated information to the user.
In the embodiment of the application, when the appointed application program is determined to be started, a request message for acquiring the associated information of the virtual resource is sent to a server; receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information which accords with a preset screening rule in the first virtual resource associated information set to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user; and setting corresponding configuration information for inquiry aiming at the virtual resource compressed file, and storing the virtual resource compressed file and the corresponding configuration information. Therefore, the virtual resource associated information meeting the use requirements of the user is screened, so that the total amount of the virtual resource associated information needing to be stored is reduced, further, the screened virtual resource associated information is compressed, occupied storage resources are reduced, storage time is saved, and the processing efficiency of the whole process is improved.
Drawings
Fig. 1 is a flowchart of a method for storing virtual resource association information in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for storing virtual resource association information in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the present application.
In order to reduce occupied storage resources, save storage time and improve processing efficiency of the overall process when locally storing the virtual resource associated information, in the embodiment of the present application, a method for storing the virtual resource associated information is designed, the method includes screening, according to a preset screening rule, each piece of virtual resource associated information included in an acquired first virtual resource associated information set, compressing each piece of screened virtual resource associated information, and storing an obtained virtual resource compressed file and corresponding configuration information.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present application, a specific process for storing virtual resource association information is as follows:
step 100: and when the terminal determines that the specified application program is started, sending a request message for acquiring the associated information of the virtual resource to the server.
Specifically, when step 100 is executed, the following two ways may be adopted:
the first mode is as follows: and when the terminal determines that the appointed application program is started after first downloading, the terminal sends a request message for acquiring all the associated information of the virtual resources to the server.
In the first way, the designated application program is started after being downloaded for the first time, which indicates that no virtual resource associated information exists locally, and all the virtual resource associated information needs to be acquired from the server.
The second way is: and when the terminal determines that the specified application program is not started for the first time, sending a request message for acquiring the virtual resource associated information of the updated part to the server.
In the second mode, if the designated application program is not started for the first time, which indicates that the terminal locally stores a large amount of virtual resource associated information, only the updated part of the virtual resource associated information in the server needs to be acquired.
Step 110: the terminal receives a first virtual resource associated information set returned by the server based on the request message.
Step 120: and the terminal screens all the virtual resource associated information contained in the first virtual resource associated information set according to a preset screening rule.
Specifically, first, the terminal obtains transaction description information of a transaction corresponding to each piece of virtual resource associated information included in the first set of virtual resource associated information, and block attribute information of a block corresponding to each piece of virtual resource associated information, respectively.
The transaction description information at least comprises any one or any combination of the following parameters: network send address, network receive address, transaction time, and transaction amount.
For example, the network sending address, the network receiving address, the transaction time, and the transaction amount included in one piece of transaction description information are respectively: 172.13.25.14, 192.12.56.42, 2014.12.1510: 00, 100 bitcoins. The above transaction description information indicates that the user a has performed a transaction with the user B corresponding to the terminal B by transmitting a coin of 100 bits to the terminal B of 192.12.56.42 at 2014.12.1510: 00 through the terminal a of 172.13.25.14.
The block is used for storing virtual resource associated information of transactions generated in a preset recording duration, and the block attribute information of the block at least comprises any one or any combination of the following parameters: the maximum information capacity of the block, the mine pool for generating the block, the generation difficulty coefficient of the block, and the statistic value of the virtual resource related information contained in the block.
Then, the terminal screens out all the virtual resource associated information of which the transaction description information meets the preset transaction screening condition and the block attribute information meets the preset block screening condition.
The transaction screening condition can adopt any one or any combination of the following conditions:
condition 1: acquiring a source address set preset by a user, and determining that a network sending address of virtual resource associated information exists in the source address set.
Condition 2: acquiring a target address set preset by a user, and determining that a network receiving address of virtual resource associated information exists in the target address set.
Condition 3: and determining that the transaction time of the virtual resource related information is higher than the preset starting time and lower than the preset ending time.
For example, the preset start time is 2014.12.1510: 00 and the preset end time is 2014.12.1511: 00. And the terminal determines that the transaction time of the virtual resource related information is 2014.12.1510: 30, is higher than the preset starting time (2014.12.1510: 00) and is lower than the preset ending time (2014.12.1511: 00), and then the virtual resource related information is judged to meet the condition 3.
Condition 4: and determining that the transaction amount of the virtual resource associated information is higher than a first preset amount threshold value and lower than a second preset amount threshold value.
For example, the first preset dollar threshold value is 20 dollar bills, and the second preset dollar threshold value is 50 dollar bills. And the terminal determines that the transaction amount of one piece of virtual resource associated information is 35-bit currency, is higher than a first preset amount threshold value (20-bit currency) and is lower than a second preset amount threshold value (50-bit currency), and then the piece of virtual resource associated information is judged to be in accordance with the condition 4.
The block screening condition can adopt any one or any combination of the following conditions:
condition 1): determining that the maximum information capacity of a block corresponding to one piece of virtual resource associated information is higher than a first preset capacity threshold value and lower than a second preset capacity threshold value.
For example, the first preset capacity threshold is 150, and the second preset capacity threshold is 190. The terminal determines that the maximum information capacity of a block corresponding to a piece of virtual resource associated information is 160, is higher than a first preset capacity threshold (150) and is lower than a second preset capacity threshold (190), and then determines that the piece of virtual resource associated information meets condition 1).
Condition 2): and acquiring a local mine pool set preset by a user, and determining that the mine pool of the block generating the virtual resource associated information exists in the local mine pool set.
For example, the mine pools included in the local mine pool set a preset by the user are respectively: ckpool, fish pond F2Pool, and bw. And the terminal determines that the mine pool ckpool of the block generating the virtual resource associated information exists in the local mine pool set A, and then judges that the virtual resource associated information meets the condition 2).
Condition 3): and determining that the generation difficulty coefficient of the block corresponding to the virtual resource association information is higher than a first coefficient threshold value and lower than a second coefficient threshold value.
Condition 4): and determining that the statistical value of the virtual resource associated information contained in the block corresponding to one piece of virtual resource associated information is higher than a first preset statistical threshold value and lower than a second preset statistical threshold value.
For example, the first preset statistical threshold is 50, and the second preset statistical threshold is 120. The terminal determines that a block corresponding to one piece of resource associated information includes 80 pieces of virtual resource associated information, that is, if the statistical value is 80, which is higher than a first preset statistical threshold value (50) and lower than a second preset statistical threshold value (120), it determines that the one piece of resource associated information meets condition 4.
Therefore, the virtual resource associated information which meets the use requirements of the user can be screened out, and the virtual resource associated information which needs to be stored is greatly reduced.
Step 130: and the terminal compresses the screened virtual resource associated information to obtain a virtual resource compressed file.
Specifically, the terminal may use a lossless compression algorithm (e.g., huffman algorithm) to compress the screened associated information of each virtual resource, so as to obtain a compressed file of the virtual resource.
For example, the storage resource occupied by each piece of screened virtual resource-related information is 10Mb, the terminal compresses the virtual resource-related information by using the huffman algorithm, and the size of the obtained virtual resource compressed file is 3 Mb.
Therefore, the virtual resource associated information is compressed, so that the occupied storage resources are greatly reduced, the storage time is saved, and the storage efficiency is improved.
Step 140: and the terminal sets corresponding configuration information for inquiry aiming at the acquired virtual resource compressed file.
Specifically, when step 140 is executed, the configuration information at least includes any one or any combination of the following parameters:
the file name of the virtual resource compressed file, the storage path of the virtual resource compressed file, the transaction description information of the virtual resource associated information contained in the virtual resource compressed file, and the block attribute information of the virtual resource associated information contained in the virtual resource compressed file.
When setting the corresponding configuration information for querying for the obtained compressed file of the virtual resource, any one or any combination of the following modes can be adopted:
mode 1: and acquiring a file name and a file storage path corresponding to the virtual resource compressed file, and setting the file name and the file storage path as corresponding configuration information.
Mode 2: and acquiring a transaction source address set based on each network transmission address of the virtual resource associated information contained in the virtual resource compressed file, and setting the transaction source address set as corresponding configuration information.
Mode 3: and acquiring a transaction target address set based on each network receiving address of the virtual resource associated information contained in the virtual resource compressed file, and setting the transaction target address set as corresponding configuration information.
Mode 4: determining the minimum value of each transaction time of the virtual resource associated information contained in the virtual resource compressed file as the minimum starting time, determining the maximum value of each transaction time corresponding to the virtual resource associated information contained in the virtual resource compressed file as the maximum ending time, and setting the obtained minimum starting time and the obtained maximum ending time as corresponding configuration information.
Mode 5: and determining the minimum value of the transaction amounts of the virtual resource associated information contained in the virtual resource compressed file as the minimum transaction amount, determining the maximum value of the transaction amounts of the virtual resource associated information contained in the virtual resource compressed file as the maximum transaction amount, and setting the obtained minimum transaction amount and the obtained maximum transaction amount as corresponding configuration information.
Mode 6: and acquiring a block capacity set based on each maximum information capacity of the blocks corresponding to the virtual resource association information contained in the virtual resource compressed file, and aggregating the acquired block capacities into corresponding configuration information.
Mode 7: and acquiring a configured mine pool set based on each mine pool corresponding to the virtual resource association information contained in the virtual resource compressed file, and taking the acquired configured mine pool set as corresponding configuration information.
Mode 8: determining the minimum value of the generation difficulty coefficients of all blocks corresponding to the virtual resource associated information contained in the virtual resource compressed file as the minimum difficulty coefficient, determining the maximum value of the generation difficulty coefficients of all blocks corresponding to the virtual resource associated information contained in the virtual resource compressed file as the maximum difficulty coefficient, and taking the obtained minimum difficulty coefficient and the obtained maximum difficulty coefficient as corresponding configuration information;
mode 9: determining the minimum value of the statistical values of the blocks corresponding to the virtual resource associated information contained in the virtual resource compressed file as the minimum statistical value, determining the maximum value of the statistical values of the blocks corresponding to the virtual resource associated information contained in the virtual resource compressed file as the maximum statistical value, and taking the obtained minimum statistical value and the obtained maximum statistical value as the corresponding configuration information.
Step 150: and the terminal stores the obtained virtual resource compressed file and corresponding configuration information.
Specifically, the terminal stores the obtained virtual resource compressed file and the corresponding configuration information locally.
Further, if the user needs to query the relevant information of the transaction of the virtual resource performed in the virtual world, the query may be performed locally in the following manner:
first, a user inputs a query condition in a designated application.
For example, the query conditions are: the transaction amount is 200 bitcoins.
As another example, the query conditions are: the transaction time was 2015.12.151: 00.
As another example, the query conditions are: the pond is a fish pond F2 Pool.
As another example, the query conditions are: the maximum information capacity is 300.
Then, the terminal acquires the query condition of the user, screens out the configuration information meeting the query condition from the configuration information of the locally stored virtual resource compressed file, downloads and decompresses the corresponding virtual resource compressed file, and acquires a second virtual resource associated information set.
And finally, screening out the virtual resource associated information which meets the query condition from all the virtual resource associated information contained in the second virtual resource associated information set by the terminal, and presenting the screened out virtual resource associated information to the user.
For example, the query conditions obtained by the terminal are: the network send address is 172.13.25.14 and the network receive address is 192.12.56.42. The terminal first obtains the source address set 1 and the destination address set 1 contained in the configuration information 11, the source address set 2 and the destination address set 2 contained in the configuration information 12, and the source address set 3 and the destination address set 3 contained in the configuration information 13.
Then, the terminal determines 172.13.25.14 existing in the destination address set 2 and the source address set 3, and 192.12.56.42 existing in the destination address set 3, determines that the virtual resource compressed file 13 corresponding to the configuration information 13 meets the query condition, downloads and decompresses the virtual resource compressed file 13, and obtains the corresponding virtual resource associated information set 13.
Finally, the terminal screens out the network sending address 172.13.25.14 in the virtual resource associated information set 13, and the network receives the virtual resource associated information 23 with the address 192.12.56.42, and presents the virtual resource associated information 23 to the user.
Therefore, a user can screen out the virtual resource compressed file meeting the query condition through each configuration information, and obtain the queried virtual resource associated information through the screened virtual resource compressed file, and further, the terminal can also directly obtain the corresponding virtual resource associated information through the network.
The above embodiments are further described in detail below using a specific application scenario.
Firstly, the transaction description information preset by the user contains the following parameters: a preset start time (2017.01.01), a preset end time (2017.01.05), a first preset dollar threshold (20 bit dollars), and a second preset dollar threshold (50 bit dollars), and the tile attribute information is set to include the following parameters: a first predetermined capacity threshold (110), and a second predetermined capacity threshold (200).
And the terminal determines that the appointed application program (desktop wallet) is started, and determines that the starting mode is started after first downloading, and then sends a request message for acquiring all the associated information of the virtual resources to the server.
Then, the terminal receives the first virtual resource related information set returned by the server based on the request message. The first virtual resource associated information set includes virtual resource associated information 1, virtual resource associated information 2, virtual resource associated information 3, virtual resource associated information 4, and virtual resource associated information 5.
The transaction time, the transaction amount and the maximum information capacity of the virtual resource associated information 1 are respectively as follows: 2017.01.02, 90 bitcoin, 150. The transaction time, the transaction amount and the maximum information capacity of the virtual resource associated information 2 are respectively as follows: 2017.01.02, 25 bite, 153. The transaction time, the transaction amount and the maximum information capacity of the virtual resource associated information 3 are respectively as follows: 2017.01.03, 30 bit coins, 160. The transaction time, the transaction amount and the maximum information capacity of the virtual resource associated information 4 are respectively as follows: 2017.01.05, 35 bit currency, 170. The transaction time, the transaction amount and the maximum information capacity of the virtual resource associated information 5 are respectively as follows: 2017.02.01, 40 bit coins, 160.
And then, the terminal screens each piece of virtual resource associated information contained in the first virtual resource associated information set according to a preset screening rule. And the terminal determines that the transaction amount of the virtual resource associated information 1 is 90 bitcoins and is higher than a second preset amount threshold value (50 bitcoins), and then the virtual resource associated information 1 is removed. And the terminal determines that the transaction time of the virtual resource associated information 5 is 2017.02.01 and is higher than the preset termination time (2017.01.05), and removes the virtual resource associated information 5. The terminal determines that the virtual resource associated information 2, the virtual resource associated information 3 and the virtual resource associated information 4 all accord with a preset screening rule.
Then, the terminal compresses the virtual resource associated information 2, the virtual resource associated information 3, and the virtual resource associated information 4 that meet the preset screening rule, to obtain a virtual resource compressed file 121.
Next, the terminal determines that the file name of the virtual resource compressed file 121 is the virtual resource compressed file 121, the storage path is "sdcard/document", the minimum start time is 2017.01.02, the maximum end time is 2017.01.05, the minimum transaction amount is 25-bit coins, the maximum transaction amount is 35-bit coins, and the chunk capacity set includes 153, 160, and 170 as the configuration information 121.
Finally, the terminal stores the virtual resource compression file 121 and the configuration information 121.
Assuming that the user inputs the query condition of 30-bit currency of transaction amount to query the corresponding virtual resource associated information, the terminal performs query in each configuration information based on the query condition (30-bit currency of transaction amount), determines that the minimum transaction amount in the configuration information 121 is 25-bit currency and the maximum transaction amount is 35-bit currency, and meets the query condition (30-bit currency of transaction amount).
Then, the terminal downloads and decompresses the virtual resource compressed file 121 corresponding to the configuration information 121 to obtain a virtual resource related information set 121, and screens out virtual resource related information 3 with a transaction amount of 30-bit money from each piece of virtual resource related information included in the virtual resource related information set 121.
Finally, the terminal presents the virtual resource associated information 3 to the user.
Based on the foregoing embodiment, referring to fig. 2, a schematic structural diagram of an apparatus for storing virtual resource associated information is shown, in an embodiment of the present application, the apparatus for storing virtual resource associated information specifically includes:
a sending unit 20, configured to send a request message for obtaining virtual resource association information to a server when it is determined that a specified application program is started;
the compression unit 21 is configured to receive a first virtual resource association information set returned by the server based on the request message, and compress each piece of virtual resource association information in the first virtual resource association information set, which meets a preset screening rule, to obtain a virtual resource compression file, where the screening rule is used to represent a user requirement of a user;
the storage unit 22 is configured to set, for the virtual resource compressed file, corresponding configuration information for querying, and store the virtual resource compressed file and the corresponding configuration information.
Preferably, when compressing each piece of virtual resource associated information in the first virtual resource associated information set that meets the preset filtering rule to obtain the virtual resource compressed file, the compressing unit 21 is specifically configured to:
transaction description information of a transaction corresponding to each piece of virtual resource associated information contained in the first virtual resource associated information set and block attribute information of a block corresponding to each piece of virtual resource associated information are respectively obtained, wherein the block is used for storing the virtual resource associated information of the transaction generated within a preset recording duration;
screening out all virtual resource associated information of which the transaction description information meets a preset transaction screening condition and the block attribute information meets the preset block screening condition;
and compressing the screened virtual resource associated information to obtain a virtual resource compressed file.
Preferably, the transaction description information at least includes any one or any combination of the following parameters: the network sending address, the network receiving address, the transaction time and the transaction amount, and the block attribute information at least comprises any one or any combination of the following parameters: the maximum information capacity of the block, the mine pool for generating the block, the generation difficulty coefficient of the block, and the statistic value of the virtual resource related information contained in the block.
Preferably, the configuration information at least includes any one or any combination of the following parameters: the file name of the virtual resource compressed file, the storage path of the virtual resource compressed file, the transaction description information of the virtual resource associated information contained in the virtual resource compressed file, and the block attribute information of the virtual resource associated information contained in the virtual resource compressed file.
Preferably, after storing the virtual resource compression file and the corresponding configuration information, the storage unit 22 is further configured to:
acquiring a query condition input by a user;
screening out the virtual resource compressed files corresponding to the configuration information which meets the query condition from the configuration information corresponding to each locally stored virtual resource compressed file;
downloading and decompressing the screened virtual resource compressed file to obtain a second virtual resource associated information set;
and screening out the virtual resource associated information which meets the query condition from all the virtual resource associated information contained in the second virtual resource associated information set, and presenting the screened out virtual resource associated information to the user.
In the embodiment of the application, when the appointed application program is determined to be started, a request message for acquiring the associated information of the virtual resource is sent to a server; receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information which accords with a preset screening rule in the first virtual resource associated information set to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user; and setting corresponding configuration information for inquiry aiming at the virtual resource compressed file, and storing the virtual resource compressed file and the corresponding configuration information. Therefore, the virtual resource associated information meeting the use requirements of the user is screened, so that the total amount of the virtual resource associated information needing to be stored is reduced, further, the screened virtual resource associated information is compressed, occupied storage resources are reduced, storage time is saved, and the processing efficiency of the whole process is improved.
As will be appreciated by one of skill in the art, the embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include such modifications and variations.

Claims (8)

1. A method for storing virtual resource association information, comprising:
when determining that the appointed application program is started, sending a request message for acquiring the associated information of the virtual resource to a server;
receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information in the first virtual resource associated information set, which accords with a preset screening rule, to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user;
setting corresponding configuration information for inquiry aiming at the virtual resource compressed file, and storing the virtual resource compressed file and the corresponding configuration information, wherein the configuration information comprises transaction description information of virtual resource associated information in the virtual resource compressed file and block attribute information of the virtual resource associated information in the virtual resource compressed file;
acquiring a query condition input by a user; screening out the virtual resource compressed files corresponding to the configuration information which accords with the query condition from the configuration information corresponding to each locally stored virtual resource compressed file; downloading and decompressing the screened virtual resource compressed file to obtain a second virtual resource associated information set; and screening out the virtual resource associated information which meets the query condition from all the virtual resource associated information contained in the second virtual resource associated information set, and presenting the screened out virtual resource associated information to the user.
2. The method according to claim 1, wherein compressing each piece of virtual resource associated information that meets a preset filtering rule in the first set of virtual resource associated information to obtain a virtual resource compressed file specifically comprises:
transaction description information of a transaction corresponding to each piece of virtual resource associated information contained in the first virtual resource associated information set and block attribute information of a block corresponding to each piece of virtual resource associated information are respectively obtained, wherein the block is used for storing the virtual resource associated information of the transaction generated within a preset recording duration;
screening out all virtual resource associated information of which the transaction description information meets a preset transaction screening condition and the block attribute information meets the preset block screening condition;
and compressing the screened virtual resource associated information to obtain a virtual resource compressed file.
3. The method of claim 2, wherein the transaction description information comprises at least any one or any combination of the following parameters: the network sending address, the network receiving address, the transaction time and the transaction amount, and the block attribute information at least comprises any one or any combination of the following parameters: the maximum information capacity of the block, the mine pool for generating the block, the generation difficulty coefficient of the block, and the statistic value of the virtual resource related information contained in the block.
4. The method of claim 2, wherein the configuration information at least comprises any one or any combination of the following parameters: the file name of the virtual resource compressed file, the storage path of the virtual resource compressed file, the transaction description information of the virtual resource associated information contained in the virtual resource compressed file, and the block attribute information of the virtual resource associated information contained in the virtual resource compressed file.
5. An apparatus for storing virtual resource association information, comprising:
the sending unit is used for sending a request message for acquiring the associated information of the virtual resource to the server when the specified application program is determined to be started;
the compression unit is used for receiving a first virtual resource associated information set returned by the server based on the request message, and compressing each piece of virtual resource associated information in the first virtual resource associated information set, which meets a preset screening rule, to obtain a virtual resource compressed file, wherein the screening rule is used for representing the use requirement of a user;
the storage unit is used for setting corresponding configuration information for inquiry aiming at the virtual resource compressed file and storing the virtual resource compressed file and the corresponding configuration information, wherein the configuration information comprises transaction description information of virtual resource associated information in the virtual resource compressed file and block attribute information of the virtual resource associated information in the virtual resource compressed file;
the storage unit is further configured to: acquiring a query condition input by a user; screening out the virtual resource compressed files corresponding to the configuration information which accords with the query condition from the configuration information corresponding to each locally stored virtual resource compressed file; downloading and decompressing the screened virtual resource compressed file to obtain a second virtual resource associated information set; and screening out the virtual resource associated information which meets the query condition from all the virtual resource associated information contained in the second virtual resource associated information set, and presenting the screened out virtual resource associated information to the user.
6. The apparatus according to claim 5, wherein when compressing each piece of virtual resource associated information that meets a preset filtering rule in the first set of virtual resource associated information to obtain a virtual resource compressed file, the compressing unit is specifically configured to:
transaction description information of a transaction corresponding to each piece of virtual resource associated information contained in the first virtual resource associated information set and block attribute information of a block corresponding to each piece of virtual resource associated information are respectively obtained, wherein the block is used for storing the virtual resource associated information of the transaction generated within a preset recording duration;
screening out all virtual resource associated information of which the transaction description information meets a preset transaction screening condition and the block attribute information meets the preset block screening condition;
and compressing the screened virtual resource associated information to obtain a virtual resource compressed file.
7. The apparatus of claim 6, wherein the transaction description information comprises at least any one or any combination of the following parameters: the network sending address, the network receiving address, the transaction time and the transaction amount, and the block attribute information at least comprises any one or any combination of the following parameters: the maximum information capacity of the block, the mine pool for generating the block, the generation difficulty coefficient of the block, and the statistic value of the virtual resource related information contained in the block.
8. The apparatus of claim 6, wherein the configuration information at least comprises any one or any combination of the following parameters: the file name of the virtual resource compressed file, the storage path of the virtual resource compressed file, the transaction description information of the virtual resource associated information contained in the virtual resource compressed file, and the block attribute information of the virtual resource associated information contained in the virtual resource compressed file.
CN201710348446.7A 2017-05-17 2017-05-17 Method and device for storing virtual resource associated information Active CN108959280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710348446.7A CN108959280B (en) 2017-05-17 2017-05-17 Method and device for storing virtual resource associated information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710348446.7A CN108959280B (en) 2017-05-17 2017-05-17 Method and device for storing virtual resource associated information

Publications (2)

Publication Number Publication Date
CN108959280A CN108959280A (en) 2018-12-07
CN108959280B true CN108959280B (en) 2021-08-06

Family

ID=64461901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710348446.7A Active CN108959280B (en) 2017-05-17 2017-05-17 Method and device for storing virtual resource associated information

Country Status (1)

Country Link
CN (1) CN108959280B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105741095A (en) * 2016-01-29 2016-07-06 彭军红 Dynamic compression and access method of block chain
CN106357405A (en) * 2016-09-19 2017-01-25 弗洛格(武汉)信息科技有限公司 Method and system for managing data on basis of block chain technology consistency algorithms
CN106452785A (en) * 2016-09-29 2017-02-22 财付通支付科技有限公司 Block chain network, branch node and block chain network application method
CN106485495A (en) * 2016-09-18 2017-03-08 江苏通付盾科技有限公司 Transaction Information method for subscribing, device, server and system
CN106598579A (en) * 2016-12-06 2017-04-26 北京果仁宝科技有限公司 Method and device for integrating dynamic type programming language on block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1704484A2 (en) * 2003-12-30 2006-09-27 SanDisk Corporation Non-volatile memory and method with non-sequential update block management
KR101637868B1 (en) * 2016-02-22 2016-07-08 주식회사 코인플러그 Financial institution document verification system that is based on the block chain
CN105630609B (en) * 2016-02-24 2021-05-11 杭州复杂美科技有限公司 Block chain packing storage method
CN106326641A (en) * 2016-08-13 2017-01-11 深圳市樊溪电子有限公司 Data processing method for block chain system based on compressed sensing and sparse reconstruction algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105741095A (en) * 2016-01-29 2016-07-06 彭军红 Dynamic compression and access method of block chain
CN106485495A (en) * 2016-09-18 2017-03-08 江苏通付盾科技有限公司 Transaction Information method for subscribing, device, server and system
CN106357405A (en) * 2016-09-19 2017-01-25 弗洛格(武汉)信息科技有限公司 Method and system for managing data on basis of block chain technology consistency algorithms
CN106452785A (en) * 2016-09-29 2017-02-22 财付通支付科技有限公司 Block chain network, branch node and block chain network application method
CN106598579A (en) * 2016-12-06 2017-04-26 北京果仁宝科技有限公司 Method and device for integrating dynamic type programming language on block chain

Also Published As

Publication number Publication date
CN108959280A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN100555431C (en) For protecting a plurality of copy embed watermarks of a signal
CN105049287A (en) Log processing method and log processing devices
CN105741095A (en) Dynamic compression and access method of block chain
CN108184170B (en) Data processing method and device
CN106874348A (en) File is stored and the method for indexing means, device and reading file
US20200301944A1 (en) Method and apparatus for storing off-chain data
CN109361772A (en) File uploading method and device in a kind of distributed objects storage system
JPWO2019038839A1 (en) Blockchain management device, blockchain management method and program
CN112165331A (en) Data compression method and device, data decompression method and device, storage medium and electronic equipment
WO2021027252A1 (en) Data storage method and apparatus in block chain-type account book, and device
CN112784112A (en) Message checking method and device
CN108959280B (en) Method and device for storing virtual resource associated information
CN111210826B (en) Voice information processing method and device, storage medium and intelligent terminal
CN105184559A (en) System and method for payment
CN110413226B (en) Storage pooling capacity utilization method, system, electronic equipment and storage medium
CN106934708B (en) Event recording method and device
CN110958212B (en) Data compression method, data decompression method, device and equipment
CN115150413B (en) Block chain data storage method and device, electronic equipment and storage medium
CN111414339A (en) File processing method, system, device, equipment and medium
CN107783990B (en) Data compression method and terminal
CN109783559B (en) Method and device for acquiring real estate transaction data, electronic equipment and storage medium
CN113177843A (en) Cross-bank loan service processing method and device based on block chain
CN113515716A (en) Target pattern matching system and method with privacy protection function
CN112508571A (en) Data processing method and device based on block chain, computer equipment and storage medium
CN106920083B (en) Service implementation method, payment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant