Movatterモバイル変換


[0]ホーム

URL:


CN113778950B - Method for acquiring trusted file, index server, query server and medium - Google Patents

Method for acquiring trusted file, index server, query server and medium
Download PDF

Info

Publication number
CN113778950B
CN113778950BCN202110975819.XACN202110975819ACN113778950BCN 113778950 BCN113778950 BCN 113778950BCN 202110975819 ACN202110975819 ACN 202110975819ACN 113778950 BCN113778950 BCN 113778950B
Authority
CN
China
Prior art keywords
credit
file
basic information
keyword
server
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
CN202110975819.XA
Other languages
Chinese (zh)
Other versions
CN113778950A (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 United Network Communications Group Co Ltd
China Unicom Online Information Technology Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Unicom Online Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd, China Unicom Online Information Technology Co LtdfiledCriticalChina United Network Communications Group Co Ltd
Priority to CN202110975819.XApriorityCriticalpatent/CN113778950B/en
Publication of CN113778950ApublicationCriticalpatent/CN113778950A/en
Application grantedgrantedCritical
Publication of CN113778950BpublicationCriticalpatent/CN113778950B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a method for acquiring a trusted file, an index server, a query server and a medium, wherein the method comprises the following steps: receiving a query request sent by a query server, wherein the query request comprises a first keyword, and the first keyword is part of the content of a first credit file requested to be queried by the query server; acquiring first basic information according to the query request; and determining a first keyword and a first storage path associated with the first basic information, and feeding back the first storage path to the query server, wherein the first storage path is used for the query server to acquire a first credit file from the blockchain node. According to the invention, through the keywords corresponding to part of the contents of the credit files, the credit files to be acquired by the user can be accurately positioned by searching all the credit files of the user corresponding to the basic information, and the credit files of the user are not required to be compared one by one, so that the inquiry efficiency of the credit files is improved.

Description

Translated fromChinese
授信文件的获取方法、索引服务器、查询服务器和介质Acquisition method, index server, query server and media of trusted documents

技术领域technical field

本发明涉及网络通信技术,尤其涉及一种授信文件的获取方法、索引服务器、查询服务器和介质。The invention relates to network communication technology, in particular to a method for acquiring a credit authorization file, an index server, a query server and a medium.

背景技术Background technique

随着互联网的逐步发展,行业短信在营销方面呈现出越来越普遍以及逐年递增的趋势,但同时对用户的骚扰和投诉也呈现逐年递增的趋势。With the gradual development of the Internet, industry SMS marketing is becoming more and more common and increasing year by year, but at the same time, harassment and complaints to users are also increasing year by year.

为了防止营销类短信对于用户的骚扰,包括信管局、运营商在内对于营销短信的管理,一直采取用户授信的方式,即商户如果想对用户进行营销,需要获得用户的授信。用户授信一般采用文件的方式,并将授信文件存储于区块链节点,以确保用户的授信文件不被篡改。In order to prevent marketing text messages from harassing users, the management of marketing text messages, including the Information Administration Bureau and operators, has always adopted the method of user credit, that is, if merchants want to market users, they need to obtain user credit. User credit generally adopts the form of files, and the credit files are stored in blockchain nodes to ensure that the user's credit files are not tampered with.

现有授信文件的查询只能通过用户手机号等已经预先设定好的字段进行查询。因此,在实际提取授信文件的过程中,只能查询出来用户在区块链节点上所有存储的授信文件,并需要用户对所有授信文件逐一比对后,才能确定最终的授信文件。可见,授信文件的查询效率较低。The query of the existing credit documents can only be queried through the pre-set fields such as the user's mobile phone number. Therefore, in the process of actually extracting credit documents, all the credit documents stored by the user on the blockchain node can only be queried, and the final credit document can only be determined after the user compares all the credit documents one by one. It can be seen that the query efficiency of credit approval documents is low.

发明内容Contents of the invention

本发明提供一种授信文件的获取方法、索引服务器、查询服务器和介质,用以解决授信文件的查询效率较低的问题。The invention provides a method for obtaining a credit authorization file, an index server, a query server and a medium, which are used to solve the problem of low query efficiency of the credit authorization file.

一方面,本发明提供一种授信文件的获取方法,应用于索引服务器,包括:On the one hand, the present invention provides a method for obtaining a credit authorization file, which is applied to an index server, including:

接收查询服务器发送的查询请求,所述查询请求中包括第一关键词,其中,所述第一关键词为所述查询服务器所请求查询的第一授信文件的部分内容;receiving a query request sent by the query server, the query request including a first keyword, wherein the first keyword is part of the content of the first credit authorization file requested by the query server;

根据所述查询请求获取第一基础信息,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;Obtain first basic information according to the query request, where the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;

确定所述第一关键词以及所述第一基础信息关联的第一存储路径,并将所述第一存储路径反馈至所述查询服务器,其中,所述第一存储路径用于所述查询服务器从区块链节点获取所述第一授信文件,并将所述第一授信文件发送至用户终端。determining a first storage path associated with the first keyword and the first basic information, and feeding back the first storage path to the query server, wherein the first storage path is used for the query server Obtain the first credit authorization file from the block chain node, and send the first credit authorization file to the user terminal.

可选地,所述接收查询请求的步骤之前,还包括:Optionally, before the step of receiving the query request, it also includes:

接收所述查询服务器发送的第二授信文件、所述第二授信文件对应的第二存储路径以及所述第二授信文件对应的第二基础信息,其中,所述第二存储路径是所述区块链节点存储所述第二授信文件的路径;receiving the second credit file sent by the query server, the second storage path corresponding to the second credit file, and the second basic information corresponding to the second credit file, wherein the second storage path is the area The block chain node stores the path of the second credit authorization file;

根据所述第二授信文件的所有内容创建所述第二授信文件对应的各个第二关键词;Create respective second keywords corresponding to the second credit file according to all contents of the second credit file;

将所述各个所述第二关键词、所述第二存储路径以及所述第二基础信息关联存储,并将各个所述第二关键词发送至所述查询服务器。Store each of the second keywords, the second storage path, and the second basic information in association, and send each of the second keywords to the query server.

可选地,所述将所述第一存储路径反馈至所述查询服务器的步骤包括:Optionally, the step of feeding back the first storage path to the query server includes:

获取所述第一存储路径关联的各个第三关键词;acquiring each third keyword associated with the first storage path;

将所述第一基础信息、各个所述第三关键词以及所述第一存储路径发送至所述查询服务器,其中,所述第一基础信息用于所述查询服务器确定存储的基础信息是否被篡改,所述第三关键词用于所述查询服务器确定存储的关键词是否被篡改。sending the first basic information, each of the third keywords and the first storage path to the query server, wherein the first basic information is used by the query server to determine whether the stored basic information is tampering, the third keyword is used by the query server to determine whether the stored keyword has been tampered with.

另一方面,本发明还提供一种授信文件的获取方法,应用于查询服务器,包括:On the other hand, the present invention also provides a method for obtaining a credit authorization file, which is applied to a query server, including:

接收用户终端发送的查询请求,并将所述查询请求发送至索引服务器,其中,所述查询请求包括第一关键词,所述第一关键词为所述用户终端请求查询的第一授信文件的部分内容;receiving the query request sent by the user terminal, and sending the query request to the index server, wherein the query request includes a first keyword, and the first keyword is the first credential file that the user terminal requests to query. Part;

接收所述索引服务器反馈的所述第一授权文件的第一存储路径,并向区块链节点发送所述第一存储路径,其中,所述第一存储路径是所述索引服务器根据第一基础信息以及所述第一关键词获取的,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;receiving the first storage path of the first authorization file fed back by the index server, and sending the first storage path to the block chain node, wherein the first storage path is the index server according to the first basis information and the first keyword, the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;

接收所述区块链节点反馈的所述第一授信文件,并将所述第一授信文件发送至所述用户终端。receiving the first credit file fed back by the blockchain node, and sending the first credit file to the user terminal.

可选地,所述接收用户终端发送的查询请求的步骤之前,还包括:Optionally, before the step of receiving the query request sent by the user terminal, it also includes:

接收所述用户终端发送的第二授信文件,并将所述第二授信文件发送至所述区块链节点;receiving the second credit file sent by the user terminal, and sending the second credit file to the block chain node;

接收所述区块链节点反馈的所述第二授信文件的第二存储路径,并创建所述第二授信文件对应的第二基础信息,所述第二基础信息包括所述第二授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;receiving the second storage path of the second credit file fed back by the blockchain node, and creating second basic information corresponding to the second credit file, the second basic information including At least one of the user information, merchant information, business type and credit granting time;

将所述第二授信文件、所述第二存储路径以及所述第二基础信息发送至所述索引服务器,其中,所述索引服务器创建所述第二授信文件的各个第二关键词;sending the second credential file, the second storage path, and the second basic information to the index server, wherein the index server creates each second keyword of the second credential file;

接收并存储所述索引服务器反馈的各个第二关键词,且将各个所述第二关键词发送至所述用户终端。Receiving and storing each second keyword fed back by the index server, and sending each second keyword to the user terminal.

可选地,所述接收所述索引服务器反馈的所述第一授权文件的第一存储路径的步骤包括:Optionally, the step of receiving the first storage path of the first authorization file fed back by the index server includes:

接收所述索引服务器反馈的所述查询请求的响应消息,所述查询请求的响应消息中包括所述第一存储路径,所述查询请求的响应消息中还包括各个第三关键词和所述第一基础信息,所述第三关键词与所述第一存储路径关联存储于所述索引服务器;Receiving a response message of the query request fed back by the index server, the response message of the query request includes the first storage path, and the response message of the query request further includes each third keyword and the first storage path. Basic information, the third keyword is associated with the first storage path and stored in the index server;

所述接收所述区块链节点反馈的所述第一授信文件之后,还包括:After receiving the first credit file fed back by the blockchain node, it also includes:

比对各个所述第三关键词与各个所述第二关键词,且比对所述第一基础信息与所述第二基础信息;comparing each of the third keywords with each of the second keywords, and comparing the first basic information with the second basic information;

当所述第三关键词在各个所述第二关键词不具备相同的关键词时,根据各个所述第三关键词更新各个所述第二关键词;When the third keyword does not have the same keyword as each of the second keywords, each of the second keywords is updated according to each of the third keywords;

当所述第一基础信息与所述第二基础信息不同时,根据所述第一基础信息更新所述第二基础信息。When the first basic information is different from the second basic information, updating the second basic information according to the first basic information.

可选地,所述接收所述区块链节点反馈的所述第一授信文件的步骤之后,还包括:Optionally, after the step of receiving the first credit file fed back by the blockchain node, it further includes:

获取所述第一授信文件相同的第二授信文件的第一哈希值,并计算所述第一授信文件的第二哈希值;Obtaining a first hash value of a second trusted file identical to the first trusted file, and calculating a second hash value of the first trusted file;

比对第一哈希值以及所述第二哈希值;comparing the first hash value with the second hash value;

在所述第一哈希值与所述第二哈希值不同时,根据所述第一授信文件更新所述第一授信文件相同的所述第二授信文件。When the first hash value is different from the second hash value, update the second credit file that is the same as the first credit file according to the first credit file.

另一方面,本发明还提供一种索引服务器,包括:On the other hand, the present invention also provides an index server, including:

第一接收模块,用于接收查询服务器发送的查询请求,所述查询请求中包括第一关键词,其中,所述第一关键词为所述查询服务器所请求查询的第一授信文件的部分内容;The first receiving module is configured to receive the query request sent by the query server, the query request includes a first keyword, wherein the first keyword is part of the content of the first credit authorization file requested by the query server ;

获取模块,用于根据所述查询请求获取第一基础信息,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;An acquisition module, configured to acquire first basic information according to the query request, where the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;

确定模块,用于确定所述第一关键词以及所述第一基础信息关联的第一存储路径,并将所述第一存储路径反馈至所述查询服务器,其中,所述第一存储路径用于所述查询服务器从区块链节点获取所述第一授信文件,并将所述第一授信文件发送至用户终端。A determining module, configured to determine a first storage path associated with the first keyword and the first basic information, and feed back the first storage path to the query server, wherein the first storage path uses The query server obtains the first credit file from the block chain node, and sends the first credit file to the user terminal.

另一方面,本发明还提供一种索引服务器,包括:存储器和处理器;On the other hand, the present invention also provides an index server, including: a memory and a processor;

所述存储器存储计算机执行指令;the memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如上所述的授信文件的获取方法。The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above-mentioned method for obtaining a credit authorization document.

另一方面,本发明还提供一种查询服务器,包括:On the other hand, the present invention also provides a query server, including:

第二接收模块,用于接收用户终端发送的查询请求,并将所述查询请求发送至索引服务器,其中,所述查询请求包括第一关键词,所述第一关键词为所述用户终端请求查询的第一授信文件的部分内容;The second receiving module is configured to receive the query request sent by the user terminal, and send the query request to the index server, wherein the query request includes a first keyword, and the first keyword is the user terminal request Part of the content of the first credit document inquired;

所述第二接收模块,用于接收所述索引服务器反馈的所述第一授权文件的第一存储路径,并向区块链节点发送所述第一存储路径,其中,所述第一存储路径是所述索引服务器根据第一基础信息以及所述第一关键词获取的,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;The second receiving module is configured to receive the first storage path of the first authorization file fed back by the index server, and send the first storage path to the block chain node, wherein the first storage path It is obtained by the index server according to the first basic information and the first keyword, and the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file. kind;

所述第二接收模块,用于接收所述区块链节点反馈的所述第一授信文件。The second receiving module is configured to receive the first credit file fed back by the blockchain node.

另一方面,本发明还提供一种查询服务器,包括:存储器和处理器;On the other hand, the present invention also provides a query server, including: a memory and a processor;

所述存储器存储计算机执行指令;the memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如上所述的授信文件的获取方法。The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above-mentioned method for obtaining a credit authorization document.

另一方面,本发明还提供一种介质,所述介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如上所述的授信文件的获取方法。On the other hand, the present invention also provides a medium, wherein computer-executable instructions are stored in the medium, and when the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned method for obtaining a credit authorization file.

本发明提供的授信文件的获取方法、索引服务器、查询服务器和介质,接收查询服务器发送的查询请求,并通过查询请求获取关键词以及基础信息,从而基于关键词以及基础信息获取存储路径,并将存储路径发送至查询服务器,使得查询服务器基于存储路径从区块链节点中获取授信文件,并将授信文件发送至用户终端。本发明通过授信文件的部分内容对应的关键词,在基础信息对应的用户的所有授信文件进行查找,即可准确的定位到用户所要获取的授信文件,无需对用户所有的授信文件进行逐一比对,提高了授信文件的查询效率。The method for obtaining credit authorization documents, the index server, the query server, and the medium provided by the present invention receive a query request sent by the query server, and obtain keywords and basic information through the query request, thereby obtaining a storage path based on the keywords and basic information, and The storage path is sent to the query server, so that the query server obtains the credit authorization file from the blockchain node based on the storage path, and sends the credit authorization file to the user terminal. The present invention searches all the credit files of the user corresponding to the basic information through keywords corresponding to part of the content of the credit file, and can accurately locate the credit file that the user wants to obtain, without comparing all the credit files of the user one by one , improving the query efficiency of credit documents.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1为本发明实现授信文件的获取方法的系统构架图;Fig. 1 is a system framework diagram of the method for obtaining credit authorization documents in the present invention;

图2为本发明授信文件的获取方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the method for obtaining a credit document according to the present invention;

图3为本发明授信文件的获取方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of the method for obtaining a credit document in the present invention;

图4为本发明授信文件的获取方法第三实施例的流程示意图;FIG. 4 is a schematic flowchart of a third embodiment of the method for obtaining a credit document in the present invention;

图5为本发明授信文件的获取方法第四实施例的流程示意图;Fig. 5 is a schematic flowchart of a fourth embodiment of the method for obtaining a credit document according to the present invention;

图6为本发明授信文件存证的交互图;Fig. 6 is an interactive diagram of depositing certificates of credit documents in the present invention;

图7为本发明授信文件取证的交互图;Fig. 7 is an interaction diagram of credit document evidence collection in the present invention;

图8为本发明索引服务器的模块示意图;Fig. 8 is a schematic diagram of the module of the index server of the present invention;

图9为本发明查询服务器的模块示意图;Fig. 9 is a schematic diagram of modules of the query server of the present invention;

图10为本发明索引服务器/查询服务器的硬件结构示意图。FIG. 10 is a schematic diagram of the hardware structure of the index server/query server of the present invention.

通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

本发明提供一种授信文件的获取方法,可以通过图1所示的系统构架图实现。如图1所示,区块链存证平台、区块链全文索引平台以及分布式存证平台通过网络通信连接。The present invention provides a method for obtaining a credit authorization file, which can be realized through the system architecture diagram shown in FIG. 1 . As shown in Figure 1, the blockchain certificate storage platform, the blockchain full-text index platform and the distributed certificate deposit platform are connected through network communication.

区块链存证平台采用区块链智能合约,存储用户授信记录,每条授信记录包括:基础信息(基础信息包括用户、商户、业务类型等)、区块链交易ID、授信文件路径信息、授信文件Hash信息、授信文件关键词摘要信息;同时,保证授信信息不可篡改。区块链存证平台由多个网管节点、多个共识节点以及查询服务器构成,网关节点通过查询服务器与共识节点通信连接。The blockchain certificate storage platform adopts blockchain smart contracts to store user credit records. Each credit record includes: basic information (basic information includes users, merchants, business types, etc.), blockchain transaction ID, credit file path information, Credit file Hash information, credit file keyword summary information; at the same time, it is guaranteed that the credit information cannot be tampered with. The blockchain certificate storage platform consists of multiple network management nodes, multiple consensus nodes and query servers. The gateway nodes communicate with the consensus nodes through the query servers.

分布式存储平台采用分布式存储技术,如HDFS等技术存储用户授信文件。分布式存储保证授信文件不丢失。分布式存储平台包括多个存储节点和存储服务器,存储服务器与各个存储节点通信连接,存储节点即为区块链节点。The distributed storage platform uses distributed storage technologies, such as HDFS, to store user credit files. Distributed storage ensures that trusted files are not lost. The distributed storage platform includes multiple storage nodes and storage servers, and the storage server communicates with each storage node, and the storage nodes are blockchain nodes.

区块链全文索引平台存储用户授信文件的全文索引信息,主键为关键词,其他字段包括基础信息、区块链交易ID、关键词摘要信息等。The blockchain full-text index platform stores the full-text index information of user credit documents, the primary key is keywords, and other fields include basic information, blockchain transaction ID, keyword summary information, etc.

商户、用户或者监管部门通过所持有的终端将授信文件先发送至区块链存证平台,区块链存证平台转发授信文件至分布式存储平台,分布式存储平台将授信文件存储于其中一个存储节点,并将授信文件的存储路径反馈至区块链存证平台。区块链存证平台创建授信文件的基础信息,基础信息包括用户信息、商户信息、授信文件的业务类型、授信文件的授信时间等。区块链存证平台将存储路径、授信文件以及基础信息发送至区块链全文索引平台,区块链全文索引平台对授信文件进行全文索引,从而构建授信文件的各个关键词,区块链全文索引平台将存储路径、各个关键词以及基础信息关联存储,并将授信文件删除,且将各个关键词发送至区块链存证平台。区块链存证平台将关键词返回至商户、用户、监管部门所持有的终端。用户、商户或者监管部门需要获取授信文件时,通过终端的关键词生成的查询请求,并将查询请求发送至区块链存证平台。区块链存证平台将查询请求转发至区块链全文索引平台,区块链全文索引平台解析查询请求获取关键词,并获取关键词所关联的基础信息,从而将通过关键词、基础信息获取关联的存储路径,区块链全文索引平台再将存储路径发送至区块链存证平台,区块链存证平台再将存储路径发送至分布式存储平台,使得分布式存储平台通过存储路径从存储节点获取授信文件,再将授信文件反馈至区块链存证平台,最后区块链存证平台再将授信文件传输至终端,从而完成用户对授信文件的取证。Merchants, users or regulatory authorities first send the credit documents to the blockchain certificate storage platform through the terminals they hold, and the blockchain certificate deposit platform forwards the credit documents to the distributed storage platform, and the distributed storage platform stores the credit documents in it A storage node, and feeds back the storage path of the credit authorization file to the blockchain depository platform. The blockchain certificate storage platform creates the basic information of the credit file, which includes user information, merchant information, business type of the credit file, credit time of the credit file, etc. The blockchain certificate storage platform sends the storage path, credit documents and basic information to the blockchain full-text index platform. The indexing platform associates storage paths, keywords and basic information, deletes the credit file, and sends each keyword to the blockchain depository platform. The blockchain certificate deposit platform returns the keywords to the terminals held by merchants, users, and regulatory authorities. When users, merchants or regulatory authorities need to obtain credit documents, they generate query requests through keywords in the terminal, and send the query requests to the blockchain depository platform. The blockchain certificate storage platform forwards the query request to the blockchain full-text index platform, and the blockchain full-text index platform parses the query request to obtain keywords, and obtains the basic information associated with the keywords, so that the key words and basic information can be obtained The associated storage path, the blockchain full-text indexing platform then sends the storage path to the blockchain storage platform, and the blockchain storage platform then sends the storage path to the distributed storage platform, so that the distributed storage platform uses the storage path from The storage node obtains the credit file, and then feeds the credit file back to the blockchain certificate storage platform, and finally the blockchain certificate deposit platform transmits the credit file to the terminal, thereby completing the user's evidence collection of the credit file.

下面以具体地实施例对本发明的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solution of the present invention and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.

参照图2,图2为本发明授信文件的获取方法的第一实施例,应用于索引服务器,授信文件的获取方法包括以下步骤:Referring to FIG. 2, FIG. 2 is a first embodiment of the method for obtaining a credit authorization file in the present invention, which is applied to an index server. The method for obtaining a credit authorization file includes the following steps:

步骤S10,接收查询服务器发送的查询请求,查询请求中包括第一关键词,其中,第一关键词为查询服务器所请求查询的第一授信文件的部分内容。Step S10, receiving a query request sent by the query server, where the query request includes a first keyword, wherein the first keyword is part of the content of the first credentialing file requested by the query server.

在本实施例中,执行主体为索引服务器。索引服务器装载有区块链全文索引平台对应的应用程序,区块链全文索引平台也即索引服务器存储有区块链交易ID列表、关键词的摘要信息列表以及基础信息等。具体的,索引服务器存储的数据如表-1所示:In this embodiment, the execution subject is the index server. The index server is loaded with the application program corresponding to the blockchain full-text index platform, and the blockchain full-text index platform, that is, the index server, stores the blockchain transaction ID list, keyword summary information list, and basic information. Specifically, the data stored by the index server is shown in Table-1:

表-1Table 1

Figure GDA0004232576360000081
Figure GDA0004232576360000081

如表-1所示,索引服务器存储有授信文件的基础信息,基础信息如授信文件的区块链交易ID、用户信息(如授信用户列表)、商户信息(如商户编号列表)、授信文件的业务类型、授信时间。索引服务器还存储有授信文件所对应的关键词,以及由多个关键词组成的关键词摘要信息列表。关键词是索引服务器根据授信文件的全部内容生成的,也即关键词是授信文件的部分内容。As shown in Table-1, the index server stores the basic information of the credit file, such as the blockchain transaction ID of the credit file, user information (such as the list of credit users), merchant information (such as the list of merchant numbers), and the credit file. Business type, credit time. The index server also stores keywords corresponding to the credentialing file, and a keyword summary information list composed of multiple keywords. The keywords are generated by the index server according to the entire content of the credit authorization file, that is, the keywords are part of the content of the credit authorization file.

用户在需要获取授信文件时,向查询服务器发送查询请求。查询请求中包括有用户所需获取的授信文件的关键词。在此,将用户需要获取的授信文件定义为第一授信文件,且将用户所需获取的授信文件的关键词定义为第一关键词。查询服务器将查询请求转发至索引服务器。索引服务器从查询请求中获取第一关键词。查询服务器装载有用户授信存证平台对应的应用程序,用户授信存证平台指的是用户、商户存储授信文件的平台。When the user needs to obtain the credit authorization file, he sends a query request to the query server. The query request includes keywords of the credit documents that the user needs to obtain. Here, the credit authorization file that the user needs to obtain is defined as the first credit authorization file, and the keyword of the credit authorization file that the user needs to obtain is defined as the first keyword. The query server forwards the query request to the index server. The index server obtains the first keyword from the query request. The query server is loaded with an application program corresponding to the user credit certificate storage platform, and the user credit certificate storage platform refers to a platform for users and merchants to store credit documents.

步骤S20,根据查询请求获取第一基础信息,第一基础信息包括第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种。In step S20, the first basic information is obtained according to the query request, and the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file.

索引服务器中关联存储有授信文件的存储路径、授信文件的基础信息以及授信文件的关键词。索引服务器在得到查询请求后,即可基于查询请求获取第一基础信息。具体的,查询请求中包括有第一关键词,索引服务器可以获取第一关键词关联的第一基础信息,第一基础信息包括第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种。此外,查询请求是查询服务器转发至索引服务器的,因而查询请求中携带有用户终端的标识,索引服务器获取标识对应的各个基础信息,再通过第一关键词在各个基础信息中确定第一基础信息。第一基础信息指的是,索引服务器根据查询请求所得到基础信息。The storage path of the credit authorization file, the basic information of the credit authorization file, and the keywords of the credit authorization file are associated and stored in the index server. After receiving the query request, the index server can obtain the first basic information based on the query request. Specifically, the query request includes the first keyword, and the index server can obtain the first basic information associated with the first keyword. The first basic information includes the user information, merchant information, business type, and credit time corresponding to the first credit file. at least one of the In addition, the query request is forwarded by the query server to the index server, so the query request carries the identifier of the user terminal, and the index server obtains each basic information corresponding to the identifier, and then determines the first basic information in each basic information through the first keyword . The first basic information refers to the basic information obtained by the index server according to the query request.

步骤S30,确定第一关键词以及第一基础信息关联的第一存储路径,并将第一存储路径反馈至查询服务器,其中,第一存储路径用于查询服务器从区块链节点获取第一授信文件,并将第一授信文件发送至用户终端。Step S30, determine the first storage path associated with the first keyword and the first basic information, and feed back the first storage path to the query server, wherein the first storage path is used by the query server to obtain the first credit from the blockchain node file, and send the first credential file to the user terminal.

索引服务器在得到第一关键词以及第一基础信息后,即可获取第一关键词以及第一基础信息关联的第一存储路径。第一存储路径即可视为第一授信文件在区块链节点所存储的路径。索引服务器将第一存储路径反馈至查询服务器,查询服务器则将第一存储路径发送至区块链节点,使得区块链节点基于第一存储路径获取第一授信文件,再将第一授信文件反馈至查询服务器,查询服务器再将第一授信文件转交给用户终端,从而使得用户获取第一授信文件。此外,查询服务器可以将第一存储路径发送至存储服务器,存储服务器从第一存储路径对应区块链节点中获取第一授信文件,再将第一授信文件发送至查询服务器。存储服务器装载有授信文件存储平台的应用程序。After the index server obtains the first keyword and the first basic information, it can obtain the first storage path associated with the first keyword and the first basic information. The first storage path can be regarded as the path where the first credentialing file is stored in the blockchain node. The index server feeds back the first storage path to the query server, and the query server sends the first storage path to the blockchain node, so that the blockchain node obtains the first credit file based on the first storage path, and then feeds back the first credit file to the query server, and the query server transfers the first credit authorization file to the user terminal, so that the user obtains the first credit authorization file. In addition, the query server may send the first storage path to the storage server, and the storage server obtains the first credit authorization file from the blockchain node corresponding to the first storage path, and then sends the first credit authorization file to the query server. The storage server is loaded with an application program of the trusted file storage platform.

在本实施例提供的技术方案中,接收查询服务器发送的查询请求,并通过查询请求获取关键词以及基础信息,从而基于关键词以及基础信息获取存储路径,并将存储路径发送至查询服务器,使得查询服务器基于存储路径从区块链节点中获取授信文件,并将授信文件发送至用户终端。本发明通过授信文件的部分内容对应的关键词,在基础信息对应的用户的所有授信文件进行查找,即可准确的定位到用户所要获取的授信文件,无需对用户所有的授信文件进行逐一比对,提高了授信文件的查询效率。In the technical solution provided by this embodiment, the query request sent by the query server is received, and keywords and basic information are obtained through the query request, so that the storage path is obtained based on the keyword and basic information, and the storage path is sent to the query server, so that The query server obtains the credit authorization file from the blockchain node based on the storage path, and sends the credit authorization file to the user terminal. The present invention searches all the credit files of the user corresponding to the basic information through keywords corresponding to part of the content of the credit file, and can accurately locate the credit file that the user wants to obtain, without comparing all the credit files of the user one by one , improving the query efficiency of credit documents.

参照图3,图3为本发明授信文件的获取方法第二实施例,基于第一实施例,步骤S10之前,还包括:Referring to Fig. 3, Fig. 3 is a second embodiment of the method for obtaining a credit authorization file in the present invention. Based on the first embodiment, before step S10, it also includes:

步骤S40,接收查询服务器发送的第二授信文件、第二授信文件对应的第二存储路径以及第二授信文件对应的第二基础信息,其中,第二存储路径是区块链节点存储第二授信文件的路径。Step S40, receiving the second credential file sent by the query server, the second storage path corresponding to the second credential file, and the second basic information corresponding to the second credential file, wherein the second storage path is the blockchain node storing the second credential The path to the file.

步骤S50,根据第二授信文件的所有内容创建第二授信文件对应的各个第二关键词。Step S50, creating respective second keywords corresponding to the second credit file according to all contents of the second credit file.

步骤S60,将各个第二关键词、第二存储路径以及第二基础信息关联存储,并将各个第二关键词发送至查询服务器。Step S60, store each second keyword, the second storage path, and the second basic information in association, and send each second keyword to the query server.

在本实施例中,用户、商户或者授信文件的监管方会提交授信文件给用户授信存证平台,也即将授信文件传输至查询服务器进行授信文件的存储。将需要进行存储的授信文件定义为第二授信文件。查询服务器将第二授信文件转发至存储服务器,存储服务器将第二授信文件存储至区块链节点得到第二授信文件在区块链节点存储的路径,并将路径定义为第二存储路径。存储服务器将第二存储路径返回至查询服务器,查询服务器则创建第二授信文件的第二基础信息,第二基础信息为授信文件的用户信息、商户信息、业务类型以及授信时间等。用户信息包括用户手机号、授信文件的区块链交易ID以及用户的身份证等信息,商户信息包括商户编号、授信文件的区块链加以ID、商户的身份证、手机号登信息。此外,查询服务器还会计算第二授信文件的哈希值。In this embodiment, the user, the merchant or the regulator of the credit file will submit the credit file to the user's credit certificate storage platform, that is, the credit file will be transmitted to the query server for storage of the credit file. The credit authorization file that needs to be stored is defined as the second credit authorization file. The query server forwards the second credit file to the storage server, and the storage server stores the second credit file in the block chain node to obtain the storage path of the second credit file in the block chain node, and defines the path as the second storage path. The storage server returns the second storage path to the query server, and the query server creates the second basic information of the second credit file. The second basic information is the user information, merchant information, business type, and credit time of the credit file. The user information includes the user's mobile phone number, the blockchain transaction ID of the credit document, and the user's ID card. The merchant information includes the merchant number, the blockchain ID of the credit document, the merchant's ID card, and the mobile phone number registration information. In addition, the query server also calculates the hash value of the second credential file.

查询服务器将第二授信文件、第二基础信息以及第二存储路径发送至索引服务器。索引服务器对第二授信文件进行全文索引创建第二授信文件的各个第二关键词,也即基于第二授信文件的所有内容创建各个第二关键词。索引服务器将各个第二关键词、第二存储路径、以及第二基础信息进行存储,并将各个第二关键词反馈至查询服务器,同时删除第二授信文件,以节省查询服务器的存储空间。The query server sends the second credentialing file, the second basic information and the second storage path to the index server. The index server performs full-text indexing on the second trusted file to create each second keyword of the second trusted file, that is, creates each second keyword based on all contents of the second trusted file. The index server stores each second keyword, the second storage path, and the second basic information, and feeds each second keyword back to the query server, and deletes the second credential file at the same time, so as to save the storage space of the query server.

查询服务器会将各个第二关键词、第二基础信息、第二存储路径进行关联存储形成授信记录。授信记录的数据结构如表-2所示:The query server associates and stores each second keyword, second basic information, and second storage path to form a credit record. The data structure of the credit record is shown in Table-2:

表-2Table 2

Figure GDA0004232576360000111
Figure GDA0004232576360000111

查询服务器会将各个第二关键词发送至用户终端,使得用户终端可以通过各个第二关键词得到存储的第二授信文件。The query server will send each second keyword to the user terminal, so that the user terminal can obtain the stored second credit authorization file through each second keyword.

在本实施例提供的技术方案中,索引服务器接收查询服务器发送的第二授信文件、第二授信文件的第二存储路径以及第二基础信息,从而对第二授信文件的所有内容进行全文索引以创建第二授信文件的各个第二关键词,并将各个第二关键词、第二存储路径以及第二基础信息进行关联存储,且将各个第二关键词发送至查询服务器,以便于用户通过第二关键词准确得到所需的授信文件。In the technical solution provided in this embodiment, the index server receives the second credit file, the second storage path of the second credit file, and the second basic information sent by the query server, so as to perform full-text indexing of all contents of the second credit file to Create each second keyword of the second credential file, associate and store each second keyword, the second storage path, and the second basic information, and send each second keyword to the query server, so that the user can pass the first The second keyword accurately obtains the required credit documents.

在一实施例中,将第一存储路径反馈至查询服务器的步骤包括:In an embodiment, the step of feeding back the first storage path to the query server includes:

获取第一存储路径关联的各个第三关键词;Obtaining each third keyword associated with the first storage path;

将第一基础信息、各个第三关键词以及第一存储路径发送至查询服务器,其中,第一基础信息用于查询服务器确定存储的基础信息是否被篡改,第三关键词用于查询服务器确定存储的关键词是否被篡改。Send the first basic information, each third keyword and the first storage path to the query server, wherein the first basic information is used to query the server to determine whether the stored basic information has been tampered with, and the third keyword is used to query the server to determine whether the stored Whether the key word has been tampered with.

在本实施例中,查询请求中包括有用户获取第一授信文件的第一关键词,索引服务器可以通过第一关键词以及第一基础信息获取第一存储路径,再通过第一存储路径获取各个第三关键词,各个第三关键词为第一授信文件在索引服务器存储的所有关键词。索引服务器再将第一存储路径、各个第三关键词以及第一基础信息发送至查询服务器。查询服务器实则为业务往来的服务器,查询服务器中存储的授信记录有可能被篡改。查询服务器在得到第一基础信息后,将第一基础信息与自身存储的第一授信文件对应的基础信息进行比对,以确定查询服务器存储的基础信息是否被篡改,若被篡改,则将存储的基础信息替换为第一基础信息。查询服务器在获得各个第三关键词后,将各个第三关键词与存储的第一授信文件的各个关键词进行比对,以确定存储的关键词是否被篡改,若是不同,则将存储的各个关键词替换为第三关键词。In this embodiment, the query request includes the first keyword for the user to obtain the first credentialing file, and the index server can obtain the first storage path through the first keyword and the first basic information, and then obtain each file through the first storage path. The third keywords, each third keyword is all the keywords stored in the index server of the first trusted file. The index server then sends the first storage path, each third keyword and the first basic information to the query server. The query server is actually a server for business transactions, and the credit records stored in the query server may be tampered with. After obtaining the first basic information, the query server compares the first basic information with the basic information corresponding to the first credit file stored by itself to determine whether the basic information stored in the query server has been tampered with, and if tampered, the stored The basic information of is replaced with the first basic information. After obtaining each third keyword, the query server compares each third keyword with each keyword of the stored first credit authorization file to determine whether the stored keyword has been tampered with, and if it is different, then compares each stored keyword The keyword is replaced with a third keyword.

本发明化提供一种授信文件的获取方法。The invention provides a method for obtaining a credit authorization file.

参照图4,图4为本发明授信文件的获取方法第三实施例,应用于查询服务器,授信文件的获取方法包括:Referring to Fig. 4, Fig. 4 is a third embodiment of the method for obtaining a credit authorization file according to the present invention, which is applied to a query server, and the method for obtaining a credit authorization file includes:

步骤S100,接收用户终端发送的查询请求,并将查询请求发送至索引服务器,其中,查询请求包括第一关键词,第一关键词为用户终端请求查询的第一授信文件的部分内容。Step S100, receiving a query request sent by the user terminal, and sending the query request to the index server, wherein the query request includes a first keyword, and the first keyword is part of the content of the first credentialing file that the user terminal requests to query.

在本实施例中,执行主体为查询服务器。用户在需要获取授信文件时,向查询服务器发送查询请求。查询请求中包括有用户所需获取的授信文件的关键词。在此,将用户需要获取的授信文件定义为第一授信文件,且将用户所需获取的授信文件的关键词定义为第一关键词。查询服务器将查询请求转发至索引服务器。索引服务器从查询请求中获取第一关键词。查询服务器装载有用户授信存证平台对应的应用程序,用户授信存证平台指的是用户、商户存储授信文件的平台。In this embodiment, the execution subject is the query server. When the user needs to obtain the credit authorization file, he sends a query request to the query server. The query request includes keywords of the credit documents that the user needs to obtain. Here, the credit authorization file that the user needs to obtain is defined as the first credit authorization file, and the keyword of the credit authorization file that the user needs to obtain is defined as the first keyword. The query server forwards the query request to the index server. The index server obtains the first keyword from the query request. The query server is loaded with an application program corresponding to the user credit certificate storage platform, and the user credit certificate storage platform refers to a platform for users and merchants to store credit documents.

索引服务器装载有区块链全文索引平台对应的应用程序,区块链全文索引平台也即索引服务器存储有区块链交易ID列表、关键词的摘要信息列表以及基础信息等。具体的,索引服务器存储的数据如表-1所示:The index server is loaded with the application program corresponding to the blockchain full-text index platform, and the blockchain full-text index platform, that is, the index server, stores the blockchain transaction ID list, keyword summary information list, and basic information. Specifically, the data stored by the index server is shown in Table-1:

表-1Table 1

Figure GDA0004232576360000131
Figure GDA0004232576360000131

如表-1所示,索引服务器存储有授信文件的基础信息,基础信息如授信文件的区块链交易ID、用户信息(如授信用户列表)、商户信息(如商户编号列表)、授信文件的业务类型、授信时间。索引服务器还存储有授信文件所对应的关键词,以及由多个关键词组成的关键词摘要信息列表。关键词是索引服务器根据授信文件的全部内容生成的,也即关键词是授信文件的部分内容。索引服务器中关联存储有授信文件的存储路径、授信文件的基础信息以及授信文件的关键词。索引服务器在得到查询请求后,即可基于查询请求获取第一基础信息。具体的,查询请求中包括有第一关键词,索引服务器可以获取第一关键词关联的第一基础信息,第一基础信息包括第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种。此外,查询请求是查询服务器转发至索引服务器的,因而查询请求中携带有用户终端的标识,索引服务器获取标识对应的各个基础信息,再通过第一关键词在各个基础信息中确定第一基础信息。第一基础信息指的是,索引服务器根据查询请求所得到基础信息。As shown in Table-1, the index server stores the basic information of the credit file, such as the blockchain transaction ID of the credit file, user information (such as the list of credit users), merchant information (such as the list of merchant numbers), and the credit file. Business type, credit time. The index server also stores keywords corresponding to the credentialing file, and a keyword summary information list composed of multiple keywords. The keywords are generated by the index server according to the entire content of the credit authorization file, that is, the keywords are part of the content of the credit authorization file. The storage path of the credit authorization file, the basic information of the credit authorization file, and the keywords of the credit authorization file are associated and stored in the index server. After receiving the query request, the index server can obtain the first basic information based on the query request. Specifically, the query request includes the first keyword, and the index server can obtain the first basic information associated with the first keyword. The first basic information includes the user information, merchant information, business type, and credit time corresponding to the first credit file. at least one of the In addition, the query request is forwarded by the query server to the index server, so the query request carries the identifier of the user terminal, and the index server obtains each basic information corresponding to the identifier, and then determines the first basic information in each basic information through the first keyword . The first basic information refers to the basic information obtained by the index server according to the query request.

步骤S200,接收索引服务器反馈的第一授权文件的第一存储路径,并向区块链节点发送第一存储路径,其中,第一存储路径是索引服务器根据第一基础信息以及第一关键词获取的,第一基础信息包括第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种。Step S200, receiving the first storage path of the first authorization file fed back by the index server, and sending the first storage path to the blockchain node, wherein the first storage path is obtained by the index server according to the first basic information and the first keyword Yes, the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file.

索引服务器在得到第一关键词以及第一基础信息后,即可获取第一关键词以及第一基础信息关联的第一存储路径。第一存储路径即可视为第一授信文件在区块链节点所存储的路径。After the index server obtains the first keyword and the first basic information, it can obtain the first storage path associated with the first keyword and the first basic information. The first storage path can be regarded as the path where the first credentialing file is stored in the blockchain node.

索引服务器将第一存储路径反馈至查询服务器,查询服务器则将第一存储路径发送至区块链节点,使得区块链节点基于第一存储路径获取第一授信文件,再将第一授信文件反馈至查询服务器,也即查询服务器间接从区块链节点中获取第一授信文件。此外,查询服务器可以将第一存储路径发送至存储服务器,存储服务器从第一存储路径对应区块链节点中获取第一授信文件,再将第一授信文件发送至查询服务器,也即查询服务器直接从区块链节点中获取第一授信文件。存储服务器装载有授信文件存储平台的应用程序。The index server feeds back the first storage path to the query server, and the query server sends the first storage path to the blockchain node, so that the blockchain node obtains the first credit file based on the first storage path, and then feeds back the first credit file to the query server, that is, the query server indirectly obtains the first credit authorization file from the blockchain node. In addition, the query server can send the first storage path to the storage server, and the storage server obtains the first credit authorization file from the blockchain node corresponding to the first storage path, and then sends the first credit authorization file to the query server, that is, the query server directly Obtain the first credit authorization file from the blockchain node. The storage server is loaded with an application program of the trusted file storage platform.

步骤S300,接收区块链节点反馈的第一授信文件,并将第一授信文件发送至用户终端。Step S300, receiving the first credit file fed back by the blockchain node, and sending the first credit file to the user terminal.

查询服务器接收区块链节点直接或者间接反馈的第一授信文件,查询服务器再将第一授信文件发送至用户终端,从而使得用户获取第一授信文件。The query server receives the first credit file directly or indirectly fed back by the blockchain node, and the query server sends the first credit file to the user terminal, so that the user can obtain the first credit file.

在本实施例提供的技术方案中,接收用户终端的查询请求后,将查询请求发送至索引服务器,再接收索引服务器基于查询请求得到的授信文件的存储路径,从而基于存储路径从区块链节点中获取授信文件,并将授信文件发送至用户终端。本发明通过授信文件的部分内容对应的关键词,在基础信息对应的用户的所有授信文件进行查找,即可准确的定位到用户所要获取的授信文件,无需对用户所有的授信文件进行逐一比对,提高了授信文件的查询效率。In the technical solution provided by this embodiment, after receiving the query request from the user terminal, the query request is sent to the index server, and then the storage path of the credit authorization file obtained by the index server based on the query request is received, so that based on the storage path, from the blockchain node Obtain the credit authorization file, and send the credit authorization file to the user terminal. The present invention searches all the credit files of the user corresponding to the basic information through keywords corresponding to part of the content of the credit file, and can accurately locate the credit file that the user wants to obtain, without comparing all the credit files of the user one by one , improving the query efficiency of credit documents.

参照图5,图5为本发明授信文件的获取方法第四实施例,基于第三实施例,步骤S100之前包括:Referring to Fig. 5, Fig. 5 is a fourth embodiment of the method for obtaining a credit authorization file according to the present invention. Based on the third embodiment, steps before S100 include:

步骤S400,接收用户终端发送的第二授信文件,并将第二授信文件发送至区块链节点。Step S400, receiving the second credit file sent by the user terminal, and sending the second credit file to the blockchain node.

步骤S500,接收区块链节点反馈的第二授信文件的第二存储路径,并创建第二授信文件对应的第二基础信息,第二基础信息包括第二授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种。Step S500, receiving the second storage path of the second credit file fed back by the blockchain node, and creating the second basic information corresponding to the second credit file, the second basic information includes user information, merchant information, At least one of business type and credit granting time.

步骤S600,将第二授信文件、第二存储路径以及第二基础信息发送至索引服务器,其中,索引服务器创建第二授信文件的各个第二关键词。Step S600, sending the second trusted file, the second storage path and the second basic information to the index server, wherein the index server creates each second keyword of the second trusted file.

步骤S700,接收并存储索引服务器反馈的各个第二关键词,且将各个第二关键词发送至用户终端。Step S700, receiving and storing each second keyword fed back by the index server, and sending each second keyword to the user terminal.

在本实施例中,用户、商户或者授信文件的监管方会提交授信文件给用户授信存证平台,也即将授信文件传输至查询服务器进行授信文件的存储。将需要进行存储的授信文件定义为第二授信文件。查询服务器将第二授信文件转发至存储服务器,存储服务器将第二授信文件存储至区块链节点得到第二授信文件在区块链节点存储的路径,并将路径定义为第二存储路径。存储服务器将第二存储路径返回至查询服务器,查询服务器则创建第二授信文件的第二基础信息,第二基础信息为授信文件的用户信息、商户信息、业务类型以及授信时间等。用户信息包括用户手机号、授信文件的区块链交易ID以及用户的身份证等信息,商户信息包括商户编号、授信文件的区块链加以ID、商户的身份证、手机号登信息。此外,查询服务器还会计算第二授信文件的哈希值。In this embodiment, the user, the merchant or the regulator of the credit file will submit the credit file to the user's credit certificate storage platform, that is, the credit file will be transmitted to the query server for storage of the credit file. The credit authorization file that needs to be stored is defined as the second credit authorization file. The query server forwards the second credit file to the storage server, and the storage server stores the second credit file in the block chain node to obtain the storage path of the second credit file in the block chain node, and defines the path as the second storage path. The storage server returns the second storage path to the query server, and the query server creates the second basic information of the second credit file. The second basic information is the user information, merchant information, business type, and credit time of the credit file. The user information includes the user's mobile phone number, the blockchain transaction ID of the credit document, and the user's ID card. The merchant information includes the merchant number, the blockchain ID of the credit document, the merchant's ID card, and the mobile phone number registration information. In addition, the query server also calculates the hash value of the second credential file.

查询服务器将第二授信文件、第二基础信息以及第二存储路径发送至索引服务器。索引服务器对第二授信文件进行全文索引创建第二授信文件的各个第二关键词,也即基于第二授信文件的所有内容创建各个第二关键词。索引服务器将各个第二关键词、第二存储路径、以及第二基础信息进行存储,并将各个第二关键词反馈至查询服务器,同时删除第二授信文件,以节省查询服务器的存储空间。The query server sends the second credentialing file, the second basic information and the second storage path to the index server. The index server performs full-text indexing on the second trusted file to create each second keyword of the second trusted file, that is, creates each second keyword based on all contents of the second trusted file. The index server stores each second keyword, the second storage path, and the second basic information, and feeds each second keyword back to the query server, and deletes the second credential file at the same time, so as to save the storage space of the query server.

查询服务器会将各个第二关键词、第二基础信息第二存储路径进行关联存储形成授信记录。授信记录的数据结构如表-2所示:The query server will associate and store each second keyword and the second storage path of the second basic information to form a credit record. The data structure of the credit record is shown in Table-2:

表-2Table 2

Figure GDA0004232576360000161
Figure GDA0004232576360000161

查询服务器会将各个第二关键词发送至用户终端,使得用户终端可以通过各个第二关键词得到存储的第二授信文件。The query server will send each second keyword to the user terminal, so that the user terminal can obtain the stored second credit authorization file through each second keyword.

在本实施例提供的技术方案中,查询服务器接收用户终端发送的第二授信文件,并将第二授信文件发送至区块链节点进行存储,查询服务器再将区块链节点反馈的第二存储路径、第二授信文件的第二基础信息以及第二授信文件发送索引服务器,使得索引服务器创建第二授信文件的各个第二关键词,再将索引服务器反馈的各个第二关键词发送至用户终端,以便于用户通过第二关键词准确得到所需的授信文件。In the technical solution provided by this embodiment, the query server receives the second credit file sent by the user terminal, and sends the second credit file to the blockchain node for storage, and the query server then stores the second credit file fed back by the blockchain node. The path, the second basic information of the second trusted file, and the second trusted file are sent to the index server, so that the index server creates each second keyword of the second trusted file, and then sends each second keyword fed back by the index server to the user terminal , so that the user can accurately obtain the required credit file through the second keyword.

在一实施例中,索引服务器在确定第一存储路径时,会向查询信息反馈查询请求的响应消息,响应消息中包括有各个第三关键词以及第一基础信息,第三关键词与第一存储路径关联存储于索引服务器。在接收到区块链节点反馈的第一授信文件后,查询服务器比对各个第三关键词与各个第二关键词,且比对第一基础信息与第二基础信息。当第三关键词在各个第二关键词不具备相同的关键词时,根据各个第三关键词更新各个第二关键词,也即将各个第二关键词替换为第三关键词;当第一基础信息与第二基础信息不同时,根据第一基础信息更新第二基础信息,也即将第二基础信息替换为第一基础信息。In an embodiment, when the index server determines the first storage path, it will feed back a response message of the query request to the query information, the response message includes each third keyword and the first basic information, the third keyword and the first The storage path association is stored in the index server. After receiving the first credentialing file fed back by the blockchain node, the query server compares each third keyword with each second keyword, and compares the first basic information with the second basic information. When the third keyword does not have the same keyword in each second keyword, update each second keyword according to each third keyword, that is, replace each second keyword with a third keyword; when the first basis When the information is different from the second basic information, the second basic information is updated according to the first basic information, that is, the second basic information is replaced with the first basic information.

在一实施例中,当查询服务器接收到区块链节点反馈的第一授信文件后,查询服务器获取与第一授信文件相同的第二授信文件的第一哈希值,且计算第一授信文件的第二哈希值。查询服务器在比对第一哈希值以及第二哈希值。若是第一哈希值与第二哈希值不同,则查询服务器存储的授信文件受到篡改,查询服务器则根据第一授信文件更新第一授信文件相同的第二授信文件,也即将篡改的第二授信文件替换为第一授信文件。In one embodiment, after the query server receives the first credit file fed back by the blockchain node, the query server obtains the first hash value of the second credit file that is the same as the first credit file, and calculates the first hash value of the first credit file The second hash value of . The query server is comparing the first hash value and the second hash value. If the first hash value is different from the second hash value, the credit file stored by the query server has been tampered with, and the query server updates the second credit file that is the same as the first credit file according to the first credit file, which is the second file that is about to be tampered. The credit document is replaced by the first credit document.

本发明授信文件的获取方法分为两个阶段,第一个阶段为授信文件存证,第二个阶段为授信文件的取证。以下对两个阶段进行简要说明。The obtaining method of the credit granting document of the present invention is divided into two stages, the first stage is depositing the credit granting document, and the second stage is obtaining the credit granting document. The two stages are briefly described below.

参照图6,图6为授信文件存证过程的交互图,具体步骤如下:Referring to Figure 6, Figure 6 is an interactive diagram of the process of depositing credit documents, and the specific steps are as follows:

1、商户向用户授信存证平台(区块链存证平台)提交授信文件,授信文件为电子形式,如Word等;1. The merchant submits credit documents to the user's credit certificate storage platform (blockchain certificate deposit platform), and the credit documents are in electronic form, such as Word, etc.;

2、授信存证平台将授信文件转发至授信文件存储平台(分布式存储平台)进行分布式存储;2. The credit certificate storage platform forwards the credit file to the credit file storage platform (distributed storage platform) for distributed storage;

3、授信文件在授信文件存储平台存储成功,并返回授信文件路径;3. The credit file is successfully stored on the credit file storage platform, and the path of the credit file is returned;

4、授信存证平台创建区块链用户授信记录,计算授信文件Hash值并更新字段内容,如基础信息(用户、商户、业务类型等)、授信文件路径、授信文件Hash值,授信记录数据格式如表1所示;4. The credit certificate storage platform creates blockchain user credit records, calculates the Hash value of the credit file and updates the field content, such as basic information (users, merchants, business types, etc.), credit file path, credit file Hash value, and credit record data format As shown in Table 1;

5、授信存证平台将授信记录信息和授信文件转发至区块链全文索引平台;5. The credit certificate storage platform forwards the credit record information and credit documents to the blockchain full-text index platform;

6、区块链全文索引平台对授信文件进行全文索引,创建授信记录索引信息,索引信息数据格式如表2所示;全文索引记录创建成功后,返回授信存证平台关键词摘要信息;6. The blockchain full-text index platform performs full-text indexing of credit documents and creates credit record index information. The data format of the index information is shown in Table 2; after the full-text index record is successfully created, it returns the keyword summary information of the credit certificate storage platform;

7、授信存证平台更新授信记录中关键词摘要字段;7. The credit certificate storage platform updates the keyword summary field in the credit record;

8、授信存证平台将授信记录结果通知监管方和用户(即用户手机号);8. The credit certificate storage platform notifies the regulator and the user (ie, the user's mobile phone number) of the credit record result;

9、授信存证平台将授信记录结果通知商户。9. The credit certificate storage platform will notify the merchant of the credit record result.

参照图7,图7为授信文件取证过程的交互图,具体步骤如下:Referring to Figure 7, Figure 7 is an interactive diagram of the credit document evidence collection process, and the specific steps are as follows:

1、监管方或者用户向用户授信存证平台发起取证查询请求,请求中为要查询的关键词;1. The regulator or the user initiates a request for evidence collection to the user's credit certificate storage platform, and the request contains keywords to be queried;

2、用户授信存证平台将请求转发至区块链全文索引平台,根据关键词查询所有区块链交易ID列表和其关键词摘要信息列表。2. The user credit certificate storage platform forwards the request to the blockchain full-text index platform, and queries all blockchain transaction ID lists and their keyword summary information lists according to keywords.

3、区块链全文索引平台将区块链交易ID列表、关键词摘要信息列表,连同其他基础信息列表返回给用户授信存证平台;3. The blockchain full-text index platform returns the blockchain transaction ID list, keyword summary information list, and other basic information lists to the user credit certificate storage platform;

4、用户授信存证平台展开该关键词查询结果列表,并对每一条记录按照交易ID在授信存证平台查找授信记录,如果查到,则将用户授信存证平台中的基础信息、关键词摘要信息与区块链全文索引平台中的信息与接收的信息进行比对,以验证授信存证平台存储的授信记录未被篡改;4. The user credit certificate storage platform expands the keyword query result list, and searches for each record on the credit certificate storage platform according to the transaction ID. If found, the user's basic information and keywords in the credit certificate storage platform The summary information is compared with the information in the blockchain full-text index platform and the received information to verify that the credit record stored in the credit certificate storage platform has not been tampered with;

5、根据用户授信存证平台查询到的授信文件路径,向授信文件存储平台发起查询,获取原始授信文件;5. Initiate a query to the credit file storage platform according to the path of the credit file inquired by the user's credit certificate storage platform to obtain the original credit file;

6、授信文件存储平台将查询到的授信文件返回至用户授信存证平台;6. The credit file storage platform returns the queried credit file to the user credit certificate storage platform;

7、用户授信存证平台计算授信文件Hash值,与用户授信存证平台内授信记录中的Hash值进行比对,确定用户授信存证平台存储的授信文件未被篡改;7. The user credit certificate storage platform calculates the Hash value of the credit file, compares it with the Hash value in the credit record in the user credit certificate storage platform, and determines that the credit file stored in the user credit certificate storage platform has not been tampered with;

8、用户授信平台将授信记录和授信文件返回至监管法或用户。8. The user credit platform returns the credit records and documents to the supervisory law or the user.

需要说明的的是,商户、监管方以及用户在上述实施例是用户终端,用户授信存证平台在上述实施例为查询服务器,区块链全文索引就平台在上述实施例是索引服务器,授信文件存储平台在上述实施例为存储服务器,且存储服务器连接多个区块链节点。It should be noted that merchants, regulators, and users are user terminals in the above embodiments, the user credit certificate storage platform is a query server in the above embodiments, the blockchain full-text index platform is an index server in the above embodiments, and the credit file In the above embodiments, the storage platform is a storage server, and the storage server is connected to multiple blockchain nodes.

本发明还提供一种索引服务器,参照图8,索引服务器800包括:The present invention also provides an index server. Referring to FIG. 8, the index server 800 includes:

第一接收模块801,用于接收查询服务器发送的查询请求,查询请求中包括第一关键词,其中,第一关键词为查询服务器所请求查询的第一授信文件的部分内容;Thefirst receiving module 801 is configured to receive a query request sent by the query server, where the query request includes a first keyword, wherein the first keyword is part of the content of the first credit authorization file requested by the query server;

获取模块802,用于根据查询请求获取第一基础信息,第一基础信息包括第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;An acquiringmodule 802, configured to acquire first basic information according to a query request, where the first basic information includes at least one of user information, merchant information, business type, and credit granting time corresponding to the first credit grant file;

确定模块803,用于确定第一关键词以及第一基础信息关联的第一存储路径,并将第一存储路径反馈至查询服务器,其中,第一存储路径用于查询服务器从区块链节点获取第一授信文件,并将第一授信文件发送至用户终端。The determiningmodule 803 is configured to determine the first storage path associated with the first keyword and the first basic information, and feed back the first storage path to the query server, wherein the first storage path is used by the query server to obtain The first credential file, and send the first credible file to the user terminal.

在一实施例中,索引服务器800包括:In one embodiment, index server 800 includes:

第一接收模块801,用于接收查询服务器发送的第二授信文件、第二授信文件对应的第二存储路径以及第二授信文件对应的第二基础信息,其中,第二存储路径是区块链节点存储第二授信文件的路径;Thefirst receiving module 801 is configured to receive the second credit file sent by the query server, the second storage path corresponding to the second credit file, and the second basic information corresponding to the second credit file, wherein the second storage path is a block chain The node stores the path of the second credential file;

创建模块,用于根据第二授信文件的所有内容创建第二授信文件对应的各个第二关键词;A creating module, configured to create each second keyword corresponding to the second credit file according to all contents of the second credit file;

存储模块,用于将各个第二关键词、第二存储路径以及第二基础信息关联存储,并将各个第二关键词发送至查询服务器。The storage module is used for associating and storing each second keyword, the second storage path, and the second basic information, and sending each second keyword to the query server.

在一实施例中,索引服务器800包括:In one embodiment, index server 800 includes:

获取模块802,用于获取第一存储路径关联的各个第三关键词;Anacquisition module 802, configured to acquire each third keyword associated with the first storage path;

发送模块,用于将第一基础信息、各个第三关键词以及第一存储路径发送至查询服务器,其中,第一基础信息用于查询服务器确定存储的基础信息是否被篡改,第三关键词用于查询服务器确定存储的关键词是否被篡改。A sending module, configured to send the first basic information, each third keyword, and the first storage path to the query server, wherein the first basic information is used to query the server to determine whether the stored basic information has been tampered with, and the third keyword uses It is used to query the server to determine whether the stored keywords have been tampered with.

本发明还提供一种查询服务器,参照图9,查询服务器900包括:The present invention also provides a query server. Referring to FIG. 9, thequery server 900 includes:

第二接收模块901,用于接收用户终端发送的查询请求,并将查询请求发送至索引服务器,其中,查询请求包括第一关键词,第一关键词为用户终端请求查询的第一授信文件的部分内容;Thesecond receiving module 901 is configured to receive the query request sent by the user terminal, and send the query request to the index server, wherein the query request includes a first keyword, and the first keyword is the first credential file requested by the user terminal to query Part;

第二接收模块901,用于接收索引服务器反馈的第一授权文件的第一存储路径,并向区块链节点发送第一存储路径,其中,第一存储路径是索引服务器根据第一基础信息以及第一关键词获取的,第一基础信息包括第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;Thesecond receiving module 901 is configured to receive the first storage path of the first authorization file fed back by the index server, and send the first storage path to the blockchain node, wherein the first storage path is obtained by the index server according to the first basic information and Acquired by the first keyword, the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;

第二接收模块901,用于接收区块链节点反馈的第一授信文件,并将第一授信文件发送至用户终端。Thesecond receiving module 901 is configured to receive the first credit file fed back by the blockchain node, and send the first credit file to the user terminal.

在一实施例中,查询服务器900包括:In one embodiment, thequery server 900 includes:

第二接收模块901,用于接收用户终端发送的第二授信文件,并将第二授信文件发送至区块链节点;Thesecond receiving module 901 is configured to receive the second credit file sent by the user terminal, and send the second credit file to the blockchain node;

第二接收模块901,用于接收区块链节点反馈的第二授信文件的第二存储路径,并创建第二授信文件对应的第二基础信息,第二基础信息包括第二授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;Thesecond receiving module 901 is configured to receive the second storage path of the second credit file fed back by the blockchain node, and create the second basic information corresponding to the second credit file, the second basic information includes the user corresponding to the second credit file At least one of information, business information, business type and credit time;

发送模块,用于将第二授信文件、第二存储路径以及第二基础信息发送至索引服务器,其中,索引服务器创建第二授信文件的各个第二关键词;A sending module, configured to send the second trusted file, the second storage path, and the second basic information to the index server, wherein the index server creates each second keyword of the second trusted file;

第二接收模块901,用于接收并存储索引服务器反馈的各个第二关键词,且将各个第二关键词发送至用户终端。Thesecond receiving module 901 is configured to receive and store each second keyword fed back by the index server, and send each second keyword to the user terminal.

在一实施例中,查询服务器900包括:In one embodiment, thequery server 900 includes:

第二接收模块901,用于接收索引服务器反馈的查询请求的响应消息,查询请求的响应消息中包括第一存储路径,查询请求的响应消息中还包括各个第三关键词和第一基础信息,第三关键词与第一存储路径关联存储于索引服务器;Thesecond receiving module 901 is configured to receive the response message of the query request fed back by the index server, the response message of the query request includes the first storage path, and the response message of the query request also includes each third keyword and the first basic information, The third keyword is associated with the first storage path and stored in the index server;

比对模块,用于比对各个第三关键词与各个第二关键词,且比对第一基础信息与第二基础信息;A comparison module, configured to compare each third keyword with each second keyword, and compare the first basic information with the second basic information;

更新模块,用于当第三关键词在各个第二关键词不具备相同的关键词时,根据各个第三关键词更新各个第二关键词;An update module, configured to update each second keyword according to each third keyword when the third keyword does not have the same keyword as each second keyword;

更新模块,用于当第一基础信息与第二基础信息不同时,根据第一基础信息更新第二基础信息。An update module, configured to update the second basic information according to the first basic information when the first basic information is different from the second basic information.

在一实施例中,查询服务器900包括:In one embodiment, thequery server 900 includes:

获取模块,用于获取第一授信文件相同的第二授信文件的第一哈希值,并计算第一授信文件的第二哈希值;An acquiring module, configured to acquire a first hash value of a second trusted file identical to the first trusted file, and calculate a second hash value of the first trusted file;

比对模块,用于比对第一哈希值以及第二哈希值;Comparison module, used for comparing the first hash value and the second hash value;

更新模块,用于在第一哈希值与第二哈希值不同时,根据第一授信文件更新第一授信文件相同的第二授信文件。An updating module, configured to update a second credit file that is the same as the first credit file according to the first credit file when the first hash value is different from the second hash value.

图10是根据一示例性实施例示出的一种索引服务器/查询服务器的硬件结构图。Fig. 10 is a hardware structural diagram of an index server/query server according to an exemplary embodiment.

索引服务器/查询服务器1000可以包括:处理器1001,例如CPU,存储器1002以及收发器1003。本领域技术人员可以理解,图10中示出的结构并不构成对索引服务器/查询服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。存储器1002可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The index server/query server 1000 may include: aprocessor 1001 such as a CPU, amemory 1002 and atransceiver 1003 . Those skilled in the art can understand that the structure shown in Figure 10 does not constitute a limitation on the index server/query server, and may include more or less components than those shown in the illustration, or combine some components, or arrange different components . Thememory 1002 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

处理器1001可以调用存储器1002内存储的计算机程序,以完成上述的授信文件的获取方法的全部或部分步骤。Theprocessor 1001 can call the computer program stored in thememory 1002 to complete all or part of the steps of the above-mentioned method for obtaining the credit authorization document.

收发器1003用于接收外部设备发送的信息以及向外部设备发送信息。Thetransceiver 1003 is used for receiving information sent by the external device and sending information to the external device.

一种非临时性计算机可读存储介质,当该存储介质中的指令由索引服务器/查询服务器的处理器执行时,使得索引服务器/查询服务器能够执行上述授信文件的获取方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the index server/query server, the index server/query server can execute the above-mentioned method for obtaining a trusted file.

一种计算机程序产品,包括计算机程序,当该计算机程序由索引服务器/查询服务器的处理器执行时,使得索引服务器/查询服务器能够执行上述授信文件的获取方法。A computer program product, including a computer program. When the computer program is executed by a processor of the index server/query server, the index server/query server can execute the above-mentioned method for obtaining a trusted file.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本发明旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求书指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求书来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

Translated fromChinese
1.一种授信文件的获取方法,其特征在于,应用于索引服务器,包括:1. A method for obtaining a credit authorization file, characterized in that it is applied to an index server, comprising:接收查询服务器发送的查询请求,所述查询请求中包括第一关键词,其中,所述第一关键词为所述查询服务器所请求查询的第一授信文件的部分内容;receiving a query request sent by the query server, the query request including a first keyword, wherein the first keyword is part of the content of the first credit authorization file requested by the query server;根据所述查询请求获取第一基础信息,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;Obtain first basic information according to the query request, where the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;确定所述第一关键词以及所述第一基础信息关联的第一存储路径,并将所述第一存储路径反馈至所述查询服务器,其中,所述第一存储路径用于所述查询服务器从区块链节点获取所述第一授信文件,并将所述第一授信文件发送至用户终端;determining a first storage path associated with the first keyword and the first basic information, and feeding back the first storage path to the query server, wherein the first storage path is used for the query server Obtain the first credit file from the block chain node, and send the first credit file to the user terminal;所述将所述第一存储路径反馈至所述查询服务器的步骤包括:The step of feeding back the first storage path to the query server includes:获取所述第一存储路径关联的各个第三关键词;所述各个第三关键词为所述第一授信文件在所述索引服务器存储的所有关键词;Obtaining each third keyword associated with the first storage path; each third keyword is all the keywords stored in the index server of the first trusted file;将所述第一基础信息、各个所述第三关键词以及所述第一存储路径发送至所述查询服务器,其中,所述第一基础信息用于所述查询服务器将所述第一基础信息与自身存储的第一授信文件对应的基础信息进行比对,以确定存储的基础信息是否被篡改,所述第三关键词用于所述查询服务器确定存储的关键词是否被篡改。sending the first basic information, each of the third keywords and the first storage path to the query server, wherein the first basic information is used by the query server to store the first basic information comparing with the basic information corresponding to the first credit authorization file stored by itself to determine whether the stored basic information has been tampered with, and the third keyword is used by the query server to determine whether the stored keyword has been tampered with.2.根据权利要求1所述的授信文件的获取方法,其特征在于,所述接收查询请求的步骤之前,还包括:2. The method for obtaining credit authorization documents according to claim 1, characterized in that before the step of receiving the query request, it further comprises:接收所述查询服务器发送的第二授信文件、所述第二授信文件对应的第二存储路径以及所述第二授信文件对应的第二基础信息,其中,所述第二存储路径是所述区块链节点存储所述第二授信文件的路径;receiving the second credit file sent by the query server, the second storage path corresponding to the second credit file, and the second basic information corresponding to the second credit file, wherein the second storage path is the area The block chain node stores the path of the second credit authorization file;根据所述第二授信文件的所有内容创建所述第二授信文件对应的各个第二关键词;Create respective second keywords corresponding to the second credit file according to all contents of the second credit file;将所述各个所述第二关键词、所述第二存储路径以及所述第二基础信息关联存储,并将各个所述第二关键词发送至所述查询服务器。Store each of the second keywords, the second storage path, and the second basic information in association, and send each of the second keywords to the query server.3.一种授信文件的获取方法,其特征在于,应用于查询服务器,包括:3. A method for obtaining a credit authorization file, characterized in that it is applied to a query server, comprising:接收用户终端发送的查询请求,并将所述查询请求发送至索引服务器,其中,所述查询请求包括第一关键词,所述第一关键词为所述用户终端请求查询的第一授信文件的部分内容;receiving the query request sent by the user terminal, and sending the query request to the index server, wherein the query request includes a first keyword, and the first keyword is the first credential file that the user terminal requests to query. Part;接收所述索引服务器反馈的所述第一授信文件的第一存储路径,并向区块链节点发送所述第一存储路径,其中,所述第一存储路径是所述索引服务器根据第一基础信息以及所述第一关键词获取的,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;receiving the first storage path of the first trusted file fed back by the index server, and sending the first storage path to the block chain node, wherein the first storage path is the first storage path of the index server according to the first basis information and the first keyword, the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;接收所述区块链节点反馈的所述第一授信文件,并将所述第一授信文件发送至所述用户终端;receiving the first credit file fed back by the blockchain node, and sending the first credit file to the user terminal;所述接收所述索引服务器反馈的所述第一授信文件的第一存储路径的步骤包括:The step of receiving the first storage path of the first trusted file fed back by the index server includes:接收所述索引服务器反馈的所述查询请求的响应消息,所述查询请求的响应消息中包括所述第一存储路径,所述查询请求的响应消息中还包括各个第三关键词和所述第一基础信息,所述第三关键词与所述第一存储路径关联存储于所述索引服务器;Receiving a response message of the query request fed back by the index server, the response message of the query request includes the first storage path, and the response message of the query request further includes each third keyword and the first storage path. Basic information, the third keyword is associated with the first storage path and stored in the index server;将各个第二关键词、第二基础信息、第二存储路径进行关联存储形成授信记录;Associating and storing each second keyword, second basic information, and second storage path to form a credit record;所述接收所述区块链节点反馈的所述第一授信文件之后,还包括:After receiving the first credit file fed back by the blockchain node, it also includes:比对各个所述第三关键词与各个第二关键词,且比对所述第一基础信息与第二基础信息;comparing each of the third keywords with each of the second keywords, and comparing the first basic information with the second basic information;当所述第三关键词在各个所述第二关键词不具备相同的关键词时,根据各个所述第三关键词更新各个所述第二关键词;When the third keyword does not have the same keyword as each of the second keywords, each of the second keywords is updated according to each of the third keywords;当所述第一基础信息与所述第二基础信息不同时,根据所述第一基础信息更新所述第二基础信息。When the first basic information is different from the second basic information, updating the second basic information according to the first basic information.4.根据权利要求3所述的授信文件的获取方法,其特征在于,所述接收用户终端发送的查询请求的步骤之前,还包括:4. The method for obtaining a credit authorization file according to claim 3, characterized in that, before the step of receiving the query request sent by the user terminal, further comprising:接收所述用户终端发送的第二授信文件,并将所述第二授信文件发送至所述区块链节点;receiving the second credit file sent by the user terminal, and sending the second credit file to the block chain node;接收所述区块链节点反馈的所述第二授信文件的第二存储路径,并创建所述第二授信文件对应的第二基础信息,所述第二基础信息包括所述第二授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;receiving the second storage path of the second credit file fed back by the blockchain node, and creating second basic information corresponding to the second credit file, the second basic information including At least one of the user information, merchant information, business type and credit granting time;将所述第二授信文件、所述第二存储路径以及所述第二基础信息发送至所述索引服务器,其中,所述索引服务器创建所述第二授信文件的各个第二关键词;sending the second credential file, the second storage path, and the second basic information to the index server, wherein the index server creates each second keyword of the second credential file;接收并存储所述索引服务器反馈的各个第二关键词,且将各个所述第二关键词发送至所述用户终端。Receiving and storing each second keyword fed back by the index server, and sending each second keyword to the user terminal.5.根据权利要求4所述的授信文件的获取方法,其特征在于,所述接收所述区块链节点反馈的所述第一授信文件的步骤之后,还包括:5. The method for obtaining a credit authorization file according to claim 4, characterized in that, after the step of receiving the first credit authorization file fed back by the blockchain node, further comprising:获取所述第一授信文件相同的第二授信文件的第一哈希值,并计算所述第一授信文件的第二哈希值;Obtaining a first hash value of a second trusted file identical to the first trusted file, and calculating a second hash value of the first trusted file;比对第一哈希值以及所述第二哈希值;comparing the first hash value with the second hash value;在所述第一哈希值与所述第二哈希值不同时,根据所述第一授信文件更新所述第一授信文件相同的所述第二授信文件。When the first hash value is different from the second hash value, update the second credit file that is the same as the first credit file according to the first credit file.6.一种索引服务器,其特征在于,包括:6. An index server, characterized in that, comprising:第一接收模块,用于接收查询服务器发送的查询请求,所述查询请求中包括第一关键词,其中,所述第一关键词为所述查询服务器所请求查询的第一授信文件的部分内容;The first receiving module is configured to receive the query request sent by the query server, the query request includes a first keyword, wherein the first keyword is part of the content of the first credit authorization file requested by the query server ;获取模块,用于根据所述查询请求获取第一基础信息,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;An acquisition module, configured to acquire first basic information according to the query request, where the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file;确定模块,用于确定所述第一关键词以及所述第一基础信息关联的第一存储路径,并将所述第一存储路径反馈至所述查询服务器,其中,所述第一存储路径用于所述查询服务器从区块链节点获取所述第一授信文件,并将所述第一授信文件发送至用户终端;A determining module, configured to determine a first storage path associated with the first keyword and the first basic information, and feed back the first storage path to the query server, wherein the first storage path uses Obtaining the first credit file from the blockchain node at the query server, and sending the first credit file to the user terminal;获取模块,用于获取所述第一存储路径关联的各个第三关键词;所述各个第三关键词为所述第一授信文件在所述索引服务器存储的所有关键词;An acquisition module, configured to acquire the third keywords associated with the first storage path; the third keywords are all keywords stored in the index server of the first credentialed file;发送模块,用于将所述第一基础信息、各个所述第三关键词以及所述第一存储路径发送至所述查询服务器,其中,所述第一基础信息用于所述查询服务器将所述第一基础信息与自身存储的第一授信文件对应的基础信息进行比对,以确定存储的基础信息是否被篡改,所述第三关键词用于所述查询服务器确定存储的关键词是否被篡改。A sending module, configured to send the first basic information, each of the third keywords, and the first storage path to the query server, wherein the first basic information is used by the query server to send the The first basic information is compared with the basic information corresponding to the first credit file stored by itself to determine whether the stored basic information has been tampered with, and the third keyword is used by the query server to determine whether the stored keyword has been tampered with. tamper.7.一种索引服务器,其特征在于,包括:存储器和处理器;7. An index server, comprising: a memory and a processor;所述存储器存储计算机执行指令;the memory stores computer-executable instructions;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求1或2所述的授信文件的获取方法。The processor executes the computer-executed instructions stored in the memory, so that the processor executes the method for obtaining a credit authorization document according to claim 1 or 2.8.一种查询服务器,其特征在于,包括:8. A query server, characterized in that, comprising:第二接收模块,用于接收用户终端发送的查询请求,并将所述查询请求发送至索引服务器,其中,所述查询请求包括第一关键词,所述第一关键词为所述用户终端请求查询的第一授信文件的部分内容;The second receiving module is configured to receive the query request sent by the user terminal, and send the query request to the index server, wherein the query request includes a first keyword, and the first keyword is the user terminal request Part of the content of the first credit document inquired;所述第二接收模块,用于接收所述索引服务器反馈的所述第一授信文件的第一存储路径,并向区块链节点发送所述第一存储路径,其中,所述第一存储路径是所述索引服务器根据第一基础信息以及所述第一关键词获取的,所述第一基础信息包括所述第一授信文件对应的用户信息、商户信息、业务类型以及授信时间中的至少一种;The second receiving module is configured to receive the first storage path of the first credit authorization file fed back by the index server, and send the first storage path to the block chain node, wherein the first storage path It is obtained by the index server according to the first basic information and the first keyword, and the first basic information includes at least one of user information, merchant information, business type, and credit time corresponding to the first credit file. kind;所述第二接收模块,用于接收所述区块链节点反馈的所述第一授信文件,并将所述第一授信文件发送至所述用户终端;The second receiving module is configured to receive the first credit file fed back by the blockchain node, and send the first credit file to the user terminal;所述接收所述索引服务器反馈的所述第一授信文件的第一存储路径的步骤包括:The step of receiving the first storage path of the first trusted file fed back by the index server includes:接收所述索引服务器反馈的所述查询请求的响应消息,所述查询请求的响应消息中包括所述第一存储路径,所述查询请求的响应消息中还包括各个第三关键词和所述第一基础信息,所述第三关键词与所述第一存储路径关联存储于所述索引服务器;将各个第二关键词、第二基础信息、第二存储路径进行关联存储形成授信记录;Receiving a response message of the query request fed back by the index server, the response message of the query request includes the first storage path, and the response message of the query request further includes each third keyword and the first storage path. Basic information, the third keyword and the first storage path are associated and stored in the index server; each second keyword, second basic information, and second storage path are associated and stored to form a credit record;比对模块,用于比对各个所述第三关键词与各个所述第二关键词,且比对所述第一基础信息与所述第二基础信息;A comparison module, configured to compare each of the third keywords with each of the second keywords, and compare the first basic information with the second basic information;更新模块,用于当所述第三关键词在各个所述第二关键词不具备相同的关键词时,根据各个所述第三关键词更新各个所述第二关键词;An update module, configured to update each of the second keywords according to each of the third keywords when the third keyword does not have the same keyword as each of the second keywords;更新模块,用于当所述第一基础信息与所述第二基础信息不同时,根据所述第一基础信息更新所述第二基础信息。An updating module, configured to update the second basic information according to the first basic information when the first basic information is different from the second basic information.9.一种查询服务器,其特征在于,包括:存储器和处理器;9. A query server, comprising: a memory and a processor;所述存储器存储计算机执行指令;the memory stores computer-executable instructions;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求3至5任一项所述的授信文件的获取方法。The processor executes the computer-executed instructions stored in the memory, so that the processor executes the method for obtaining a credit authorization document according to any one of claims 3 to 5.10.一种计算机可读存储介质,其特征在于,所述介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1至5任一项所述的授信文件的获取方法。10. A computer-readable storage medium, wherein computer-executable instructions are stored in the medium, and when the computer-executable instructions are executed by a processor, they are used to implement the credit authorization according to any one of claims 1 to 5. How to get the file.
CN202110975819.XA2021-08-242021-08-24Method for acquiring trusted file, index server, query server and mediumActiveCN113778950B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110975819.XACN113778950B (en)2021-08-242021-08-24Method for acquiring trusted file, index server, query server and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110975819.XACN113778950B (en)2021-08-242021-08-24Method for acquiring trusted file, index server, query server and medium

Publications (2)

Publication NumberPublication Date
CN113778950A CN113778950A (en)2021-12-10
CN113778950Btrue CN113778950B (en)2023-07-04

Family

ID=78838973

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110975819.XAActiveCN113778950B (en)2021-08-242021-08-24Method for acquiring trusted file, index server, query server and medium

Country Status (1)

CountryLink
CN (1)CN113778950B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115221193A (en)*2022-07-292022-10-21蚂蚁区块链科技(上海)有限公司 Data retrieval method, device and system
CN115017103B (en)*2022-08-082022-10-25平安银行股份有限公司Financial business image information acquisition method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101510877A (en)*2009-02-252009-08-19中国网络通信集团公司Single-point logging-on method and system, communication apparatus
CN102420804A (en)*2010-09-272012-04-18中国电信股份有限公司Client-side, user information processing module and content pushing method and system
CN103473312A (en)*2013-09-112013-12-25北京思特奇信息技术股份有限公司Independent basis information obtaining method
CN103617267A (en)*2013-12-032014-03-05北京奇虎科技有限公司Socialized extension search method, device and system
CN110222015A (en)*2019-06-192019-09-10北京泰迪熊移动科技有限公司A kind of reading of file data, querying method, device and readable storage medium storing program for executing
CN110223159A (en)*2019-05-222019-09-10深圳壹账通智能科技有限公司Credit data query method, apparatus, computer equipment and storage medium
CN111177532A (en)*2019-12-022020-05-19平安资产管理有限责任公司Vertical search method, device, computer system and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP5207696B2 (en)*2007-09-252013-06-12キヤノン株式会社 Information processing apparatus, information processing apparatus control method, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101510877A (en)*2009-02-252009-08-19中国网络通信集团公司Single-point logging-on method and system, communication apparatus
CN102420804A (en)*2010-09-272012-04-18中国电信股份有限公司Client-side, user information processing module and content pushing method and system
CN103473312A (en)*2013-09-112013-12-25北京思特奇信息技术股份有限公司Independent basis information obtaining method
CN103617267A (en)*2013-12-032014-03-05北京奇虎科技有限公司Socialized extension search method, device and system
CN110223159A (en)*2019-05-222019-09-10深圳壹账通智能科技有限公司Credit data query method, apparatus, computer equipment and storage medium
CN110222015A (en)*2019-06-192019-09-10北京泰迪熊移动科技有限公司A kind of reading of file data, querying method, device and readable storage medium storing program for executing
CN111177532A (en)*2019-12-022020-05-19平安资产管理有限责任公司Vertical search method, device, computer system and readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Information retrieval system in text-based skripsi document search file using vector space model method;Mochammad Abdul Azis 等;Journal of Physics: Conference Series;第1367卷;1-7*
一种基于内容权值的结构化文档检索方法;范轶彦 等;辽宁工学院学报(第06期);18-21*
基于区块链的非结构化大数据动态安全存储;段平;吉林大学学报(信息科学版);第38卷(第05期);595-600*

Also Published As

Publication numberPublication date
CN113778950A (en)2021-12-10

Similar Documents

PublicationPublication DateTitle
US10796020B2 (en)Consent receipt management systems and related methods
US10705801B2 (en)Data processing systems for identity validation of data subject access requests and related methods
US10839102B2 (en)Data processing systems for identifying and modifying processes that are subject to data subject access requests
US10685140B2 (en)Consent receipt management systems and related methods
CN110494876B (en)System and method for issuing and tracking digital tokens within distributed network nodes
CN110494877B (en)System and method for issuing and tracking digital tokens within distributed network nodes
US10445525B2 (en)Data privacy management system and method
CN109791591B (en)Method and system for identity and credential protection and verification via blockchain
US20200410117A1 (en)Consent receipt management systems and related methods
US10848496B2 (en)System and method for secure individual identification across multiple disparate entities
US20190179490A1 (en)Consent receipt management systems and related methods
US20190180051A1 (en)Consent receipt management systems and related methods
US20190180012A1 (en)Consent receipt management systems and related methods
US20180373891A1 (en)Data processing systems for identifying and modifying processes that are subject to data subject access requests
US11983711B1 (en)Hierarchy-based blockchain
CN113778950B (en)Method for acquiring trusted file, index server, query server and medium
US12413599B2 (en)Systems, methods, apparatuses and computer program products for executing data verification operations between independent computing resources
US20240428242A1 (en)Hierarchy-based distributed ledger
US20250307453A1 (en)Data Certification Process for Cloud Database Platform
US20250307248A1 (en)Data Certification Process for Updates to Data in Cloud Database Platform
CN115906178A (en)Database management method, data subscription end and data publishing end
US20240073194A1 (en)Systems and methods for providing a digital credentials registry
JP6338909B2 (en) Content control system
CN118708631A (en) A data query method and device
CN117726337A (en) Transaction information processing methods, devices, electronic equipment and storage media

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp