首页> 外国专利> METHOD AND DEVICE FOR GENERATING BLOOM FILTER IN BLOCKCHAIN

METHOD AND DEVICE FOR GENERATING BLOOM FILTER IN BLOCKCHAIN

机译:在区块链中生成绽放过滤器的方法和设备

摘要

A method and device for generating a Bloom filter in a blockchain. The method comprises: acquiring the number of topics of a block (201); according to the number of topics, determining the number of topic storage bits needing to be occupied for storing the topics of the block (202), the number of topic storage bits being positively correlated with the number of topics; generating a Bloom filter of the block according to the number of topic storage bits (203); and for each topic of the block, according to a preset mapping relationship, updating the value of the bit mapped by the topic in the Bloom filter from a first preset value to a second preset value, so as to obtain the Bloom filter for storing the topics of the block (204). When the method above is applied to Fintech, the storage space of the Bloom filter is sufficient, so that the storage of various topics of the block can be satisfied, the bits of the mapping between the topics do not conflict, and an accurate query can be achieved when it is determined subsequently whether the block contains a queried topic.
机译:一种用于在区块链中生成绽放过滤器的方法和设备。该方法包括:获取块的主题数量(201);根据主题的数量,确定需要占用的主题存储比特数量用于存储块的主题(202),主题存储比特的数量与主题的数量正相关;根据主题存储位的数量(203)生成块的绽放过滤器;对于块的每个主题,根据预设的映射关系,将绘制窗口中的主题从第一预设值更新为第二预设值的主题的值更新,以便获得用于存储的绽放过滤器块的主题(204)。当上面的方法应用于Fintech时,盛开过滤器的存储空间足够,因此可以满足块的各种主题的存储,主题之间的映射的比特不冲突,并且可以进行准确的查询当块中是否包含查询主题时,可以实现。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号