Trusted search method, framework, equipment, storage medium and product

By introducing a decentralized search method into the search engine and using public ledgers and smart contracts to process search requests and results, the problem of user privacy leakage is solved and higher privacy protection and search data security are achieved.

CN119357215APending Publication Date: 2025-01-24CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411603784.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

When users use services, existing search engines will collect information such as user search content, search records, search habits, etc., resulting in user privacy leakage.

Method used

By responding to the client's search request, obtain the target index structure sent by the development module and the smart contract stored in the public ledger, determine the keywords and search fee payment request based on the search request, deduct the search fee through the public ledger, execute the smart contract to generate search results and Send to the public ledger to achieve decentralized search.

Benefits of technology

Avoid the problem of user privacy leaks, and process search data through decentralized methods to improve the protection of user privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119357215A_ABST
    Figure CN119357215A_ABST
Patent Text Reader

Abstract

The invention discloses a trusted search method, a frame, equipment, a storage medium and a product, and relates to the technical field of block chains and security. Obtaining a target index structure which is sent by the development module and stored in a personal data space in the data space and a smart contract stored in a public account book; based on the search request, determining a keyword for search and a search fee payment request, and forwarding the search fee payment request to the public account book, so that the public account book deducts corresponding search fee from a user account corresponding to the client based on the search fee payment request; and in response to feedback information sent by the public account book after the deduction operation, inputting the keyword and the target index structure into the smart contract and executing the smart contract to obtain a search result, and sending the search result to the public account book. The problem of privacy leakage of the user can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain and security technology, and in particular to a trusted search method, framework, device, storage medium and product. Background Art

[0002] With the continuous development of information technology and the increasing popularity of various digital terminal devices, the information on the Internet has shown an explosive growth. Since the information on the Internet is scattered and has no unified and fixed structure, how to obtain useful information from the rapidly growing mass data has become a major problem for users.

[0003] In the related technology, general search engines adopt a centralized search engine solution. However, as long as users use the services provided by the search engine solution, the search content, search history, search habits and other related information of the users will be continuously collected. All of this information may involve the privacy information of the users, causing the privacy leakage of the users. Summary of the invention

[0004] The main purpose of this application is to provide a trusted search method, which aims to solve the technical problem that as long as the user uses the service provided by the search engine solution, the user's search content, search history, search habits and other related information will be continuously collected, and this information may involve the user's privacy information, causing the user's privacy to be leaked.

[0005] To achieve the above objectives, the present application proposes a trusted search method, which includes:

[0006] In response to a search request from a client, obtaining a target index structure of a personal data space stored in a data space and a smart contract stored in a public ledger sent by a development module;

[0007] Determine keywords for search and a search fee payment request based on the search request, and forward the search fee payment request to the public ledger, so that the public ledger deducts the corresponding search fee from the user account corresponding to the client based on the search fee payment request;

[0008] In response to feedback information sent by the public ledger after the deduction operation, the keyword and the target index structure are input into the smart contract and the smart contract is executed to obtain search results, and the search results are sent to the public ledger.

[0009] In one embodiment, the search results include an advertisement website, and the step of inputting the keyword and the target index structure into the smart contract and executing the smart contract in response to the feedback information sent by the public ledger after the deduction operation to obtain the search results, and sending the search results to the public ledger includes:

[0010] Sending the search results to the public ledger, so that the public ledger returns the search results to the client, so that the client displays the search results;

[0011] In response to a click operation on the advertising URL in the search results, the number of clicks is recorded and sent to the public ledger, so that the public ledger determines a deduction amount from a deposit amount based on the number of clicks, and transfers the deduction amount to the user account, wherein the deposit amount is the deposit amount pre-deposited by the advertiser corresponding to the advertising URL.

[0012] In one embodiment, in response to feedback information sent by the public ledger after the deduction operation, the step of inputting the keyword and the target index structure into the smart contract and executing the smart contract to obtain search results, and sending the search results to the public ledger includes:

[0013] Based on the keyword and the retrieval algorithm in the smart contract, determine the target index in the target index structure corresponding to the keyword, wherein the target index includes a website address;

[0014] Sorting the URLs using the sorting algorithm in the smart contract to obtain the sorted URLs;

[0015] Through the deduplication algorithm in the smart contract, similarity calculation is performed on all the sorted URLs, and the URLs whose similarity exceeds a threshold and whose sorting exceeds a preset ranking range are deleted to obtain the deleted URLs, and the search results are determined based on the URLs.

