WO2020233043A1 - Blockchain-based list type query method and node - Google Patents

Blockchain-based list type query method and node Download PDF

Info

Publication number
WO2020233043A1
WO2020233043A1 PCT/CN2019/120599 CN2019120599W WO2020233043A1 WO 2020233043 A1 WO2020233043 A1 WO 2020233043A1 CN 2019120599 W CN2019120599 W CN 2019120599W WO 2020233043 A1 WO2020233043 A1 WO 2020233043A1
Authority
WO
WIPO (PCT)
Prior art keywords
list
blockchain
blockchain node
type
use right
Prior art date
Application number
PCT/CN2019/120599
Other languages
French (fr)
Chinese (zh)
Inventor
夏良超
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020233043A1 publication Critical patent/WO2020233043A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24549Run-time optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed in the present application are a blockchain-based list type query method and a node, the method comprising: a first blockchain node sends a query request to the other blockchain nodes in a blockchain platform system by means of a broadcast mechanism, the query request carrying a list to be subjected to a list type query; when there are multiple lists to be subjected to a list type query, one or a plurality of the other blockchain nodes respond to the query request and return the list type of the queried list; and, on the basis of an operation usage right acquisition request of the blockchain nodes in response to the query request, the first blockchain node allocates operation usage rights to the blockchain nodes. Using the embodiments of the present application, the block chain platform system can be used to quickly query the list type of a specific list, increasing query efficiency.

Description

