一种基于区块链的跨链可信查询方法及系统
本文涉及区块链技术领域,尤其涉及一种基于区块链的跨链可信查询方法及系统。包括,将接收自查询链发送的查询请求转换为查询消息,查询消息中包括目标数据的关键值;在对查询消息的共识验证结果为通过的情况下,将查询消息发送给被查询链,以使被查询链查询根据目标数据的关键值进行查询得到查询响应并发送,查询响应中包括查询到的所述目标数据;在对查询响应的共识验证结果为通过的情况下,根据查询响应对所述目标数据进行验证;当对目标数据的验证结果为通过的情况下,将目标数据发送给所述查询链。通过本文实施例,实现了区块链的跨链可信查询,保证了被查询链接收到的查询消息的安全性。 The invention relates to...
Saved in:
Format | Patent |
---|---|
Language | Chinese |
Published |
09.08.2022
|
Subjects | |
Online Access | Get full text |
Cover
Summary: | 本文涉及区块链技术领域,尤其涉及一种基于区块链的跨链可信查询方法及系统。包括,将接收自查询链发送的查询请求转换为查询消息,查询消息中包括目标数据的关键值;在对查询消息的共识验证结果为通过的情况下,将查询消息发送给被查询链,以使被查询链查询根据目标数据的关键值进行查询得到查询响应并发送,查询响应中包括查询到的所述目标数据;在对查询响应的共识验证结果为通过的情况下,根据查询响应对所述目标数据进行验证;当对目标数据的验证结果为通过的情况下,将目标数据发送给所述查询链。通过本文实施例,实现了区块链的跨链可信查询,保证了被查询链接收到的查询消息的安全性。
The invention relates to the technical field of block chains, in particular to a cross-chain trusted query method and system based on a block chain. Comprising the steps that a query request sent by a query chain is converted into a query message, and the query message comprises a key value of target data; under the condition that the consensus verification result of the query message is passed, the query message is sent to the queried chain, so that the queried chain queries according to the key value of the target data to obtain a query response and sends the query response, and the query response comprises the queried target data; under the condition that the consensus verification result of the query response is passed, verifying the |
---|---|
Bibliography: | Application Number: CN202210407404 |