[0016] In one embodiment, after the step of determining the target index in the target index structure corresponding to the keyword based on the keyword and the retrieval algorithm in the smart contract, the step further includes:

[0017] Determine the developer account corresponding to the personal data space;

[0018] Based on the developer account, generate an index payment request;

[0019] The index payment request is sent to the public account, so that the public account pays the index amount corresponding to the developer account based on the index payment request.

[0020] In one embodiment, the step of sorting the URLs by the sorting algorithm in the smart contract to obtain the sorted URLs includes:

[0021] Calculate and obtain the reference score of the web page corresponding to each URL in the target index;

[0022] Calculate and obtain a creation time score of the webpage;

[0023] Calculate the position score of the keyword;

[0024] Calculate the influence score of the webpage;

[0025] Calculate the deposit score of the webpage;

[0026] Determine a comprehensive score for each of the web pages based on the citation score, the creation time score, the location score, the influence score, and the deposit score;

[0027] Based on the comprehensive scores, the URLs corresponding to the web pages are sorted to obtain the sorted URLs.

[0028] In addition, to achieve the above purpose, the present application also proposes a trusted search method, which includes:

[0029] Obtaining the index structure constructed by the developer and the advertiser and the deposit request submitted by the advertiser;

[0030] Sending the deposit request to a public ledger, so that the public ledger determines a deposit amount based on the deposit request, and adds the deposit amount to an advertiser account corresponding to the advertiser;

[0031] The index structure is sent to a corresponding personal data space in the data space so that the personal data space can score the index structure, and the index structure whose score exceeds a preset threshold is determined as a target index structure.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a trusted search framework, wherein the trusted search framework develops modules and retrieval nodes;

[0033] The development module is used to obtain the index structure constructed by the developer and the advertiser and the deposit deposit request submitted by the advertiser; send the deposit deposit request to the public account book, so that the public account book can determine the deposit amount based on the deposit deposit request, and add the deposit amount to the advertiser account corresponding to the advertiser; send the index structure to the corresponding personal data space in the data space, so that the personal data space can score the index structure, and determine the index structure with a score exceeding a preset threshold as the target index structure;

[0034] The retrieval node is used to respond to the search request of the client, obtain the target index structure of the personal data space stored in the data space sent by the development module and the smart contract stored in the public ledger; based on the search request, determine the keywords used for the search and the search fee payment request, and forward the search fee payment request to the public ledger, so that the public ledger can deduct the corresponding search fee from the user account corresponding to the client based on the search fee payment request; in response to the feedback information sent by the public ledger after the deduction operation, input the keywords and the target index structure into the smart contract and execute the smart contract to obtain search results, and send the search results to the public ledger.

[0035] In addition, to achieve the above objectives, the present application also proposes a trusted search device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the trusted search method described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the trusted search method described above are implemented.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the trusted search method described above are implemented.

[0038] One or more technical solutions proposed in this application have at least the following technical effects:

[0039] Compared with the related art, general search engines adopt a centralized search engine solution. However, as long as users use the services provided by the search engine solution, they will continuously collect relevant information such as the user's search content, search history, search habits, etc., which may involve the user's privacy information and cause the user's privacy to be leaked. In contrast, the present application obtains the target index structure of the personal data space stored in the data space and the smart contract stored in the public ledger by responding to the search request of the client via the development module; based on the search request, determines the keywords used for the search and the search fee payment request, and forwards the search fee payment request to the public ledger, so that the public ledger can deduct the corresponding search fee from the user account corresponding to the client based on the search fee payment request. ; In response to the feedback information sent by the public ledger after the deduction operation, the keyword and the target index structure are input into the smart contract and the smart contract is executed to obtain search results, and the search results are sent to the public ledger. It can be understood that after receiving the search request from the client, the application forwards the search fee payment request to the public ledger, and at the same time obtains the target index structure and the smart contract stored in the public ledger, and then generates search results, and also sends the search results to the public ledger. Decentralization is achieved through the public ledger, which can avoid the problem that as long as the user uses the services provided by the search engine solution, the user's search content, search history, search habits and other related information will be continuously collected. This information may involve the user's privacy information, causing the user's privacy leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flowchart of the first embodiment of the trusted search method of the present application is provided;

[0043] Figure 2 The overall flow chart of the trusted search method for this application;

[0044] Figure 3 This is a schematic diagram of the index of the trusted search method of this application;

[0045] Figure 4 A flowchart of the second embodiment of the trusted search method of the present application is provided;

[0046] Figure 5 This is an example diagram of the developer inverted index structure of the trusted search method of this application;

[0047] Figure 6 This is an example diagram of an advertiser inverted index structure of the trusted search method of this application;

[0048] Figure 7 This is a schematic diagram of the module structure of a trusted search device according to an embodiment of the present application;

[0049] Figure 8 A schematic diagram of the device structure of the hardware operating environment involved in the trusted search method in the embodiment of the present application.

[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0053] The main solution of the embodiment of the present application is: in response to a search request from a client, obtaining a target index structure of a personal data space stored in a data space and a smart contract stored in a public ledger sent via a development module; based on the search request, determining keywords for search and a search fee payment request, and forwarding the search fee payment request to the public ledger, so that the public ledger can deduct the corresponding search fee from the user account corresponding to the client based on the search fee payment request; in response to feedback information sent by the public ledger after the deduction operation, inputting the keywords and the target index structure into the smart contract and executing the smart contract to obtain search results, and sending the search results to the public ledger.

[0054] In the related technology, general search engines adopt a centralized search engine solution. However, as long as users use the services provided by the search engine solution, the search content, search history, search habits and other related information of the users will be continuously collected. All of this information may involve the privacy information of the users, causing the privacy leakage of the users.

[0055] After receiving the search request from the client, the application forwards the search fee payment request to the public ledger, and at the same time obtains the target index structure and the smart contract stored in the public ledger, and then generates search results, and also sends the search results to the public ledger. Decentralization is achieved through the public ledger, which can avoid the problem that as long as the user uses the services provided by the search engine solution, the user's search content, search history, search habits and other related information will be continuously collected. This information may involve the user's privacy information, causing the user's privacy leakage.

[0056] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes a trusted search device as an example to illustrate this embodiment and the following embodiments.

[0057] Based on this, the present application embodiment provides a trusted search method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the trusted search method of the present application.

[0058] In this embodiment, refer to Figure 2 , Figure 2 An overall flow chart is provided, wherein the trusted search method comprises steps S100 to S300:

[0059] Step S100, in response to a search request from a client, obtaining a target index structure of a personal data space stored in a data space and a smart contract stored in a public ledger sent by a development module;

[0060] It should be noted that the executor of this embodiment is a trusted search device. The trusted search device is provided with a retrieval node, a development module, a data space, a public account book and a client. The retrieval node, the development module, the data space, the public account book and the client can be connected to different companies, individuals or institutions. Companies, individuals or institutions with idle resources can be connected to avoid waste of resources. The public account book is built based on the blockchain and is used to store some key information, such as smart contracts. The client can respond to the operation of the participant who intends to use some keywords to search for information on the network, and send the participant's request to the retrieval node. The data space is provided with a data model, and the data model is provided with a personal data space, and the personal data space stores the index structure uploaded by the developer who is connected to the development module, wherein the data model is a data model of an inverted index structure, as shown in Table 1, which is a specific structure information table of the data model.

[0061] Table 1

[0062]

[0063] It is understandable that the target index structure is an index structure whose quality score exceeds the threshold in the index structure stored in the personal data space in the data model. After receiving the search request sent by the client, the retrieval node of the trusted search device will obtain the target index structure whose quality score exceeds the threshold in the personal data space in the data space and the smart contract stored in the public ledger.

[0064] Specifically, the public ledger is also used to save operations on data, including adding, deleting, modifying and querying data, which are regularly packaged and stored in the public ledger to ensure that the data in the space is credible. The developers of each development module have their own personal data space and the corresponding private key of the personal data space. Only developers with the corresponding private key can operate the data in the personal data space, and the operation records are stored on the blockchain of the public ledger to ensure the integrity and traceability of the data. Therefore, before conducting a trusted search, it is necessary to initialize the trusted search device, and each participant applies for identity authorization to the identity authorization agency through the blockchain in the public ledger. The public ledger can provide trusted distributed digital identity DID services for other participants in the solution, support rapid identity verification between participants, and each participant can obtain its own displacement digital identity to ensure that the identities of all parties are credible, and behavior traceability and accountability can be performed on the chain.

[0065] Step S200, based on the search request, determining keywords for search and a search fee payment request, and forwarding the search fee payment request to the public ledger, so that the public ledger deducts the corresponding search fee from the user account corresponding to the client based on the search fee payment request;