一种基于区块链的名单类型查询方法及节点List type query method and node based on blockchain
本申请要求于2019年5月20日提交中国专利局、申请号为201910428680.X、申请名称为“一种基于区块链的名单类型查询方法及节点”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 20, 2019, the application number is 201910428680.X, and the application name is "a blockchain-based list type query method and node", all of which The content is incorporated in this application by reference.
技术领域Technical field
本申请涉及数据处理技术领域,尤其涉及一种基于区块链的名单类型查询方法及节点。This application relates to the field of data processing technology, and in particular to a blockchain-based list type query method and node.
背景技术Background technique
目前黑名单是反欺诈业务中很重要的工具,之前的很长一段时间市面上的黑名单基本都是小范围的,没有大范围的黑名单,主要原因在于分散的数据难以聚集,互相之间的不信任。今年年初,苏宁金融宣布上线区块链黑名单共享平台系统,该平台系统采用超级账本结构联盟链技术,将金融机构的黑名单数据加密存储在区块链上,金融机构可通过独立部署区块链节点接入联盟链,开展区块链黑名单数据上传和查询等业务。但是,该区块链黑名单共享平台系统的功能比较单一,查询速度较慢,因此,实现基于区块链的名单共享平台系统的多功能以及提高名单的查询速度还有待进一步挖掘和研究。The current blacklist is a very important tool in the anti-fraud business. The blacklists on the market for a long period of time are basically small-scale, and there is no large-scale blacklist. The main reason is that scattered data is difficult to aggregate and mutual Distrust. At the beginning of this year, Suning Financial announced the launch of the blockchain blacklist sharing platform system. The platform system uses hyperledger structure alliance chain technology to encrypt and store the blacklist data of financial institutions on the blockchain. Financial institutions can deploy blocks independently Chain nodes connect to the alliance chain to carry out blockchain blacklist data upload and query services. However, the function of the blockchain blacklist sharing platform system is relatively single, and the query speed is relatively slow. Therefore, realizing the multi-functionality of the blockchain-based list sharing platform system and improving the query speed of the list needs further exploration and research.
发明内容Summary of the invention
本申请实施例提供了一种基于区块链的名单类型查询方法及节点,采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。The embodiment of the application provides a method and node for querying list types based on the blockchain. Using the embodiment of the application, the list types of multiple specific lists can be queried at the same time, and the query request can carry multiple lists to be queried at the same time. A block chain node responds to the query request and returns the query result, thereby realizing the rapid query of the list type and improving the query efficiency; in addition, the blockchain node can choose to obtain the right to use the required operation after responding to the query request and returning the query result , Which makes the response of the blockchain nodes more positive, thereby further improving the efficiency of the query.
第一方面,本申请实施例提供了一种基于区块链的名单类型查询方法,该方法包括:In the first aspect, the embodiment of the present application provides a blockchain-based list type query method, which includes:
第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;The first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through the broadcast mechanism. The query request carries a list of types that need to be queried. The list types include blacklist, whitelist, and graylist. List
在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个区块链节点;In the case that there are multiple lists of the list type that need to be queried, the first blockchain node receives information sent by the second blockchain node confirming that the first list is the first type list, wherein the first A type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second blockchain node is Any one of the other blockchain nodes;
所述第一区块链节点根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述第一区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。The first blockchain node allocates the first use right to the second blockchain node according to the first use right acquisition request, and the first use right acquisition request is confirmed by the second blockchain node After the first list is the first type list, a request to obtain the first use right is sent to the first blockchain node, and the first use right is confirmed by the second blockchain node. The first list is any one of the multiple usage rights that can be selected and acquired after the first type list.
采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的 快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。Using the embodiment of this application, the list types of multiple specific lists can be queried at the same time, the query request can carry multiple lists to be queried at the same time, and multiple blockchain nodes respond to the query request and return query results, thereby realizing fast query of the list type , Which improves the query efficiency; in addition, after the blockchain node responds to the query request and returns the query result, it can choose to obtain the right to use the required operation, making the blockchain node’s response more positive, thereby further improving the query efficiency.
结合第一方面,在第一方面的第一种可能的实施方式中,所述第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, after the first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the method further includes :
在所述需要查询名单类型的名单包含一个名单的情况下,所述第一区块链节点接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个区块链节点。In the case that the list of the type of the list to be queried includes a list, the first blockchain node receives information sent by the third blockchain node confirming that the list of the type of the list to be queried is the second type of list, The second type is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes Block chain node.
结合第一方面,在第一方面的第二种可能的实施方式中,所述第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,还包括:With reference to the first aspect, in a second possible implementation manner of the first aspect, after the first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, it further includes :
在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the first block chain node receives the information sent by the fourth block chain node confirming that the second list is the third type list, wherein the first block chain node The third type is any one of the multiple list types existing on the fourth blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is Any one of the other blockchain nodes;
所述第一区块链节点根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。The first blockchain node allocates the second use right to the fourth blockchain node according to the second use right acquisition request, and the second use right acquisition request is the fourth blockchain After the node confirms that the second list is the third type list, it sends a request to the first blockchain node to obtain the second use right, where the second use right is the fourth blockchain node After confirming that the second list is the third type list, any one of the multiple usage rights can be selected and acquired.
本申请实施例可以同时查询到多个名单的类型,提高了名单查询效率。In the embodiment of the application, multiple list types can be inquired at the same time, which improves the efficiency of list inquiry.
结合第一方面或者第一方面的第一种可能的实施方式或者第一方面的第二种可能的实施方式,在第一方面的第三种可能的实施方式中,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;With reference to the first aspect or the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the first use right includes Free querying of the right to use first data within a first preset time, where the first data is list data published by the first blockchain node on the blockchain platform system;
或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权,所述数字货币或贡献值用于支付区块链节点之间交易所需的费用;Alternatively, the first right to use includes a right to use a first preset amount of digital currency or contribution value, and the digital currency or contribution value is used to pay for a transaction between blockchain nodes;
或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
结合第一方面的第三种可能的实施方式,在第一方面的第四种可能的实施方式中,还包括:所述第一区块链节点获取第二数据;所述第一区块链节点将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。With reference to the third possible implementation manner of the first aspect, in the fourth possible implementation manner of the first aspect, the method further includes: the first blockchain node obtains second data; the first blockchain The node publishes the second data to the blockchain platform system, and the second data is list data collected by the first blockchain node but not published to the blockchain platform system.
本申请实施例可以在区块链平台系统中将搜集到的名单数据发布到区块链平台中,丰富了区块链平台系统的数据库,有利于进一步提高名单类型的查询效率。The embodiment of the application can publish the collected list data in the blockchain platform system to the blockchain platform, which enriches the database of the blockchain platform system and helps to further improve the query efficiency of the list type.
结合第一方面的第四种可能的实施方式,在第一方面的第五种可能的实施方式中,,所述第一区块链节点将所述第二数据发布到所述区块链平台系统中之后,还包括:With reference to the fourth possible implementation manner of the first aspect, in the fifth possible implementation manner of the first aspect, the first blockchain node publishes the second data to the blockchain platform In the system, it also includes:
所述第一区块链节点获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一区块链节点发布到所述区块链平台系统上的名单数据的使用 权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。The first blockchain node obtains a second use right, and the second use right includes free querying of any one of the other blockchain nodes to publish to the block within a third preset time The use right of the list data on the chain platform system, or the second use right includes the use right of a second preset amount of the digital currency or the contribution value, or the second use right is included in the first 4. The right to use the list type of the third list for free inquiries within a preset time.
第二方面,本申请实施例提供了一种区块链节点,该区块链节点包括:In the second aspect, an embodiment of the present application provides a blockchain node, and the blockchain node includes:
发送单元,用于通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;The sending unit is used to send a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the query request carries a list of types that need to be queried, and the list types include blacklist, whitelist, and graylist ;
接收单元,用于在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个区块链节点;The receiving unit is configured to, in the case that there are multiple lists of the list type that need to be queried, the first blockchain node receives the information sent by the second blockchain node confirming that the first list is the first type list, Wherein, the first type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second The blockchain node is any one of the other blockchain nodes;
分配单元,用于根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。An allocation unit, configured to allocate the first use right to the second blockchain node according to a first use right acquisition request, and the first use right acquisition request confirms the first use right for the second blockchain node After a list is the first type list, a request to obtain the first use right is sent to the blockchain node, where the first use right is the second blockchain node confirming that the first list is After the first type list, any one of the multiple usage rights can be selected.
采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。Using the embodiment of this application, the list types of multiple specific lists can be queried at the same time, the query request can carry multiple lists to be queried at the same time, and multiple blockchain nodes respond to the query request and return query results, thereby realizing fast query of the list type , Which improves the query efficiency; in addition, after the blockchain node responds to the query request and returns the query result, it can choose to obtain the right to use the required operation, making the blockchain node’s response more positive, thereby further improving the query efficiency.
结合第二方面,在第二方面的第一种可能的实施方式中,所述接收单元,还用于在所述发送单元通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,在所述需要查询名单类型的名单包含一个名单的情况下,接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个区块链节点。With reference to the second aspect, in the first possible implementation manner of the second aspect, the receiving unit is further configured to send queries to other blockchain nodes in the blockchain platform system through a broadcast mechanism in the sending unit After the request, in the case that the list of the type of list that needs to be queried contains one list, receiving information from the third blockchain node confirming that the type of the list of the need to be queried is a list of the second type, and the second type Is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes.
结合第二方面,在第二方面的第二种可能的实施方式中,所述接收单元还用于在所述发送单元通过广播机制向所述区块链平台系统中的其它区块链节点发送所述查询请求之后,With reference to the second aspect, in a second possible implementation manner of the second aspect, the receiving unit is further configured to send to other blockchain nodes in the blockchain platform system through a broadcast mechanism in the sending unit After the query request,
在所述需要查询名单类型的名单是多个的情况下,接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, receiving information from the fourth blockchain node confirming that the second list is a third type list, where the third type is the fourth area Any one of multiple list types existing on a blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is among the other blockchain nodes Any node of;
所述分配单元,还用于根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。The allocation unit is further configured to allocate the second use right to the fourth blockchain node according to the second use right acquisition request, where the second use right acquisition request is the fourth blockchain After the node confirms that the second list is the third type list, it sends a request to the first blockchain node to obtain the second use right, where the second use right is the fourth blockchain node After confirming that the second list is the third type list, any one of the multiple usage rights can be selected and acquired.
结合第二方面或者第二方面的第一种可能的实施方式或者第二方面的第二种可能的实施方式,在第二方面的第三种可能的实施方式中,所述第一使用权包括在第一预设时间内 免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;With reference to the second aspect or the first possible implementation manner of the second aspect or the second possible implementation manner of the second aspect, in the third possible implementation manner of the second aspect, the first use right includes Free querying of the right to use first data within a first preset time, where the first data is list data published by the first blockchain node on the blockchain platform system;
或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权,所述数字货币或贡献值用于支付区块链节点之间交易所需的费用;Alternatively, the first right to use includes a right to use a first preset amount of digital currency or contribution value, and the digital currency or contribution value is used to pay for a transaction between blockchain nodes;
或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
结合第二方面的第三种可能的实施方式,在第二方面的第四种可能的实施方式中,所述第一区块链节点还包括获取单元和发布单元,所述获取单元用于获取第二数据;所述发布单元用于将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。With reference to the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the first blockchain node further includes an acquiring unit and a publishing unit, and the acquiring unit is used to acquire The second data; the publishing unit is used to publish the second data to the blockchain platform system, the second data is collected by the first blockchain node but not published to the district List data in the blockchain platform system.
本申请实施例可以在区块链平台系统中将搜集到的名单数据发布到区块链平台中,丰富了区块链平台系统的数据库,有利于进一步提高名单类型的查询效率。The embodiment of the application can publish the collected list data in the blockchain platform system to the blockchain platform, which enriches the database of the blockchain platform system and helps to further improve the query efficiency of the list type.
结合第二方面的第四种可能的实施方式,在第二方面的第五种可能的实施方式中,所述获取单元,还用于在所述发布单元将所述第二数据发布到所述区块链平台系统中之后,获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一区块链节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。With reference to the fourth possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect, the acquiring unit is further configured to publish, in the publishing unit, the second data to the After the block chain platform system, obtain a second use right, the second use right includes free query of any one of the other blockchain nodes to publish to the block within a third preset time The use right of the list data on the chain platform system, or the second use right includes the use right of a second preset amount of the digital currency or the contribution value, or the second use right is included in the first 4. The right to use the list type of the third list for free inquiries within a preset time.
第三方面,本申请实施例提供了一种装置,包括处理器、通信接口和存储器,所述处理器、通信接口和存储器相互连接,其中,所述存储器用于存储计算机程序,所述处理器被配置用于调用所述计算机程序,执行如下操作:In a third aspect, an embodiment of the present application provides a device, including a processor, a communication interface, and a memory, the processor, the communication interface, and the memory are connected to each other, wherein the memory is used to store a computer program, and the processor Is configured to call the computer program to perform the following operations:
利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;Use the communication interface to send a query request to other blockchain nodes in the blockchain platform system through the broadcast mechanism, the query request carries a list of the types of lists that need to be queried, and the list types include blacklist, whitelist, and graylist ;
在所述需要查询名单类型的名单是多个的情况下,利用所述通信接口接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点;In the case where there are multiple lists of the list type that need to be queried, the communication interface is used to receive information sent by the second blockchain node confirming that the first list is a list of the first type, where the first type is Any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second blockchain node is the other Any node in the blockchain node;
根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述第一区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。Allocate the first use right to the second blockchain node according to the first use right acquisition request, and the first use right acquisition request confirms that the first list is the first for the second blockchain node After the type list, a request to obtain the first use right is sent to the first blockchain node, where the first use right is the second blockchain node confirming that the first list is the first type After the list, you can choose any one of the multiple usage rights acquired.
在其中一种可能的实施方式中,所述利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,所述处理器还用于:In one of the possible implementation manners, after the communication interface is used to send query requests to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the processor is further configured to:
在所述需要查询名单类型的名单包含一个名单的情况下,利用所述通信接口接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点。In the case that the list of the type of the list to be queried contains one list, the communication interface is used to receive information sent by the third blockchain node confirming that the list of the type of the list to be queried is the second type of list. The second type is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes.
在其中一种可能的实施方式中,所述利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,所述处理器还用于:In one of the possible implementation manners, after the communication interface is used to send query requests to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the processor is further configured to:
在所述需要查询名单类型的名单是多个的情况下,利用所述通信接口接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the communication interface is used to receive the information sent by the fourth blockchain node confirming that the second list is a third type list, where the third type is Any one of multiple list types existing on the fourth blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is the other Any node in the blockchain node;
根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。Allocate the second use right to the fourth blockchain node according to the second use right acquisition request, and the second use right acquisition request is for the fourth blockchain node to confirm that the second list is After the third type list, a request to obtain the second use right is sent to the first blockchain node, where the second use right is the fourth blockchain node confirming that the second list is the first After the three types of lists, you can choose any one of the multiple usage rights acquired.
在其中一种可能的实施方式中,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;In one of the possible implementation manners, the first use right includes the use right to query the first data for free within a first preset time, and the first data is published by the first blockchain node to all State the list data on the blockchain platform system;
或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权;Alternatively, the first use right includes the use right of a first preset amount of digital currency or contribution value;
或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
在其中一种可能的实施方式中,所述处理器还用于:获取第二数据;In one of the possible implementation manners, the processor is further configured to: obtain second data;
将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。The second data is released to the blockchain platform system, and the second data is list data collected by the first blockchain node but not released to the blockchain platform system.
在其中一种可能的实施方式中,所述将所述第二数据发布到所述区块链平台系统中之后,所述处理器还用于:In one of the possible implementation manners, after the publishing of the second data to the blockchain platform system, the processor is further configured to:
获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。Obtain a second right of use, where the second right of use includes the right to query the list data published by any one of the other blockchain nodes on the blockchain platform system for free within a third preset time, Alternatively, the second use right includes a second preset amount of the digital currency or the use right of the contribution value, or the second use right includes a free query of the third list within a fourth preset time The right to use the list type.
第四方面,本申请实施例提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现上述第一方面任意一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any one of the above-mentioned first aspects. The method described in the item.
第五方面,本申请实施例提供了一种计算机程序,当所述计算机程序在计算机上执行时,将会使所述计算机实现上述第一方面任意一项所述的方法。In the fifth aspect, the embodiments of the present application provide a computer program, which when executed on a computer, will enable the computer to implement the method described in any one of the first aspects.
综上所述,采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。In summary, the embodiment of this application can simultaneously query the list types of multiple specific lists, the query request can carry multiple lists to be queried at the same time, and multiple blockchain nodes respond to the query request and return the query result to achieve The quick query of the list type improves the query efficiency; in addition, the blockchain node can choose to obtain the right to use the required operation after responding to the query request and returning the query result, making the response of the blockchain node more positive, thereby further improving Improve the efficiency of the query.
附图说明Description of the drawings
图1为本申请实施例提供的一种基于区块链的名单类型查询方法的系统架构图;Figure 1 is a system architecture diagram of a blockchain-based list type query method provided by an embodiment of the application;
图2为本申请实施例提供的一种基于区块链的名单类型查询方法的流程示意图;2 is a schematic flowchart of a method for querying list types based on blockchain according to an embodiment of the application;
图3为本申请实施例提供的区块链平台系统的部分区块链节点示意图;FIG. 3 is a schematic diagram of some blockchain nodes of the blockchain platform system provided by an embodiment of the application;
图4为本申请实施例提供的一种区块链节点的结构示意图;FIG. 4 is a schematic structural diagram of a blockchain node provided by an embodiment of the application;
图5为本申请实施例提供的一种装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus provided by an embodiment of the application.
具体实施方式Detailed ways
为了使本领域技术人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请实施例提供了一种基于区块链的名单类型查询方法及节点,采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。The embodiment of the application provides a method and node for querying list types based on the blockchain. Using the embodiment of the application, the list types of multiple specific lists can be queried at the same time, and the query request can carry multiple lists to be queried at the same time. A block chain node responds to the query request and returns the query result, thereby realizing the rapid query of the list type and improving the query efficiency; in addition, the blockchain node can choose to obtain the right to use the required operation after responding to the query request and returning the query result , Which makes the response of the blockchain nodes more positive, thereby further improving the efficiency of the query.
以下分别进行详细说明。Detailed descriptions are given below.
下面先对本方案的系统架构进行描述。参阅图1,图1是本方案实施例提供的一种基于区块链的名单类型查询方法的系统架构示意图。如图1所示,系统架构可以包括一个或多个区块链102,以及一个或多个区块链节点101,区块链102和区块链节点101共同构成了一个区跨链平台系统。其中,区块链102用于存放数据,每次区块链节点101完成交易之后,都会将相应的数据入链,即添加到区块链102中存储备份。区块链节点101指的是区块链平台系统中的计算机,包括手机、矿机、台式机和服务器等等。操作一个区块链节点的人可以是普通的钱包用户、矿工和多个人协作。例如比特币网络,是属于共有链,当我们在自己的已连接到互联网的电脑上运行比特币bitcoind程序时,该电脑也就成为比特币网络中的一个区块链节点。区块链的区块链节点具有以下特征:拥有一定的存储空间,能够连接网络,属于手机、平板电脑、台式电脑等目前主流的可视化操作终端,参与区块链即要在连接网络的存储空间运行区块链相应程序,通过可视化操作终端进行交易。需要说明的是,本申请实施例可以应用于的系统架构不限于图1所述架构。The following first describes the system architecture of this solution. Refer to FIG. 1, which is a schematic diagram of the system architecture of a blockchain-based list type query method provided by an embodiment of the solution. As shown in FIG. 1, the system architecture may include one or more blockchains 102 and one or more blockchain nodes 101. The blockchain 102 and the blockchain node 101 together form a regional cross-chain platform system. Among them, the block chain 102 is used to store data, and each time the block chain node 101 completes a transaction, the corresponding data will be put into the chain, that is, added to the block chain 102 for storage backup. Blockchain node 101 refers to the computers in the blockchain platform system, including mobile phones, mining machines, desktops, servers, and so on. The people who operate a blockchain node can be ordinary wallet users, miners and multiple people. For example, the Bitcoin network is a public chain. When we run the bitcoind program on our computer connected to the Internet, the computer becomes a blockchain node in the Bitcoin network. The blockchain node of the blockchain has the following characteristics: it has a certain storage space, can connect to the network, and belongs to the current mainstream visual operation terminals such as mobile phones, tablets, and desktop computers. Participating in the blockchain is to connect to the storage space of the network. Run the corresponding program of the blockchain and conduct transactions through the visual operation terminal. It should be noted that the system architecture to which the embodiments of the present application can be applied is not limited to the architecture described in FIG. 1.
基于图1给出的本方案实施例提供的一种基于区块链的名单类型查询方法的系统架构,下面提供一种基于区块链的名单类型查询方法,名单类型查询方法的流程图如图2所示。该方法可以包括以下步骤:Based on the system architecture of a blockchain-based list type query method provided by the embodiment of the solution shown in Figure 1, the following provides a blockchain-based list type query method. The flowchart of the list type query method is shown in the figure 2 shown. The method can include the following steps:
步骤S101:第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单。Step S101: The first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, and the query request carries a list of the type of list that needs to be queried.
具体的,名单类型包括黑名单、白名单和灰名单。其中,所述黑名单可以包括征信黑名单、行业黑名单、机构黑名单、欺诈黑名单和法院黑名单中的一项或者多项,若是多项,则分类存储便于查询;所述灰名单可以包括具有不上征信的网贷肆意申请、习惯性逾期、多家机构借贷、找多个中介代办、综合负债过高、有骗贷倾向和有高额借款历史中的一项或多项行为的名单,同样的,若是多项,则分类存储便于查询;所述白名单为除所述黑名单和灰名单之外的名单。Specifically, the list types include blacklist, whitelist, and graylist. The blacklist may include one or more of a credit blacklist, an industry blacklist, an institution blacklist, a fraud blacklist, and a court blacklist. If there are more than one, the classified storage is convenient for query; the graylist It can include one or more of online loan applications that are not creditworthy, habitually overdue, borrowing from multiple institutions, finding multiple intermediaries, excessive comprehensive debt, tendency to fraudulent loans, and history of high borrowing Similarly, if there are multiple behavior lists, they are classified and stored for easy query; the white list is a list other than the black list and the gray list.
在具体实施例中,第一区块链节点和上述的其它区块链节点都是属于同一个区块链平台系统中的区块链节点。第一区块链节点需要在区块链平台系统中查询名单的类型即需要发起一笔交易,该交易就是第一区块链节点请求区块链平台系统中的其它区块链节点查询某一具体名单的类型,如果查询成功,则查询成功的区块链节点可以获得奖励,该奖励可 以是某个操作的使用权。具体的,第一区块链节点向其附近的区块链节点广播名单类型查询请求,即发送需要查询名单类型的请求信息,该请求信息携带了需要查询名单类型的名单信息,该名单信息可以包括一个或多个需要查询的名单。附近的区块链节点接收到该请求信息后,又向其各自附近的区块链节点发送该请求信息,这样不断地扩散传播,很快整个区块链平台系统的所有区块链节点都收到了该请求信息。具体的可以参见图3,图3所示只是区块链平台系统中的部分区块链节点,其中,节点1是区块链平台系统中一个的节点,其附近的节点有很多,与节点1可以直接通信的节点有节点2、节点3、节点4、节点6和节点8,当节点1需要发起名单类型确认交易时,就会向第节点2、节点3、节点4、节点6和节点8广播发送请求信息,而节点2、节点3、节点4、节点6和节点8在收到请求信息后又向与它们建立了通信的节点发送请求信息,就这样收到请求信息的节点不断地向其建立了通信的节点广播发送该请求信息,很快整个区块链平台系统的所有节点都收到了该请求信息。In a specific embodiment, the first block chain node and the other block chain nodes mentioned above are all block chain nodes in the same block chain platform system. The first blockchain node needs to query the type of the list in the blockchain platform system, that is, it needs to initiate a transaction. The transaction is the first blockchain node requesting other blockchain nodes in the blockchain platform system to query a certain For the specific list type, if the query is successful, the blockchain node that is successfully queried can obtain a reward, which can be the right to use a certain operation. Specifically, the first blockchain node broadcasts a list type query request to nearby blockchain nodes, that is, sends request information that needs to query the list type, and the request information carries list information that needs to be queried, and the list information can be Include one or more lists to be queried. After receiving the request information, the nearby blockchain nodes send the request information to their respective nearby blockchain nodes. This will continue to spread and spread, and soon all the blockchain nodes of the entire blockchain platform system will receive it. The request information is reached. For details, please refer to Figure 3. Figure 3 shows only part of the blockchain nodes in the blockchain platform system. Node 1 is a node in the blockchain platform system. There are many nearby nodes, which are similar to node 1. The nodes that can communicate directly include node 2, node 3, node 4, node 6, and node 8. When node 1 needs to initiate a list type confirmation transaction, it will send to node 2, node 3, node 4, node 6 and node 8. The request information is sent by broadcast, and after receiving the request information, node 2, node 3, node 4, node 6 and node 8 send the request information to the nodes that have established communication with them. In this way, the nodes that receive the request information continue to The node that established the communication broadcasted the request information, and soon all nodes of the entire blockchain platform system received the request information.
步骤S102:在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第二区块链节点发送的确认第一名单为第一类型名单的信息。Step S102: In the case that there are multiple lists of the list type that need to be queried, the first blockchain node receives information sent by the second blockchain node confirming that the first list is the first type list.
具体的,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点,所述多种名单类型可以包括黑名单、白名单和灰名单中的至少两种。Specifically, the first type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the first The second blockchain node is any one of the other blockchain nodes, and the multiple list types may include at least two of blacklist, whitelist, and graylist.
在具体实施例中,当请求信息携带的名单信息包括多个需要查询的名单时,收到请求信息的区块链节点逐一将该多个需要查询的名单与自身发布在区块链平台系统中的名单数据库进行对比匹配;如果某个区块链节点正好将该多个需要查询的名单都匹配成功,那么根据匹配成功的名单在所述数据库中存放在哪一个类型的名单下即可分别获知该多个需要查询的名单的类型,该多个需要查询的名单中,不同的名单其名单类型可以不相同;然后,该匹配成功的区块链节点将这多个名单的名单类型信息发送给第一区块链节点,进一步的,该匹配成功的区块链节点还可以将数据库中存放的这多个名单的详细信息发送给第一区块链节点。In a specific embodiment, when the list information carried in the request information includes multiple lists that need to be queried, the blockchain node that receives the request information publishes the multiple lists that need to be queried one by one with itself in the blockchain platform system The list database is compared and matched; if a block chain node happens to match the multiple lists that need to be queried, it can be learned separately according to which type of list the matched list is stored in the database The types of the multiple lists that need to be queried. In the multiple lists that need to be queried, different lists may have different list types; then, the successfully matched blockchain node sends the list type information of the multiple lists to The first blockchain node, further, the successfully matched blockchain node may also send detailed information of the multiple lists stored in the database to the first blockchain node.
或者,当请求信息携带的名单信息包括多个需要查询的名单时,收到请求信息的区块链节点逐一将该多个需要查询的名单与自身发布在区块链平台系统中的名单数据库进行对比匹配;如果某个区块链节点正好将该多个需要查询的名单中的部分名单匹配成功,那么根据匹配成功的名单在所述数据库中存放在哪一个类型的名单下即可分别获知该部分名单的名单类型,而另一个区块链节点将另一部分的名单匹配成功,那么根据匹配成功的名单在所述数据库中存放在哪一个类型的名单下即可分别获知该另一部分名单的名单类型;然后,该某个区块链节点将该部分名单的名单类型发送给第一区块链节点,进一步的,该某个区块链节点还可以将数据库中存放的该部分名单的详细信息发送给第一区块链节点;另一方面,该另一个区块链节点将该另一部分名单的名单类型发送给第一区块链节点,进一步的,该某个区块链节点还可以将数据库中存放的该另一部分名单的详细信息发送给第一区块链节点。Or, when the list information carried in the request information includes multiple lists that need to be queried, the blockchain node that receives the request information will compare the multiple lists that need to be queried with the list database published by itself in the blockchain platform system one by one. Contrast matching; if a block chain node happens to match the partial list of multiple lists that need to be queried successfully, then according to which type of list the successfully matched list is stored in the database, you can know the Part of the list of the list type, and another blockchain node successfully matches the other part of the list, then the list of the other part of the list can be obtained according to which type of list the successfully matched list is stored in the database Type; then, the certain blockchain node sends the list type of the partial list to the first blockchain node, and further, the certain blockchain node can also send the detailed information of the partial list stored in the database Sent to the first blockchain node; on the other hand, the other blockchain node sends the list type of the other part of the list to the first blockchain node, and further, the certain blockchain node can also send The detailed information of the other part of the list stored in the database is sent to the first blockchain node.
或者,如果上述某个区块链节点查询某个名单为某一个类型的名单,而上述另一个区 块链节点也对该某个名单进行了对比匹配,但是对比匹配的结果是该某个名单为另一个类型的名单,即两个区块链节点对同一个名单对比匹配得到的该名单的名单类型不同,那么两个区块链节点都可以将自身对比匹配得到的结果反馈给第一区块链节点。Or, if one of the above-mentioned blockchain nodes inquires that a certain list is a certain type of list, and the above-mentioned another blockchain node also compares and matches the certain list, but the result of the comparison and matching is that certain list It is another type of list, that is, the list type of the list obtained by comparison and matching between two blockchain nodes on the same list is different, then both blockchain nodes can feed back the results of their comparison and matching to the first area Block chain node.
还存在其它的可能的实施方式,例如如果请求信息携带的名单信息包含多个需要查询名单类型的名单,那么可以由区块链平台系统中的两个以上的区块链节点来共同完成查询,每个区块链节点具体查询的过程可以参照上述描述,此处不再赘述。There are other possible implementations. For example, if the list information carried in the request information contains multiple lists that need to be queried, then two or more blockchain nodes in the blockchain platform system can jointly complete the query. The specific query process of each blockchain node can refer to the above description, which will not be repeated here.
为了便于理解,举例子来进行说明。具体的可以参见表1。在表1中名单数据库包含三种名单类型的名单数据,三种名单类型分别为黑名单、灰名单和白名单。每一种名单类型下都存放着多个对应类型的企业信息,这些企业信息包括企业名称、企业所在省份以及企业的法定代表人,实际还可以包括更多的企业信息例如企业的统一社会信用代码等,如果是属于黑名单的企业名单数据库中还可以包括企业所做过的违规违法的具体内容等信息。For ease of understanding, an example is used for illustration. See Table 1 for details. The list database in Table 1 contains list data of three types of lists, the three types of lists are blacklist, greylist and whitelist. Each list type stores multiple corresponding types of enterprise information, which includes the name of the enterprise, the province where the enterprise is located, and the legal representative of the enterprise. In fact, it can also include more enterprise information such as the enterprise’s unified social credit code. And so on, if it is a blacklisted company list database, it can also include the specific content and other information that the company has done in violation of regulations and laws.
表1名单数据库1Table 1 List Database 1
Figure PCTCN2019120599-appb-000001
Figure PCTCN2019120599-appb-000001
假设表1所示的名单数据库为某个区块链节点发布在区块链平台系统上的数据库,第一区块链节点需要查询名单类型的名单为第三公司和第十公司。那么第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送携带有第三公司名单和第十公司名单的查询请求信息,当该某个区块链节点收到该请求信息时,获取请求信息中的第三公司名单和第十公司名单,将该两个名单与名单数据库中的名单对比匹配,最后在黑名单类型中匹配到第三公司,在白名单类型中匹配到第十公司,即查询第三公司为黑名单类型、第十公司为白名单类型,该某个区块链节点将已查询第三公司为黑名单类型的信息和已查询第十公司为白名单类型的信息发送给第一区块链节点,同时也可以将第三公司和第十公司所在省份以及其法定代表人等信息也发送给第一区块链节点。Assuming that the list database shown in Table 1 is a database published by a certain blockchain node on the blockchain platform system, the first blockchain node needs to query the list of the list type as the third company and the tenth company. Then the first blockchain node sends the query request information carrying the list of the third company and the list of the tenth company to other blockchain nodes in the blockchain platform system through the broadcast mechanism. When the certain blockchain node receives When requesting information, obtain the third company list and the tenth company list in the requested information, compare and match the two lists with the lists in the list database, and finally match the third company in the blacklist type, and in the whitelist type If it matches the tenth company, the third company is blacklisted and the tenth company is whitelisted. This blockchain node will query the information of the third company as blacklisted and the tenth company. The information of the whitelist type is sent to the first blockchain node. At the same time, the provinces where the third company and the tenth company are located and their legal representatives can also be sent to the first blockchain node.
表2名单数据库2Table 2 List database 2
Figure PCTCN2019120599-appb-000002
Figure PCTCN2019120599-appb-000002
Figure PCTCN2019120599-appb-000003
Figure PCTCN2019120599-appb-000003
另一个例子,参见表1和表2。假设表1所示的名单数据库为某个区块链节点发布在区块链平台系统上的数据库,表2所示的名单数据库为另一个区块链节点发布在区块链平台系统上的数据库;第一区块链节点需要查询名单类型的名单为第三公司和第十九公司。那么第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送携带有第三公司名单和第十九公司名单的查询请求信息,当该某个区块链节点收到该请求信息时,获取请求信息中的第三公司名单和第十九公司名单,将该两个名单与名单数据库中的名单对比匹配,最后在黑名单类型中匹配到第三公司,即查询第三公司为黑名单类型,但在数据库中匹配不到第十九公司,那么,该某个区块链节点仅将已查询第三公司为黑名单类型的信息发送给第一区块链节点,同时也可以将第三公司所在省份以及其法定代表人等信息也发送给第一区块链节点。另一方面,收到该请求信息的另一个区块链节点,获取请求信息中的第三公司名单和第十九公司名单,将该两个名单与名单数据库中的名单对比匹配,最后在灰名单类型中匹配到第十九公司,即查询第十九公司为灰名单类型,但在数据库中匹配不到第三公司,那么,该另一个区块链节点仅将已查询第十九公司为灰名单类型的信息发送给第一区块链节点,同时也可以将第十九公司所在省份以及其法定代表人等信息也发送给第一区块链节点。这样两个区块链节点共同完成了请求信息中携带名单的名单类型的查询。For another example, see Table 1 and Table 2. Suppose that the list database shown in Table 1 is a database published by a blockchain node on the blockchain platform system, and the list database shown in Table 2 is a database published by another blockchain node on the blockchain platform system ; The first block chain node needs to query the list of types for the third company and the nineteenth company. Then the first blockchain node sends the query request information carrying the list of the third company and the list of the nineteenth company to other blockchain nodes in the blockchain platform system through the broadcast mechanism. When the certain blockchain node receives When it comes to the requested information, obtain the third company list and the nineteenth company list in the requested information, compare and match the two lists with the lists in the list database, and finally match the third company in the blacklist type, that is, query The third company is a blacklist type, but the nineteenth company cannot be matched in the database, then the certain blockchain node only sends the information that the third company has been queried as the blacklist type to the first blockchain node At the same time, the province and legal representative of the third company can also be sent to the first blockchain node. On the other hand, another blockchain node that received the requested information obtains the list of the third company and the list of the nineteenth company in the requested information, compares and matches the two lists with the list in the list database, and finally in gray The nineteenth company is matched in the list type, that is, the nineteenth company is queried as a graylist type, but the third company cannot be matched in the database, then the other blockchain node will only queried the nineteenth company as The graylist type information is sent to the first blockchain node, and the province where the nineteenth company is located and its legal representative can also be sent to the first blockchain node. In this way, the two blockchain nodes jointly complete the query of the list type carrying the list in the request information.
在其中一个例子中,如果在上述的另一方面中,收到该请求信息的另一个区块链节点最后在灰名单类型中匹配到第十九公司,即查询第十九公司为灰名单类型,且在数据库中的灰名单类型中匹配到第三公司,即查询第三公司为灰名单类型,那么,该另一个区块链节点可以将已查询第三公司和第十九公司为灰名单类型的信息发送给第一区块链节点,同时也可以将第三公司和第十九公司所在省份以及其法定代表人等信息也发送给第一区块链节点。这样两个区块链节点共同完成了请求信息中携带名单的名单类型的查询。In one of the examples, if in the above-mentioned other aspect, another blockchain node that received the requested information finally matches the nineteenth company in the graylist type, that is, the nineteenth company is queried as the graylist type , And the third company is matched in the graylist type in the database, that is, the query third company is a graylist type, then the other blockchain node can graylist the queried third company and the nineteenth company The type of information is sent to the first blockchain node. At the same time, the province where the third company and the nineteenth company are located and their legal representatives can also be sent to the first blockchain node. In this way, the two blockchain nodes jointly complete the query of the list type carrying the list in the request information.
第一区块链节点需要查询名单类型的名单还可能包括三个以上的名单,若包括三个以上的名单需要查询,具体的描述可以参考上述的例子描述,此处不再赘述。The list of the list type that the first blockchain node needs to query may also include more than three lists. If more than three lists need to be queried, the specific description can refer to the above example description, which will not be repeated here.
步骤S103:所述第一区块链节点根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权。Step S103: The first blockchain node allocates the first use right to the second blockchain node according to the first use right acquisition request.
具体的,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述第一区块链节点发送的获取所述第一使用权的请求,所述第一使用权为 所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。Specifically, the first use right acquisition request is the first use right acquisition request sent to the first blockchain node after the second blockchain node confirms that the first list is the first type list. The first use right is any one of the multiple use rights that the second blockchain node can choose to obtain after confirming that the first list is the first type list.
在具体实施例中,第一区块链节点接收某个区块链节点发送的查询名单的名单类型的信息后,该某个区块链节点获得一定的奖励,奖励的方式可以是多样的,可以选择与其做出的贡献等值的奖励,奖励可以是某个操作的使用权限或者是一定数量的数字货币/贡献值的使用权限等等。当该某个区块链节点选择了其想要的使用权奖励之后,第一区块链节点根据该某个区块链节点选择的奖励方式分配其对应的使用权。In a specific embodiment, after the first blockchain node receives the list type information of the query list sent by a certain blockchain node, the certain blockchain node obtains a certain reward, and the reward method can be various. You can choose a reward equivalent to the contribution it makes. The reward can be the use right of a certain operation or the use right of a certain amount of digital currency/contribution value, etc. After the certain blockchain node selects its desired use right reward, the first blockchain node allocates its corresponding use right according to the reward method selected by the certain blockchain node.
采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。Using the embodiment of this application, the list types of multiple specific lists can be queried at the same time, the query request can carry multiple lists to be queried at the same time, and multiple blockchain nodes respond to the query request and return query results, thereby realizing fast query of the list type , Which improves the query efficiency; in addition, after the blockchain node responds to the query request and returns the query result, it can choose to obtain the right to use the required operation, making the blockchain node’s response more positive, thereby further improving the query efficiency.
在其中一种可能的实施方式中,所述第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,还包括:在所述需要查询名单类型的名单包含一个名单的情况下,所述第一区块链节点接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息。In one of the possible implementation manners, after the first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, it further includes: In the case where the list includes one list, the first blockchain node receives information sent by the third blockchain node confirming that the list of the list type that needs to be queried is the second type list.
具体的,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点;所述多种名单类型可以包括黑名单、白名单和灰名单中的至少两种。Specifically, the second type is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is one of the other blockchain nodes Any node; the multiple list types may include at least two of blacklist, whitelist and graylist.
在具体实施例中,区块链平台系统中的区块链节点收到第一区块链节点发送的请求信息后,获取该请求信息中携带的名单信息,该名单信息包括需要查询名单类型的名单,可以包括一个或多个需要查询的名单。当该名单信息仅包括一个需要查询的名单时,收到请求信息的区块链节点将该名单信息中需要查询名单类型的名单与自身发布在区块链平台系统中的名单数据库进行对比匹配,该名单数据库可以是分名单类型存储在区块链平台系统中;如果某个区块链节点正好匹配成功,那么根据匹配成功的名单在所述数据库中存放在哪一个类型的名单下即可获知需要查询的名单的类型。然后,所述某个区块链节点将该名单的名单类型信息反馈给第一区块链节点,进一步的,所述某个区块链节点还可以将数据库中存放的该名单的详细信息发送给第一区块链节点,具体的,该某个区块链节点可以通过广播的方式将信息反馈给第一区块链节点。In a specific embodiment, after receiving the request information sent by the first blockchain node, the blockchain node in the blockchain platform system obtains the list information carried in the request information, and the list information includes the type of list that needs to be queried The list can include one or more lists to be queried. When the list information only includes a list that needs to be queried, the blockchain node that receives the requested information compares and matches the list of the list type that needs to be queried in the list information with the list database published by itself in the blockchain platform system. The list database can be stored in the blockchain platform system according to the type of list; if a certain blockchain node is matched successfully, it can be known according to which type of list the matched list is stored in the database. The type of list to be queried. Then, the certain blockchain node feeds back the list type information of the list to the first blockchain node, and further, the certain blockchain node may also send the detailed information of the list stored in the database To the first blockchain node, specifically, the certain blockchain node can feed back information to the first blockchain node by broadcasting.
为了便于理解,举例子来进行说明。具体的可以参见表1。假设表1所示的名单数据库为某个区块链节点发布在区块链平台系统上的数据库,第一区块链节点需要查询名单类型的名单为第三公司。那么第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送携带有第三公司名单的查询请求信息,当该某个区块链节点收到该请求信息时,获取请求信息中的第三公司名单,将该名单与名单数据库中的名单对比匹配,最后在黑名单类型中匹配到第三公司,即查询第三公司为黑名单类型,该某个区块链节点将已查询第三公司为黑名单类型的信息发送给第一区块链节点,同时也可以将第三公司所在省份以及其法定代表人等信息也发送给第一区块链节点。For ease of understanding, an example is used for illustration. See Table 1 for details. Assuming that the list database shown in Table 1 is a database published by a certain blockchain node on the blockchain platform system, the first blockchain node needs to query the list of the list type as the third company. Then the first blockchain node sends the query request information carrying the list of the third company to other blockchain nodes in the blockchain platform system through the broadcast mechanism. When the certain blockchain node receives the request information, Obtain the list of the third company in the requested information, compare and match the list with the list in the list database, and finally match the third company in the blacklist type, that is, query the third company as a blacklist type, and the blockchain The node sends the information that the queried third company is blacklisted to the first blockchain node, and can also send the third company’s province and its legal representative to the first blockchain node.
在其中一种可能的实施方式中,所述第一使用权包括在第一预设时间内免费查询第一 数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权,所述数字货币或贡献值用于支付区块链节点之间交易所需的费用;或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。In one of the possible implementation manners, the first use right includes the use right to query the first data for free within a first preset time, and the first data is published by the first blockchain node to all The list data on the blockchain platform system; or, the first use right includes the use right of a first preset amount of digital currency or contribution value, and the digital currency or contribution value is used to pay for blockchain nodes The cost required for inter-transaction; or, the first use right includes the use right to query the list type of the second list for free within the second preset time.
具体的,某个区块链节点响应了查询请求并返回具体名单的名单类型之后,可以获得奖励,奖励包括某些操作的使用权或者数字货币/贡献值的使用权,可以选择需要的使用权作为奖励,可以选择的使用权可以为在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据。具体的,该第一预设时间可以是一个月、两个月、半年等,可以预先设定,此处不做限制。查询第一区块链节点发布到区块链平台系统上的名单数据可以是部分查询,也可以是全部查询。Specifically, after a certain blockchain node responds to the query request and returns the list type of the specific list, it can be rewarded. The reward includes the right to use certain operations or the right to use digital currency/contribution value, and you can choose the required use right As a reward, the use right that can be selected can be the use right to query the first data for free within the first preset time, the first data being the first blockchain node to publish to the blockchain platform system List data. Specifically, the first preset time may be one month, two months, half a year, etc., which can be preset, and there is no limitation here. Querying the list data published by the first blockchain node on the blockchain platform system can be a partial query or a full query.
可以选择的使用权还可以为第一预设数量的数字货币或贡献值的使用权,所述数字货币或贡献值能够用于支付区块链节点之间交易所需的费用。具体的,在区块链平台系统中,区块链节点做出多少贡献,就可以选择获得等价的数字货币或贡献值,某个区块链节点获得这些数字货币或贡献值之后,可以用于支付该某个区块链节点主动发起的交易所需要的费用。The selectable use right may also be the use right of the first preset amount of digital currency or contribution value, and the digital currency or contribution value can be used to pay the fees required for transactions between blockchain nodes. Specifically, in the blockchain platform system, how much contribution a blockchain node makes can choose to obtain equivalent digital currency or contribution value. After a blockchain node obtains these digital currency or contribution value, it can use To pay the fees required by the transaction initiated by the certain blockchain node.
可以选择的使用权还可以为在第二预设时间内免费查询第二名单的名单类型的使用权。具体的,某个区块链节点完成了第一区块链节点发起的名单类型查询交易,那么该某个区块链节点所获的奖励可以选择在第二预设时间内免费发起名单类型查询交易,即该某个区块链节点发起名单类型查询交易,其它区块链节点帮助其完成查询,但该某个区块链节点不需要给帮助其完成名单类型查询的区块链节点分配奖励。同样的,该第二预设时间可以是一个月、三个月、半年等,可以预先设定,此处不做限制。The selectable use right may also be the use right to query the list type of the second list for free within the second preset time. Specifically, if a certain blockchain node completes the list type query transaction initiated by the first blockchain node, then the rewards obtained by the certain blockchain node can choose to initiate a list type query for free within the second preset time Transaction, that is, a certain blockchain node initiates a list type query transaction, and other blockchain nodes help it complete the query, but the certain blockchain node does not need to distribute rewards to the blockchain node that helps it complete the list type query . Similarly, the second preset time can be one month, three months, half a year, etc., which can be preset, and there is no limitation here.
在本申请实施例中,只要在区块链平台中贡献出了力量就可以获得使用权奖励,这些奖励可以用于降低区块链节点获取信息所花费的成本,起到了激励各个区块链节点乐于分享信息从而为区块链平台系统贡献自己的力量的作用;另外,奖励的方式可以选择,从而丰富了区块链平台系统的奖励机制。In the embodiment of this application, as long as you contribute to the blockchain platform, you can get the right to use rewards. These rewards can be used to reduce the cost of the blockchain nodes to obtain information, and they can motivate each blockchain node. The role of being willing to share information to contribute to the blockchain platform system; in addition, the reward method can be selected, thereby enriching the reward mechanism of the blockchain platform system.
在其中一种可能的实施方式中,所述第一区块链节点获取第二数据;所述第一区块链节点将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。In one of the possible implementation manners, the first blockchain node obtains second data; the first blockchain node publishes the second data to the blockchain platform system, and the The second data is list data collected by the first blockchain node but not released to the blockchain platform system.
在具体的实施方式中,如果第一区块链节点搜集到了各种类型的名单数据,如果这些名单数据中包含还未发布到区块链平台系统上的名单数据,那么该第一区块链节点都可以将这部分的名单数据通过区块链平台系统的接口发布到区块链平台系统中,发布新的名单数据到区块链平台系统中不仅丰富了系统中的数据内容,还可以供其它区块链节点查询、帮助其它区块链节点进行名单类型查询,以此获取奖励。In a specific implementation, if the first blockchain node collects various types of list data, and if these list data include list data that has not been published on the blockchain platform system, then the first blockchain Nodes can publish this part of the list data to the blockchain platform system through the interface of the blockchain platform system. Publishing new list data to the blockchain platform system not only enriches the data content in the system, but also provides Query other blockchain nodes and help other blockchain nodes to query list types to obtain rewards.
本申请实施例可以在区块链平台系统中将搜集到的名单数据发布到区块链平台中,丰富了区块链平台系统的数据库,有利于进一步提高名单类型的查询效率。The embodiment of the application can publish the collected list data in the blockchain platform system to the blockchain platform, which enriches the database of the blockchain platform system and helps to further improve the query efficiency of the list type.
在其中一种可能的实施方式中,所述第一区块链节点将所述第二数据发布到所述区块链平台系统中之后,还包括:所述第一区块链节点获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一节点发布到所述区块链平台系统上 的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。In one of the possible implementation manners, after the first blockchain node publishes the second data to the blockchain platform system, the method further includes: the first blockchain node obtains the second data The right to use, the second right to use includes the right to query the list data published by any one of the other blockchain nodes on the blockchain platform system for free within a third preset time, or, The second use right includes a second preset amount of the digital currency or the use right of the contribution value, or the second use right includes free query of the list type of the third list within the fourth preset time Use rights.
具体的可以参照上述对使用权奖励选择的描述,此处不再赘述。For details, please refer to the above description of the selection of the use right reward, which will not be repeated here.
综上所述,采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。In summary, using the embodiment of the application can simultaneously query the list types of multiple specific lists, the query request can carry multiple lists to be queried at the same time, and multiple blockchain nodes respond to the query request and return the query result, thereby achieving The quick query of the list type improves the query efficiency; in addition, the blockchain node can choose to obtain the right to use the required operation after responding to the query request and returning the query result, making the response of the blockchain node more positive, thereby further improving Improve the efficiency of the query.
为了便于更好地实施本申请的上述方案,本申请实施例还对应提供了一种区块链节点,下面结合附图4来进行详细说明:In order to facilitate better implementation of the above-mentioned solutions of this application, the embodiments of this application also provide a corresponding blockchain node, which will be described in detail below with reference to FIG.
图4所示为一种区块链节点400的结构示意图,所述区块链节点400可以是图1所示一种基于区块链的名单类型查询方法的系统架构中的区块链节点101。所述区块链节点400包括:发送单元401,接收单元402,分配单元403,其中:FIG. 4 shows a schematic structural diagram of a blockchain node 400. The blockchain node 400 may be the blockchain node 101 in the system architecture of the list type query method based on the blockchain shown in FIG. 1 . The blockchain node 400 includes: a sending unit 401, a receiving unit 402, and a distribution unit 403, wherein:
发送单元401,用于通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;The sending unit 401 is configured to send a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism. The query request carries a list of types that need to be queried. The list types include blacklist, whitelist, and graylist. List
接收单元402,用于在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点;The receiving unit 402 is configured to: in the case that there are multiple lists of the list type that need to be queried, the first blockchain node receives the information sent by the second blockchain node confirming that the first list is the first type list , Wherein the first type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the first 2. The block chain node is any one of the other block chain nodes;
分配单元403,用于根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。The allocation unit 403 is configured to allocate the first use right to the second blockchain node according to the first use right acquisition request, and the first use right acquisition request confirms the second blockchain node for the After the first list is the first type list, a request to obtain the first use right is sent to the blockchain node, and the first use right is the second blockchain node confirming the first list After being the first type list, you can select any one of the multiple usage rights obtained.
在其中一种实施方式中,接收单元402,还用于在发送单元401通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,在所述需要查询名单类型的名单包含一个名单的情况下,接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点。In one of the embodiments, the receiving unit 402 is further configured to, after the sending unit 401 sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, after the list of the type of list that needs to be queried contains In the case of a list, receive the information sent by the third blockchain node confirming that the list that needs to be queried is the second type list, and the second type is all existing on the third blockchain node. For any of the multiple list types, the third blockchain node is any one of the other blockchain nodes.
在其中一种实施方式中,所述接收单元402还用于在所述发送单元通过广播机制向所述区块链平台系统中的其它区块链节点发送所述查询请求之后,In one of the implementations, the receiving unit 402 is further configured to, after the sending unit sends the query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism,
在所述需要查询名单类型的名单是多个的情况下,接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, receiving information from the fourth blockchain node confirming that the second list is a third type list, where the third type is the fourth area Any one of multiple list types existing on a blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is among the other blockchain nodes Any node of;
所述分配单元403,还用于根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第 三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。The allocation unit 403 is further configured to allocate the second use right to the fourth blockchain node according to the second use right acquisition request, where the second use right acquisition request is the fourth block After the chain node confirms that the second list is the third type list, it sends a request to the first blockchain node to obtain the second use right, where the second use right is the fourth blockchain After the node confirms that the second list is the third type list, the node can select any one of the multiple usage rights obtained.
在其中一种实施方式中,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;In one of the embodiments, the first use right includes the use right to query the first data for free within a first preset time, and the first data is published by the first blockchain node to the district. List data on the blockchain platform system;
或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权,所述数字货币或贡献值用于支付区块链节点之间交易所需的费用;Alternatively, the first right to use includes a right to use a first preset amount of digital currency or contribution value, and the digital currency or contribution value is used to pay for a transaction between blockchain nodes;
或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
在其中一种实施方式中,第一区块链节点400还包括获取单元和发布单元,所述获取单元用于获取第二数据;所述发布单元用于将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。In one of the embodiments, the first blockchain node 400 further includes an acquiring unit and a publishing unit, where the acquiring unit is used to acquire second data; and the publishing unit is used to publish the second data to the In the blockchain platform system, the second data is list data collected by the first blockchain node but not released to the blockchain platform system.
在其中一种实施方式中,所述获取单元,还用于在所述发布单元将所述第二数据发布到所述区块链平台系统中之后,获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一区块链节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。In one of the implementations, the acquiring unit is further configured to acquire a second right of use after the publishing unit publishes the second data to the blockchain platform system, and the second use The right includes the right to use the list data published by any one of the other blockchain nodes on the blockchain platform system for free within the third preset time, or the second right to use The use right includes a second preset amount of the digital currency or the contribution value, or the second use right includes the use right to query the third list for free within a fourth preset time.
图4所示的区块链节点400中各个单元的具体实现及有益效果可以对应参照图2所示的方法实施例中的相应描述,此处不再赘述。For the specific implementation and beneficial effects of each unit in the blockchain node 400 shown in FIG. 4, reference may be made to the corresponding description in the method embodiment shown in FIG. 2, which will not be repeated here.
请参见图5,图5是本申请实施例提供的一种装置500,该装置500包括处理器501、存储器502和通信接口503,所述处理器501、存储器502和通信接口503通过总线504相互连接。Please refer to FIG. 5, which is a device 500 provided by an embodiment of the present application. The device 500 includes a processor 501, a memory 502, and a communication interface 503. The processor 501, the memory 502, and the communication interface 503 communicate with each other through a bus 504. connection.
存储器502包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器502用于相关指令及数据的存储。通信接口503用于接收和发送数据。The memory 502 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (erasable programmable read only memory, EPROM), or A portable read-only memory (compact disc read-only memory, CD-ROM), the memory 502 is used for storage of related instructions and data. The communication interface 503 is used to receive and send data.
处理器501可以是一个或多个中央处理器(central processing unit,CPU),在处理器501是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 501 may be one or more central processing units (CPU). In the case where the processor 501 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
该装置500中的处理器501用于读取所述存储器502中存储的程序代码,执行以下操作:The processor 501 in the device 500 is configured to read the program code stored in the memory 502, and perform the following operations:
处理器501通过通信接口503向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;The processor 501 sends a query request to other blockchain nodes in the blockchain platform system through the communication interface 503, where the query request carries a list of list types that need to be queried, and the list types include blacklist, whitelist, and graylist;
在所述需要查询名单类型的名单是多个的情况下,处理器501通过通信接口503接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the processor 501 receives, through the communication interface 503, the information sent by the second blockchain node confirming that the first list is the first type list, wherein The type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second blockchain node is all Any one of the other blockchain nodes;
处理器501根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述第一区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链 节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。The processor 501 allocates the first use right to the second blockchain node according to the first use right acquisition request, and the first use right acquisition request confirms the first list for the second blockchain node After it is the first type list, a request to obtain the first use right is sent to the first blockchain node, where the first use right is the second blockchain node confirming that the first list is After the first type list, any one of the multiple usage rights can be selected.
在其中一种实施方式中,处理器501通过通信接口503向区块链平台系统中的其它区块链节点发送查询请求之后,还包括:In one of the implementations, after the processor 501 sends a query request to other blockchain nodes in the blockchain platform system through the communication interface 503, it further includes:
在所述需要查询名单类型的名单包含一个名单的情况下,处理器501通过通信接口503接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点。In the case that the list of the type of list to be queried contains one list, the processor 501 receives through the communication interface 503 the information that confirms that the list of the type of the list to be queried is the second type list sent by the third blockchain node, so The second type is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes.
在其中一种可能的实施方式中,所述利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,所述处理器还用于:In one of the possible implementation manners, after the communication interface is used to send query requests to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the processor is further configured to:
在所述需要查询名单类型的名单是多个的情况下,利用所述通信接口接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the communication interface is used to receive the information sent by the fourth blockchain node confirming that the second list is a third type list, where the third type is Any one of multiple list types existing on the fourth blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is the other Any node in the blockchain node;
根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。Allocate the second use right to the fourth blockchain node according to the second use right acquisition request, and the second use right acquisition request is for the fourth blockchain node to confirm that the second list is After the third type list, a request to obtain the second use right is sent to the first blockchain node, where the second use right is the fourth blockchain node confirming that the second list is the first After the three types of lists, you can choose any one of the multiple usage rights acquired.
在其中一种实施方式中,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;In one of the embodiments, the first use right includes the use right to query the first data for free within a first preset time, and the first data is published by the first blockchain node to the district. List data on the blockchain platform system;
或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权,所述数字货币或贡献值用于支付区块链节点之间交易所需的费用;Alternatively, the first right to use includes a right to use a first preset amount of digital currency or contribution value, and the digital currency or contribution value is used to pay for a transaction between blockchain nodes;
或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
在其中一种实施方式中,处理器501获取第二数据;处理器501将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。In one of the implementations, the processor 501 obtains second data; the processor 501 publishes the second data to the blockchain platform system, and the second data is the first blockchain node List data collected but not released to the blockchain platform system.
在其中一种实施方式中,处理器501将所述第二数据发布到所述区块链平台系统中之后,还包括:In one of the implementation manners, after the processor 501 publishes the second data to the blockchain platform system, the method further includes:
处理器501获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。The processor 501 obtains a second right of use, and the second right of use includes free querying of the list data published by any of the other blockchain nodes to the blockchain platform system within a third preset time The right to use, or the second right to use includes a second preset amount of the digital currency or the right to use the contribution value, or the second right to use includes free inquiries about the The right to use the three types of lists.
需要说明的是,上述各个操作的实现还可以对应参照图2所示的方法实施例的相应描述。It should be noted that the implementation of each of the foregoing operations may also correspond to the corresponding description of the method embodiment shown in FIG. 2.
本申请实施例还提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被处理器执行时,图2所示的方法流程得以实现。The embodiment of the present application also provides a computer-readable storage medium. The computer storage medium stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the method shown in FIG. The process is realized.
综上所述,采用本申请实施例可以同时查询多个具体名单的名单类型,查询请求可以同时携带多个待查询的名单,且多个区块链节点响应查询请求并返回查询结果从而实现了 名单类型的快速查询,提高了查询效率;此外,区块链节点响应了查询请求并返回查询结果之后可以选择获得需要的操作的使用权,使得区块链节点的响应更加积极,从而进一步地提高了查询的效率。In summary, the embodiment of this application can simultaneously query the list types of multiple specific lists, the query request can carry multiple lists to be queried at the same time, and multiple blockchain nodes respond to the query request and return the query result to achieve The quick query of the list type improves the query efficiency; in addition, the blockchain node can choose to obtain the right to use the required operation after responding to the query request and returning the query result, which makes the response of the blockchain node more positive, thereby further improving Improve the efficiency of the query.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the application range.

Claims (20)

  1. 一种基于区块链的名单类型查询方法,其特征在于,包括:A list type query method based on blockchain, which is characterized in that it includes:
    第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;The first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through the broadcast mechanism. The query request carries a list of types that need to be queried. The list types include blacklist, whitelist, and graylist. List
    在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the first blockchain node receives information sent by the second blockchain node confirming that the first list is the first type list, wherein the first A type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second blockchain node is Any one of the other blockchain nodes;
    所述第一区块链节点根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述第一区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。The first blockchain node allocates the first use right to the second blockchain node according to the first use right acquisition request, and the first use right acquisition request is confirmed by the second blockchain node After the first list is the first type list, a request to obtain the first use right is sent to the first blockchain node, and the first use right is confirmed by the second blockchain node. The first list is any one of the multiple usage rights that can be selected and acquired after the first type list.
  2. 根据权利要求1所述方法,其特征在于,所述第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,还包括:The method according to claim 1, wherein after the first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the method further comprises:
    在所述需要查询名单类型的名单包含一个名单的情况下,所述第一区块链节点接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点。In the case that the list of the type of the list to be queried includes a list, the first blockchain node receives information sent by the third blockchain node confirming that the list of the type of the list to be queried is the second type of list, The second type is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes .
  3. 根据权利要求1所述方法,其特征在于,所述第一区块链节点通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,还包括:The method according to claim 1, wherein after the first blockchain node sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the method further comprises:
    在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the first block chain node receives the information sent by the fourth block chain node confirming that the second list is the third type list, wherein the first block chain node The third type is any one of the multiple list types existing on the fourth blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is Any one of the other blockchain nodes;
    所述第一区块链节点根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。The first blockchain node allocates the second use right to the fourth blockchain node according to the second use right acquisition request, and the second use right acquisition request is the fourth blockchain After the node confirms that the second list is the third type list, it sends a request to the first blockchain node to obtain the second use right, where the second use right is the fourth blockchain node After confirming that the second list is the third type list, any one of the multiple usage rights can be selected and acquired.
  4. 根据权利要求1至3任一项所述方法,其特征在于,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;The method according to any one of claims 1 to 3, wherein the first use right includes the use right to query the first data for free within a first preset time, and the first data is The list data published by the blockchain node to the blockchain platform system;
    或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权;Alternatively, the first use right includes the use right of a first preset amount of digital currency or contribution value;
    或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
  5. 根据权利要求4所述方法,其特征在于,还包括:The method according to claim 4, further comprising:
    所述第一区块链节点获取第二数据;The first blockchain node obtains second data;
    所述第一区块链节点将所述第二数据发布到所述区块链平台系统中,所述第二数据为 所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。The first blockchain node publishes the second data to the blockchain platform system, and the second data is collected by the first blockchain node but not published to the blockchain List data in the platform system.
  6. 根据权利要求5所述方法,其特征在于,所述第一区块链节点将所述第二数据发布到所述区块链平台系统中之后,还包括:The method according to claim 5, wherein after the first blockchain node publishes the second data to the blockchain platform system, the method further comprises:
    所述第一区块链节点获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。The first blockchain node obtains a second use right, and the second use right includes free querying of any of the other blockchain nodes and publishing to the blockchain platform system within a third preset time Or, the second use right includes the use right of a second preset amount of the digital currency or the contribution value, or the second use right is included in the fourth preset Free query of the right to use the list type of the third list within time.
  7. 一种区块链节点,其特征在于,包括:A blockchain node, characterized in that it includes:
    发送单元,用于通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;The sending unit is used to send a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the query request carries a list of types that need to be queried, and the list types include blacklist, whitelist, and graylist ;
    接收单元,用于在所述需要查询名单类型的名单是多个的情况下,所述第一区块链节点接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点;The receiving unit is configured to, in the case that there are multiple lists of the list type that need to be queried, the first blockchain node receives the information sent by the second blockchain node confirming that the first list is the first type list, Wherein, the first type is any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second The blockchain node is any node among the other blockchain nodes;
    分配单元,用于根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。An allocation unit, configured to allocate the first use right to the second blockchain node according to a first use right acquisition request, and the first use right acquisition request confirms the first use right for the second blockchain node After a list is the first type list, a request to obtain the first use right is sent to the blockchain node, where the first use right is the second blockchain node confirming that the first list is After the first type list, any one of the multiple usage rights can be selected.
  8. 根据权利要求7所述的区块链节点,其特征在于,所述接收单元,还用于在所述发送单元通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,在所述需要查询名单类型的名单包含一个名单的情况下,接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点。The blockchain node according to claim 7, wherein the receiving unit is further configured to, after the sending unit sends a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, In the case that the list of the type of the list to be queried contains one list, receiving information from the third blockchain node confirming that the list of the type of the list to be queried is the second type of list, and the second type is the Any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes.
  9. 根据权利要求7所述的区块链节点,其特征在于,所述接收单元还用于在所述发送单元通过广播机制向所述区块链平台系统中的其它区块链节点发送所述查询请求之后,The blockchain node according to claim 7, wherein the receiving unit is further configured to send the query to other blockchain nodes in the blockchain platform system through a broadcast mechanism in the sending unit After the request,
    在所述需要查询名单类型的名单是多个的情况下,接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, receiving information from the fourth blockchain node confirming that the second list is a third type list, where the third type is the fourth area Any one of multiple list types existing on a blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is among the other blockchain nodes Any node of;
    所述分配单元,还用于根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。The allocation unit is further configured to allocate the second use right to the fourth blockchain node according to the second use right acquisition request, where the second use right acquisition request is the fourth blockchain After the node confirms that the second list is the third type list, it sends a request to the first blockchain node to obtain the second use right, where the second use right is the fourth blockchain node After confirming that the second list is the third type list, any one of the multiple usage rights can be selected and acquired.
  10. 根据权利要求7至9任一项所述的区块链节点,其特征在于,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;The blockchain node according to any one of claims 7 to 9, wherein the first use right includes the use right to query first data for free within a first preset time, and the first data is The list data published by the first blockchain node to the blockchain platform system;
    或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权;Alternatively, the first use right includes the use right of a first preset amount of digital currency or contribution value;
    或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
  11. 根据权利要求10所述的区块链节点,其特征在于,所述区块链节点还包括:The blockchain node according to claim 10, wherein the blockchain node further comprises:
    获取单元,用于获取第二数据;The obtaining unit is used to obtain the second data;
    发布单元,用于将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。The publishing unit is configured to publish the second data to the blockchain platform system, where the second data is collected by the first blockchain node but not published to the blockchain platform system List data.
  12. 根据权利要求11所述的区块链节点,其特征在于,所述获取单元还用于,在所述发布单元将所述第二数据发布到所述区块链平台系统中之后,获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。The blockchain node according to claim 11, wherein the acquiring unit is further configured to acquire the second data after the publishing unit publishes the second data to the blockchain platform system. The right to use, the second right to use includes the right to query the list data published by any one of the other blockchain nodes on the blockchain platform system for free within a third preset time, or, The second use right includes a second preset amount of the digital currency or the use right of the contribution value, or the second use right includes free query of the list type of the third list within the fourth preset time Use rights.
  13. 一种装置,其特征在于,包括处理器、通信接口和存储器,所述处理器、通信接口和存储器相互连接,其中,所述存储器用于存储计算机程序,所述处理器被配置用于调用所述计算机程序,执行如下操作:A device, characterized by comprising a processor, a communication interface and a memory, the processor, the communication interface and the memory are connected to each other, wherein the memory is used to store a computer program, and the processor is configured to call the The computer program described below performs the following operations:
    利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求,所述查询请求携带需要查询名单类型的名单,所述名单类型包括黑名单、白名单和灰名单;Use the communication interface to send a query request to other blockchain nodes in the blockchain platform system through the broadcast mechanism, the query request carries a list of the types of lists that need to be queried, and the list types include blacklist, whitelist, and graylist ;
    在所述需要查询名单类型的名单是多个的情况下,利用所述通信接口接收第二区块链节点发送的确认第一名单为第一类型名单的信息,其中,所述第一类型为所述第二区块链节点上存在的多种名单类型中的任一类型,所述第一名单为所述多个名单中的任意一个名单,所述第二区块链节点为所述其它区块链节点中的任意一个节点;In the case where there are multiple lists of the list type that need to be queried, the communication interface is used to receive information sent by the second blockchain node confirming that the first list is a list of the first type, where the first type is Any one of multiple list types existing on the second blockchain node, the first list is any one of the multiple lists, and the second blockchain node is the other Any node in the blockchain node;
    根据第一使用权获取请求向所述第二区块链节点分配所述第一使用权,所述第一使用权获取请求为所述第二区块链节点确认所述第一名单为第一类型名单后,向所述第一区块链节点发送的获取所述第一使用权的请求,所述第一使用权为所述第二区块链节点确认所述第一名单为第一类型名单后能够选择获取的多个使用权中的任意一个。Allocate the first use right to the second blockchain node according to the first use right acquisition request, and the first use right acquisition request confirms that the first list is the first for the second blockchain node After the type list, a request to obtain the first use right is sent to the first blockchain node, where the first use right is the second blockchain node confirming that the first list is the first type After the list, you can choose any one of the multiple usage rights acquired.
  14. 根据权利要求11所述装置,其特征在于,所述利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,所述处理器还用于:The device according to claim 11, wherein after the said communication interface is used to send a query request to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the processor is further configured to:
    在所述需要查询名单类型的名单包含一个名单的情况下,利用所述通信接口接收第三区块链节点发送的确认所述需要查询名单类型的名单为第二类型名单的信息,所述第二类型为所述第三区块链节点上存在的所述多种名单类型中的任一类型,所述第三区块链节点为所述其它区块链节点中的任意一个节点。In the case that the list of the type of the list to be queried contains one list, the communication interface is used to receive information sent by the third blockchain node confirming that the list of the type of the list to be queried is the second type of list. The second type is any one of the multiple list types existing on the third blockchain node, and the third blockchain node is any one of the other blockchain nodes.
  15. 根据权利要求13所述装置,其特征在于,所述利用所述通信接口通过广播机制向区块链平台系统中的其它区块链节点发送查询请求之后,所述处理器还用于:The device according to claim 13, wherein after the said communication interface is used to send query requests to other blockchain nodes in the blockchain platform system through a broadcast mechanism, the processor is further configured to:
    在所述需要查询名单类型的名单是多个的情况下,利用所述通信接口接收第四区块链节点发送的确认第二名单为第三类型名单的信息,其中,所述第三类型为所述第四区块链节点上存在的多种名单类型中的任一类型,所述第二名单为所述多个名单中的任意一个名单,所述第四区块链节点为所述其它区块链节点中的任意一个节点;In the case that there are multiple lists of the list type that need to be queried, the communication interface is used to receive the information sent by the fourth blockchain node confirming that the second list is a third type list, where the third type is Any one of multiple list types existing on the fourth blockchain node, the second list is any one of the multiple lists, and the fourth blockchain node is the other Any node in the blockchain node;
    根据所述第二使用权获取请求向所述第四区块链节点分配所述第二使用权,所述第二 使用权获取请求为所述第四区块链节点确认所述第二名单为第三类型名单后,向所述第一区块链节点发送的获取所述第二使用权的请求,所述第二使用权为所述第四区块链节点确认所述第二名单为第三类型名单后能够选择获取的多个使用权中的任意一个。Allocate the second use right to the fourth blockchain node according to the second use right acquisition request, and the second use right acquisition request is for the fourth blockchain node to confirm that the second list is After the third type list, a request to obtain the second use right is sent to the first blockchain node, where the second use right is the fourth blockchain node confirming that the second list is the first After the three types of lists, you can choose any one of the multiple usage rights acquired.
  16. 根据权利要求13至15任一项所述装置,其特征在于,所述第一使用权包括在第一预设时间内免费查询第一数据的使用权,所述第一数据为所述第一区块链节点发布到所述区块链平台系统上的名单数据;The device according to any one of claims 13 to 15, wherein the first use right includes the use right to query first data for free within a first preset time, and the first data is the first The list data published by the blockchain node to the blockchain platform system;
    或者,所述第一使用权包括第一预设数量的数字货币或贡献值的使用权;Alternatively, the first use right includes the use right of a first preset amount of digital currency or contribution value;
    或者,所述第一使用权包括在第二预设时间内免费查询第二名单的名单类型的使用权。Alternatively, the first use right includes the use right to query the list type of the second list for free within a second preset time.
  17. 根据权利要求16所述装置,其特征在于,所述处理器还用于:The device according to claim 16, wherein the processor is further configured to:
    获取第二数据;Get the second data;
    将所述第二数据发布到所述区块链平台系统中,所述第二数据为所述第一区块链节点搜集的但未发布到所述区块链平台系统中的名单数据。The second data is released to the blockchain platform system, and the second data is list data collected by the first blockchain node but not released to the blockchain platform system.
  18. 根据权利要求17所述装置,其特征在于,所述将所述第二数据发布到所述区块链平台系统中之后,所述处理器还用于:The device according to claim 17, wherein after the second data is released to the blockchain platform system, the processor is further configured to:
    获取第二使用权,所述第二使用权包括在第三预设时间内免费查询所述其它区块链节点中任一节点发布到所述区块链平台系统上的名单数据的使用权,或者,所述第二使用权包括第二预设数量的所述数字货币或所述贡献值的使用权,或者,所述第二使用权包括在第四预设时间内免费查询第三名单的名单类型的使用权。Obtain a second right of use, where the second right of use includes the right to query the list data published by any one of the other blockchain nodes on the blockchain platform system for free within a third preset time, Alternatively, the second use right includes a second preset amount of the digital currency or the use right of the contribution value, or the second use right includes a free query of the third list within a fourth preset time The right to use the list type.
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现权利要求1至6任意一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 6.
  20. 一种计算机程序,其特征在于,当所述计算机程序在计算机上执行时,将会使所述计算机实现权利要求1至6任意一项所述的方法。A computer program, characterized in that, when the computer program is executed on a computer, it will enable the computer to implement the method according to any one of claims 1 to 6.
PCT/CN2019/120599 2019-05-20 2019-11-25 Blockchain-based list type query method and node WO2020233043A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910428680.XA CN110245187A (en) 2019-05-20 2019-05-20 A kind of list type queries method and node based on block chain
CN201910428680.X 2019-05-20

Publications (1)

Publication Number Publication Date
WO2020233043A1 true WO2020233043A1 (en) 2020-11-26

Family

ID=67884708

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120599 WO2020233043A1 (en) 2019-05-20 2019-11-25 Blockchain-based list type query method and node

Country Status (2)

Country Link
CN (1) CN110245187A (en)
WO (1) WO2020233043A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112581011A (en) * 2020-12-25 2021-03-30 深圳市元征科技股份有限公司 Lease management method, lease management device, terminal equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245187A (en) * 2019-05-20 2019-09-17 深圳壹账通智能科技有限公司 A kind of list type queries method and node based on block chain
CN112883115A (en) * 2021-02-24 2021-06-01 中国工商银行股份有限公司 Information processing method and device based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302417A1 (en) * 2008-04-25 2018-10-18 Kelce S. Wilson Website Integrity and Date Verification with a Blockchain
CN108717443A (en) * 2018-05-17 2018-10-30 北京京东金融科技控股有限公司 Data sharing method, block catenary system and computer readable storage medium
CN109688186A (en) * 2018-08-31 2019-04-26 深圳壹账通智能科技有限公司 Data interactive method, device, equipment and readable storage medium storing program for executing
CN109710687A (en) * 2018-11-23 2019-05-03 泰康保险集团股份有限公司 Processing method of insuring, device and electronic equipment based on block chain
CN110245187A (en) * 2019-05-20 2019-09-17 深圳壹账通智能科技有限公司 A kind of list type queries method and node based on block chain

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9985964B2 (en) * 2016-03-28 2018-05-29 Black Gold Coin, Inc. Systems and methods for providing block chain-based multifactor personal identity verification
US11321681B2 (en) * 2017-02-06 2022-05-03 Northern Trust Corporation Systems and methods for issuing and tracking digital tokens within distributed network nodes
US10771459B2 (en) * 2017-09-04 2020-09-08 Electronics And Telecommunications Research Institute Terminal apparatus, server apparatus, blockchain and method for FIDO universal authentication using the same
CN107766542B (en) * 2017-10-30 2020-09-11 上海分布信息科技有限公司 Partitioned block chain network and method for realizing partitioned query thereof
CN108667618B (en) * 2018-05-10 2020-07-03 阿里巴巴集团控股有限公司 Data processing method, device, server and system for member management of block chain
CN109359485A (en) * 2018-09-18 2019-02-19 深圳壹账通智能科技有限公司 Invoice data shared system and method based on block chain
CN109523385A (en) * 2018-12-07 2019-03-26 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302417A1 (en) * 2008-04-25 2018-10-18 Kelce S. Wilson Website Integrity and Date Verification with a Blockchain
CN108717443A (en) * 2018-05-17 2018-10-30 北京京东金融科技控股有限公司 Data sharing method, block catenary system and computer readable storage medium
CN109688186A (en) * 2018-08-31 2019-04-26 深圳壹账通智能科技有限公司 Data interactive method, device, equipment and readable storage medium storing program for executing
CN109710687A (en) * 2018-11-23 2019-05-03 泰康保险集团股份有限公司 Processing method of insuring, device and electronic equipment based on block chain
CN110245187A (en) * 2019-05-20 2019-09-17 深圳壹账通智能科技有限公司 A kind of list type queries method and node based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112581011A (en) * 2020-12-25 2021-03-30 深圳市元征科技股份有限公司 Lease management method, lease management device, terminal equipment and storage medium
CN112581011B (en) * 2020-12-25 2024-04-02 深圳市元征科技股份有限公司 Lease management method, lease management device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN110245187A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
WO2020233043A1 (en) Blockchain-based list type query method and node
CN109547530B (en) Region consensus method, system and equipment
US8117105B2 (en) Systems and methods for facilitating electronic securities transactions
US20060272002A1 (en) Method for automating the management and exchange of digital content with trust based categorization, transaction approval and content valuation
US8538848B1 (en) Revenue allocation for bundled intellectual property transactions
CN111367965B (en) Target object determining method, device, electronic equipment and storage medium
KR20210096619A (en) An intelligent, decentralized and autonomous marketplace for distributed computing and storage
KR102215034B1 (en) System for integrated mediation and transaction of cryptocurrency based on artificial intelligence
Wang et al. Smart contract-based caching and data transaction optimization in mobile edge computing
JP7149604B2 (en) Content license server and method
CN114900536A (en) Block chain-based point acceptance consensus storage method and system
KR20200033089A (en) Distributed selling and buying system and method of encrypt currency transaction
JP6294193B2 (en) Transaction management system and transaction management method
KR20200095900A (en) Method for providing blockchain based reward service using resource rent of node in blockchain network
CN115375339A (en) Multimedia information recommendation method, device and equipment and computer storage medium
US6999589B2 (en) Method and system for automatic brokered transactions
KR102041213B1 (en) Method for matching loanee and financial institution by referring to information of loanee and server using the same
CN111681092A (en) Resource scheduling method, server, electronic device and storage medium
CN109377331B (en) Data processing method and device for idle article, computer equipment and storage medium
CN113032036B (en) Service data processing method, device, system, computer equipment and storage medium
KR20200090582A (en) System and method for transacting digital contents based on block chain
CN113112297A (en) Foreign exchange market maker quotation engine
JP2023514007A (en) Escrow transaction method and system using smart contract on blockchain
Batool et al. Block-RACS: Towards Reputation-Aware Client Selection and Monetization Mechanism for Federated Learning
KR102185452B1 (en) System for managing account and investment of p2p lending platform using user ci code and method for managing the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19929943

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19929943

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 18/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19929943

Country of ref document: EP

Kind code of ref document: A1