[0066] It should be noted that the search fee is the fee that users need to pay for the search operation. When users upload the search request, they need to pay a small handling fee for the search operation. The retrieval node of the trusted search device will parse the search request sent by the client, obtain the keywords and search fee payment request uploaded by the user on the client, and the public ledger stores the user's account information. After receiving the search fee payment request, the corresponding search fee will be deducted from the user's account and stored in the account corresponding to the retrieval node.

[0067] In particular, the income of the retrieval node is divided into two parts: one part is the income obtained from producing blocks; the other part is the transaction fee paid by users when searching.

[0068] Step S300: input the keyword and the target index structure into the smart contract and execute the smart contract to obtain search results, and send the search results to the public account book.

[0069] It is understandable that the trusted search device uses the obtained keywords and target index structure as the input of the smart contract. After the keywords and target index structure are input, the smart contract is executed to obtain search results, and the obtained search results are sent to the public ledger for storage.

[0070] In particular, the public ledger is also a log audit system. All behaviors of the participants in the scheme, including operations on data, operations on indexes, transfer records, etc., will be stored in the chain ledger and cannot be tampered with, which is convenient for future tracking and auditing.

[0071] In a feasible implementation, in response to feedback information sent by the public ledger after the deduction operation, the step of inputting the keyword and the target index structure into the smart contract and executing the smart contract to obtain search results, and sending the search results to the public ledger includes the following steps:

[0072] Sending the search results to the public ledger, so that the public ledger returns the search results to the client, so that the client displays the search results;

[0073] It should be noted that the search results are kept consistent through a consensus algorithm. After receiving the search results, the public ledger of the trusted search device will return the search results to the client for the user to browse based on the search results displayed by the client.

[0074] In response to a click operation on the advertising URL in the search results, the number of clicks is recorded and sent to the public ledger, so that the public ledger determines a deduction amount from a deposit amount based on the number of clicks, and transfers the deduction amount to the user account, wherein the deposit amount is the deposit amount pre-deposited by the advertiser corresponding to the advertising URL.

[0075] It is understandable that the search results returned by the public ledger of the trusted search device may include URLs uploaded by advertisers. When the user browses the search results on the client, if he clicks on the URL uploaded by the advertiser, the search node will record the number of clicks of the user and send it to the public ledger. The public ledger will then deduct a portion of the amount from the advertiser's account according to the preset revenue rules and store it in the user's user account. Among them, the amounts in all accounts involved in the public ledger are stored in the form of digital currency on the public ledger, that is, the blockchain. The use and destination are open and transparent, can be redeemed at any time, and will not be abused.

[0076] In a feasible implementation, in response to feedback information sent by the public ledger after the deduction operation, the step of inputting the keyword and the target index structure into the smart contract and executing the smart contract to obtain search results, and sending the search results to the public ledger includes the following steps:

[0077] Based on the keyword and the retrieval algorithm in the smart contract, determine the target index in the target index structure corresponding to the keyword, wherein the target index includes a website address;

[0078] It should be noted that the target index includes the URL. The trusted search device searches for the target index in the target index structure by using the keyword, referring to Figure 3 , Figure 3 An index diagram is provided.

[0079] Sorting the URLs using the sorting algorithm in the smart contract to obtain the sorted URLs;

[0080] It is understandable that the sorting algorithm is based on the improvement of Google's PageRank web page ranking algorithm. Since the PageRank algorithm ranks the results according to the citations and citations of the web page, the issues considered are relatively simple. If there are multiple pages citing each other to form a closed loop, the PageRank values ​​of these pages will continue to increase, while the values ​​of other pages will remain unchanged or even be 0, and the returned results will not be particularly fair. Therefore, the sorting algorithm, based on PageRank, also considers the CreateTime time when the web page was created, the position of the search keyword in the web page, the Impact of the web page, and most importantly, the deposit Deposit paid by the advertiser for the search keyword of the web page.

[0081] It should be noted that the trusted search device uses a sorting algorithm to sort the URLs in the index according to certain rules, and determines the search results based on the sorted URLs.

[0082] Through the deduplication algorithm in the smart contract, similarity calculation is performed on all the sorted URLs, and the URLs whose similarity exceeds a threshold and whose sorting exceeds a preset ranking range are deleted to obtain the deleted URLs, and the search results are determined based on the URLs.

[0083] It should be noted that the trusted search device calculates the key content of all URLs in the search results, such as titles and summaries, using the cosine similarity algorithm cosSimliar(URL1, URL2). If the similarity is too high, such as exceeding 90%, the lower-ranked ones will be removed to avoid returning a large amount of duplicate and useless information to the user.

[0084] Specifically, take three link URLs and perform similarity analysis on titles as an example:

[0085] Step a. Segment the three content titles;

[0086] URL1: Global / Search / Engine / Top10;

[0087] URL2: global / top 10 / search / engines;

[0088] URL3: Trusted / Search / How It Works / In-depth / Guide.

[0089] Step b. List all the classified words;

[0090] global, search, engine, top10, ten, credible, how it works, in-depth, guide

[0091] Step c. Count the frequency of each word in each URL link title to form a vector;

[0092] URL1 vector: [1,1,1,1,0,0,0,0,0];

[0093] URL2 vector: [1,1,1,0,1,0,0,0,0];

[0094] URL3 vector: [0,1,0,0,0,1,1,1,1].

[0095] Step d. Use the cosSimliar(URL1, URL2) algorithm to calculate the similarity of all the calculated vectors. The calculation results show that URL1 and URL2 are extremely similar. Then, according to the results calculated in the ranking algorithm, the lower ranked ones are discarded.

[0096] In a feasible implementation manner, based on the keyword and the retrieval algorithm in the smart contract, after the step of determining the target index in the target index structure corresponding to the keyword further includes:

[0097] Determine the developer account corresponding to the personal data space;

[0098] It is understandable that the trusted search device can distribute the revenue of the retrieval node based on the preset revenue rules according to the index operation of the retrieval node on the index structure in the data space, and distribute the revenue to the developer account corresponding to the developer of the index structure according to the quality and quantity of the index data provided by each developer in the search results.

[0099] Based on the developer account, generate an index payment request;

[0100] It should be noted that after searching and generating search results, the search node of the trusted search device will actively generate an index payment request.

[0101] The index payment request is sent to the public account, so that the public account pays the index amount corresponding to the developer account based on the index payment request.

[0102] It is understandable that after generating an index payment request, the retrieval node of the trusted search device will send the request to the public ledger, and the public ledger will pay the index amount corresponding to the account of the corresponding developer based on the index payment request.

[0103] In a feasible implementation manner, the steps of sorting the URLs by the sorting algorithm in the smart contract to obtain the sorted URLs include:

[0104] Calculate and obtain the reference score of the web page corresponding to each URL in the target index;

[0105] It should be noted that the citation score is a score based on the PageRank algorithm. The trusted search device calculates the citation status of each page through the PageRank algorithm to obtain the citation score of the web page corresponding to each URL in the target index. The PageRank algorithm formula is as follows:

[0106]

[0107] Among them, URL1, URL2, ..., URL n is the page that references the web page URL, PR(URL1) refers to the score calculated by the web page URL1 using the PageRank algorithm, C(URL1) is the number of all pages referenced by the web page URL1, and d is the damping coefficient. Generally, d is selected as 0.85.

[0108] Calculate and obtain a creation time score of the webpage;

[0109] It is understandable that the creation time score is for newly created web pages. Since they have not been referenced by other pages, the score calculated by the PageRank algorithm is relatively low. However, newly created pages are often more important, especially some news and blog content. Therefore, when sorting URLs, it is necessary to consider the creation time of the page. The closer the creation time is to the current time, the higher the ranking should be.

[0110] It should be noted that the trusted search device calculates the creation time score of each page based on the creation time of each page. The specific calculation method is as follows:

[0111]

[0112] Among them, CurrentTime is the current time, CreateTime is the time when the web page is created, and b is a constant.

[0113] Calculate the position score of the keyword;

[0114] It can be understood that the position score (Position) is based on the outline structure when writing the Word document, and based on the outline structure, 10 levels are set for the position of the keyword in the article, namely title, subtitle, abstract, first-level title, second-level title, third-level title, main points, first paragraph, body, last paragraph and keyword. According to the number of times the keyword appears in each position c1,...,c 10 , and then, the position score is obtained. The trusted search device calculates the number of times the keyword appears in different positions of the article, thereby obtaining the position score of the keyword. The specific calculation method of the score is as follows:

[0115]

[0116] Calculate the influence score of the webpage;

[0117] It should be noted that the influence score is determined based on the influence of the webpage itself and the reputation of the creator of the webpage content. The trusted search device determines the influence score of the webpage based on the influence of the webpage itself and the reputation of the creator of the webpage content. The specific score calculation method is as follows:

[0118] Score4=arctan(ggClickCount+hgReputation)

[0119] Among them, ClickCount is the number of clicks on the web page, Reputation is the reputation value of the web page content creator, g and h are constants, and arctan is the inverse tangent function. ClickCount and Reputation are both maintained on the blockchain public ledger and can be obtained from the chain.

[0120] Calculate the deposit score of the webpage;

[0121] It is understandable that the deposit score is determined based on the deposit amount pre-deposited by the advertiser. The trusted search device determines the deposit score of the web page based on the deposit amount pre-deposited by the advertiser corresponding to the keyword. Advertisers improve the ranking of advertising information in the search results by staking on the chain. The larger the deposit amount ratio, the higher the deposit score, and the higher the ranking of the web page created by the advertiser. The specific calculation method of the deposit score is as follows:

[0122]

[0123] Among them, deposit is the deposit amount corresponding to the webpage. It is the sum of deposits of all web pages in the search results.

[0124] Determine a comprehensive score for each of the web pages based on the citation score, the creation time score, the location score, the influence score, and the deposit score;

[0125] It should be noted that the trusted search device will calculate the comprehensive score of each web page and sort the URLs corresponding to the web page according to the comprehensive score. The final comprehensive score of each web page is as follows:

[0126] Score=ρ1Score1+ρ2Score2+ρ3Score3+ρ4Score4+ρ5Score5

[0127] Among them, ρ1, ρ2, ρ3, ρ4, and ρ5 are weight coefficients that can be adjusted by yourself, and the final returned results will be sorted according to the Score.

[0128] Based on the comprehensive scores, the URLs corresponding to the web pages are sorted to obtain the sorted URLs.

[0129] It is understandable that the trusted search device sorts the URLs corresponding to each page in the search results according to the comprehensive score of each page. The higher the comprehensive score, the higher the ranking of the URL.

[0130] In this embodiment, the decentralized search method proposed by the trusted search device implements the search and sorting algorithm by means of blockchain smart contracts, and ensures the consistency of the results through a consensus mechanism. The results are fair, just and open. Unlike traditional centralized search engines, search results are not returned and sorted according to the preferences of the search engine service provider, and there will not be a phenomenon where advertising information is always placed at the top.

[0131] The present application embodiment provides a trusted search method, referring to Figure 4 , Figure 4 This is a flow chart of the second embodiment of the data processing method of the present application.

[0132] In this embodiment, the data processing method includes steps A100 to A300:

[0133] Step A100, obtaining the index structure constructed by the developer and the advertiser and the deposit deposit request submitted by the advertiser;

[0134] It should be noted that the index structure includes the inverted index structure built by developers based on keywords obtained by crawling network data and parsing the network data, according to the index data model defined in advance in the personal data space, and the index structure established by advertisers for their own advertising links.

[0135] It is understandable that the development module of the trusted search device obtains the network data captured by the developer, and according to the keywords obtained by parsing the network data, the inverted index structure constructed according to the index data model defined in advance in the personal data space and the index structure established by the advertiser for his own advertising link, and obtains the deposit request of the advertiser, referring to Figure 5 , Figure 5 Provides a sample diagram of the developer inverted index structure, refer to Figure 6 , Figure 6 An example diagram of the advertiser inverted index structure is provided.

[0136] Step A200, sending the deposit deposit request to the public ledger, so that the public ledger determines the deposit amount based on the deposit deposit request, and adds the deposit amount to the advertiser account corresponding to the advertiser;

[0137] It should be noted that the development module of the trusted search device will send the deposit request to the public ledger, and the public ledger will determine the deposit amount based on the deposit request and add the corresponding amount to the advertiser's account.

[0138] Step A300, sending the index structure to the corresponding personal data space in the data space, so that the personal data space can score the index structure, and determining the index structure whose score exceeds a preset threshold as the target index structure.

[0139] It is understandable that the personal data space is built on IPFS. Only people with the corresponding private key can operate the data in the personal data space. The operation records are stored on the blockchain to ensure the integrity and traceability of the data. At the same time, a public data directory is provided to other users. When other users want to use the data, they need to be authorized by the data owner. After the trusted search device sends the index structure to the corresponding personal data space in the data space, the data space will have a scoring mechanism for the index data built for each person, representing the quality of the index data. After using the index data, the user will score it according to the quality. The higher the score, the better the quality, and the index structure with a score exceeding the preset threshold will be determined as the target index structure.

[0140] In this implementation, the trusted search device crawls and builds indexes through participants with development capabilities to obtain index structures stored in the development module, contributing their own development capabilities; participants with idle storage devices contribute their own storage capabilities in the data space; participants with idle computing power become searchers, perform retrieval functions, and contribute their own computing power. Advertisers improve the ranking of advertising information in search results by staking on the chain, thereby avoiding the behavior of search engine middlemen using user information to make profits.

[0141] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the trusted search method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0142] This application also provides a trusted search framework, please refer to Figure 7 , the trusted search framework includes a development module and a retrieval node;

[0143] The development module 10 is used to obtain the index structure constructed by the developer and the advertiser and the deposit deposit request submitted by the advertiser; send the deposit deposit request to the public account book, so that the public account book can determine the deposit amount based on the deposit deposit request, and add the deposit amount to the advertiser account corresponding to the advertiser; send the index structure to the corresponding personal data space in the data space, so that the personal data space can score the index structure, and determine the index structure with a score exceeding a preset threshold as the target index structure;

[0144] The retrieval node 20 is used to respond to the search request of the client, obtain the target index structure of the personal data space stored in the data space sent by the development module and the smart contract stored in the public ledger; based on the search request, determine the keywords used for the search and the search fee payment request, and forward the search fee payment request to the public ledger, so that the public ledger can deduct the corresponding search fee from the user account corresponding to the client based on the search fee payment request; in response to the feedback information sent by the public ledger after the deduction operation, input the keywords and the target index structure into the smart contract and execute the smart contract to obtain search results, and send the search results to the public ledger.

[0145] The trusted search device provided by the present application adopts the trusted search method in the above embodiment, which can solve the technical problems of trusted search. Compared with the prior art, the beneficial effects of the trusted search device provided by the present application are the same as the beneficial effects of the trusted search method provided by the above embodiment, and other technical features in the trusted search device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0146] The present application provides a trusted search device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the trusted search method in the above-mentioned embodiment one.

[0147] Reference below Figure 8 , which shows a schematic diagram of the structure of a trusted search device suitable for implementing the embodiment of the present application. The trusted search device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, tablet computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The trusted search 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 application.

[0148] like Figure 8 As shown, the trusted search device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the trusted search device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the trusted search device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a trusted search device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0149] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application 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 such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0150] The trusted search device provided by the present application adopts the trusted search method in the above embodiment to solve the technical problems of trusted search. Compared with the prior art, the beneficial effects of the trusted search device provided by the present application are the same as the beneficial effects of the trusted search method provided by the above embodiment, and other technical features in the trusted search device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0151] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0152] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0153] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the trusted search method in the above-mentioned embodiment.

[0154] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the 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, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0155] The computer-readable storage medium may be included in the trusted search device; or may exist independently without being assembled into the trusted search device.

[0156] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a trusted search device, the trusted search device: responds to a search request from a client, obtains a target index structure of a personal data space stored in a data space and a smart contract stored in a public ledger via a development module; based on the search request, determines keywords and a search fee payment request for the search, and forwards the search fee payment request to the public ledger, so that the public ledger deducts the corresponding search fee from the user account corresponding to the client based on the search fee payment request; in response to feedback information sent by the public ledger after the deduction operation, inputs the keywords and the target index structure into the smart contract and executes the smart contract to obtain search results, and sends the search results to the public ledger.

[0157] Computer program code for performing the operations of the present application 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 the case of a remote computer, the remote computer may be connected to the user's computer through 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).

[0158] 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 application. 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 alternative implementations, 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.

[0159] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0160] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned trusted search method, and can solve the technical problems of trusted search. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the trusted search method provided in the above-mentioned embodiment, and will not be repeated here.

[0161] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned trusted search method are implemented.

[0162] The computer program product provided by this application can solve the technical problem of trusted search. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the trusted search method provided by the above embodiment, which will not be repeated here.

[0163] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A trusted search method, characterized in that: Applied to a retrieval node, the trusted search method includes: In response to a search request from a client, obtaining a target index structure of a personal data space stored in a data space and a smart contract stored in a public ledger sent by a development module; Determine keywords for search and a search fee payment request based on the search request, and forward the search fee payment request to the public ledger, so that the public ledger deducts the corresponding search fee from the user account corresponding to the client based on the search fee payment request; In response to feedback information sent by the public ledger after the deduction operation, the keyword and the target index structure are input into the smart contract and the smart contract is executed to obtain search results, and the search results are sent to the public ledger.

2. The trusted search method according to claim 1, characterized in that: The search results include an advertisement website, and the step of inputting the keyword and the target index structure into the smart contract and executing the smart contract in response to feedback information sent by the public ledger after the deduction operation to obtain search results and sending the search results to the public ledger includes: Sending the search results to the public ledger, so that the public ledger returns the search results to the client, so that the client displays the search results; In response to a click operation on the advertising URL in the search results, the number of clicks is recorded and sent to the public ledger, so that the public ledger determines a deduction amount from a deposit amount based on the number of clicks, and transfers the deduction amount to the user account, wherein the deposit amount is the deposit amount pre-deposited by the advertiser corresponding to the advertising URL.

3. The trusted search method according to claim 1, characterized in that: The step of inputting the keyword and the target index structure into the smart contract and executing the smart contract in response to the feedback information sent by the public ledger after the deduction operation, obtaining search results, and sending the search results to the public ledger includes: Based on the keyword and the retrieval algorithm in the smart contract, determine the target index in the target index structure corresponding to the keyword, wherein the target index includes a website address; Sorting the URLs using the sorting algorithm in the smart contract to obtain the sorted URLs; Through the deduplication algorithm in the smart contract, similarity calculation is performed on all the sorted URLs, and the URLs whose similarity exceeds a threshold and whose sorting exceeds a preset ranking range are deleted to obtain the deleted URLs, and the search results are determined based on the URLs.

4. The trusted search method according to claim 3, characterized in that: After the step of determining the target index in the target index structure corresponding to the keyword based on the keyword and the retrieval algorithm in the smart contract, the step further includes: Determine the developer account corresponding to the personal data space; Based on the developer account, generate an index payment request; The index payment request is sent to the public account, so that the public account pays the index amount corresponding to the developer account based on the index payment request.

5. The trusted search method according to claim 3, characterized in that: The step of sorting the URLs by the sorting algorithm in the smart contract to obtain the sorted URLs comprises: Calculate and obtain the reference score of the web page corresponding to each URL in the target index; Calculate and obtain a creation time score of the webpage; Calculate the position score of the keyword; Calculate the influence score of the webpage; Calculate the deposit score of the webpage; Determine a comprehensive score for each of the web pages based on the citation score, the creation time score, the location score, the influence score, and the deposit score; Based on the comprehensive scores, the URLs corresponding to the web pages are sorted to obtain the sorted URLs.

6. A trusted search method, characterized in that: Applied to the development module, the trusted search method includes: Obtaining the index structure constructed by the developer and the advertiser and the deposit request submitted by the advertiser; Sending the deposit request to a public ledger, so that the public ledger determines a deposit amount based on the deposit request, and adds the deposit amount to an advertiser account corresponding to the advertiser; The index structure is sent to a corresponding personal data space in the data space so that the personal data space can score the index structure, and the index structure whose score exceeds a preset threshold is determined as a target index structure.

7. A trusted search framework, characterized in that: The framework includes a development module and a retrieval node; The development module is used to obtain the index structure constructed by the developer and the advertiser and the deposit deposit request submitted by the advertiser; send the deposit deposit request to the public ledger, so that the public ledger determines the deposit amount based on the deposit deposit request, and adds the deposit amount to the advertiser account corresponding to the advertiser; Sending the index structure to a corresponding personal data space in the data space, so that the personal data space can score the index structure, and determining the index structure with a score exceeding a preset threshold as a target index structure; The retrieval node is used to respond to the search request of the client, obtain the target index structure of the personal data space stored in the data space and the smart contract stored in the public account book sent by the development module; Determine keywords for search and a search fee payment request based on the search request, and forward the search fee payment request to the public ledger, so that the public ledger deducts the corresponding search fee from the user account corresponding to the client based on the search fee payment request; In response to feedback information sent by the public ledger after the deduction operation, the keyword and the target index structure are input into the smart contract and the smart contract is executed to obtain search results, and the search results are sent to the public ledger.

8. A trusted search device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the trusted search method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the trusted search method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the trusted search method according to any one of claims 1 to 6 are implemented.