CN115828311A - A blockchain-based incentive mechanism method for group intelligence privacy protection - Google Patents
A blockchain-based incentive mechanism method for group intelligence privacy protection Download PDFInfo
- Publication number
- CN115828311A CN115828311A CN202310114476.7A CN202310114476A CN115828311A CN 115828311 A CN115828311 A CN 115828311A CN 202310114476 A CN202310114476 A CN 202310114476A CN 115828311 A CN115828311 A CN 115828311A
- Authority
- CN
- China
- Prior art keywords
- workers
- worker
- task
- incentive mechanism
- winner
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000007246 mechanism Effects 0.000 title claims abstract description 107
- 238000000034 method Methods 0.000 title claims abstract description 83
- 230000008569 process Effects 0.000 claims abstract description 33
- 230000007115 recruitment Effects 0.000 claims abstract description 19
- 238000004364 calculation method Methods 0.000 claims abstract description 17
- 238000013461 design Methods 0.000 claims abstract description 17
- 230000008901 benefit Effects 0.000 claims abstract description 5
- 230000006870 function Effects 0.000 claims description 38
- 230000008447 perception Effects 0.000 claims description 17
- 238000005457 optimization Methods 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 claims description 5
- 230000003993 interaction Effects 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 4
- 230000003467 diminishing effect Effects 0.000 claims description 3
- 239000003999 initiator Substances 0.000 claims description 3
- 238000007726 management method Methods 0.000 claims description 3
- 238000013178 mathematical model Methods 0.000 claims description 3
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000004422 calculation algorithm Methods 0.000 abstract description 9
- 238000013475 authorization Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- 238000004088 simulation Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及物联网应用、近似算法、分布式系统领域,特别涉及一种基于区块链的群智感知隐私保护激励机制方法。The invention relates to the fields of Internet of Things applications, approximate algorithms, and distributed systems, and in particular to a block chain-based crowd sensing privacy protection incentive mechanism method.
背景技术Background technique
群智感知是一种结合了移动设备感知能力和众包的数据收集方式,能够借助一般用户的力量收集大规模的感知数据;群智感知目前已广泛应用于多个领域,包括交通监测、环境检测、医疗保护、基于位置的服务等;群智感知具有高扩展性和低专业要求的特性。Crowdsensing is a data collection method that combines the sensing capabilities of mobile devices and crowdsourcing. It can collect large-scale sensing data with the help of ordinary users. Crowdsensing has been widely used in many fields, including traffic monitoring, environmental Detection, medical protection, location-based services, etc.; crowd sensing has the characteristics of high scalability and low professional requirements.
传统群智感知系统过于依赖中心化的服务器,具有单点故障的问题,因而缺失了群智感知系统的鲁棒性;因此,引入区块链技术,取代传统服务器,实现去中心化的群智感知系统,有利于提高群智感知系统的安全性;目前大部分区块链支持智能合约技术,智能合约能够实现系统设定的协议功能,自动、可信地执行给定任务,适合用于实现群智感知流程中的具体交互。The traditional swarm intelligence system relies too much on centralized servers and has the problem of single point of failure, thus lacking the robustness of the swarm intelligence system; therefore, blockchain technology is introduced to replace traditional servers and realize decentralized swarm intelligence The perception system is conducive to improving the security of the crowd-sensing system; most blockchains currently support smart contract technology, and smart contracts can realize the protocol functions set by the system, automatically and credibly perform given tasks, and are suitable for realizing Specific interactions in the crowd sensing process.
目前限制群智感知的主要问题是参与度不足和数据质量不稳定,因此为群智感知系统设计有效的激励机制以提高参与度,是至关重要的;激励机制的目标是选择合适的群智感知参与者,并根据他们的贡献支付一定金钱形式的奖励;目前主流的设计思路是,设定一个优化目标,例如最大化群智感知平台的收益,据此选择合适的群智感知参与者,并决定给予他们的支付报酬。The main problems currently limiting crowd sensing are insufficient participation and unstable data quality, so it is crucial to design an effective incentive mechanism for the crowd sensing system to increase participation; the goal of the incentive mechanism is to select the appropriate crowd intelligence Sensing participants, and paying certain monetary rewards according to their contributions; the current mainstream design idea is to set an optimization goal, such as maximizing the revenue of the crowdsensing platform, and select appropriate crowdsensing participants accordingly. And decide to give them a payment reward.
目前基于区块链的激励机制设计存在以下问题:部分工作设计了多样的激励机制,却忽略了如何在区块链中通过智能合约实现这些机制,因而这些工作并不具备普适性;一些工作在设计优化场景时主要是优化实体的收益,而忽略了群智感知中的数据质量因素的重要性;大部分工作都认为是区块链以及智能合约是具备很高安全性的,但实际上,由于区块链的公开性和智能合约的透明性,激励机制的运行很容易造成隐私泄露,抑制用户的参与积极性。At present, there are the following problems in the design of incentive mechanisms based on blockchain: some works design various incentive mechanisms, but ignore how to realize these mechanisms through smart contracts in the blockchain, so these works are not universal; When designing optimization scenarios, it is mainly to optimize the income of entities, while ignoring the importance of data quality factors in crowd sensing; most of the work thinks that blockchain and smart contracts are highly secure, but in fact , due to the openness of the blockchain and the transparency of the smart contract, the operation of the incentive mechanism can easily cause privacy leaks and inhibit the enthusiasm of users to participate.
发明内容Contents of the invention
针对上述问题,本发明设计了一种基于区块链的群智感知隐私保护激励机制方法,能够在给定的成本约束下,有效刺激工人参与群智感知任务,最大化覆盖函数,同时保证用户的隐私性;本发明提出的基于区块链的群智感知系统,能够实现去中心化,并保证隐私性和安全性;本发明提出的激励机制方法,包括用户招募过程和报酬计算过程;本发明基于区块链的智能合约,根据群智感知的步骤设计了具体协议,能够适用于大部分区块链系统;本发明提出的激励机制方法具有计算有效性、个体理性、真实性、近似度和隐私保护性,能够比同类算法取得更高的覆盖、更低的支付以及更完备的安全性,包括授权认证、用户匿名和用户数据隐私。In view of the above problems, the present invention designs a blockchain-based crowd sensing privacy protection incentive mechanism method, which can effectively stimulate workers to participate in crowd sensing tasks under a given cost constraint, maximize the coverage function, and at the same time ensure that users privacy; the block chain-based crowd-sensing system proposed by the present invention can realize decentralization and ensure privacy and security; the incentive mechanism method proposed by the present invention includes the user recruitment process and the remuneration calculation process; Invented a blockchain-based smart contract, designed a specific protocol according to the steps of group intelligence perception, and can be applied to most blockchain systems; the incentive mechanism method proposed by the invention has computational validity, individual rationality, authenticity, and approximation And privacy protection, it can achieve higher coverage, lower payment and more complete security than similar algorithms, including authorization authentication, user anonymity and user data privacy.
本发明的技术方案是:Technical scheme of the present invention is:
一种基于区块链的群智感知隐私保护激励机制方法,其特征在于,其包括以下步骤:A blockchain-based group intelligence privacy protection incentive mechanism method, characterized in that it comprises the following steps:
步骤1:对基于区块链的群智感知系统进行设计和数学建模,基于反向拍卖,建立包含请求者、工人、区块链和激励机制的群智感知系统结构,建立请求者、工人、群智感知任务、报酬和工人收益的数学模型;Step 1: Design and mathematically model the blockchain-based crowd-sensing system. Based on the reverse auction, establish a crowd-sensing system structure including requesters, workers, blockchains and incentive mechanisms, and establish requesters, workers , a mathematical model of crowd sensing tasks, rewards, and worker benefits;
步骤2: 基于位置相关的群智感知系统的特点,设计覆盖函数作为优化目标,并构建预算约束下最大化覆盖函数的优化问题;Step 2: Based on the characteristics of the location-related crowd sensing system, design the coverage function as the optimization goal, and construct the optimization problem of maximizing the coverage function under the budget constraint;
步骤3: 基于区块链的智能合约技术,设计群智感知隐私保护激励机制框架,共包含六个阶段:注册阶段、任务投递阶段、投标阶段、工人招募阶段、数据提交阶段和支付阶段;Step 3: Based on blockchain smart contract technology, design the framework of crowd-sensing privacy protection incentive mechanism, which includes six stages: registration stage, task delivery stage, bidding stage, worker recruitment stage, data submission stage and payment stage;
步骤4:注册阶段中,工人和请求者在区块链上进行注册,以取得身份凭证,用于后续操作中的认证,并用椭圆曲线密码学作为公私钥体系;Step 4: In the registration phase, workers and requesters register on the blockchain to obtain identity credentials for authentication in subsequent operations, and use elliptic curve cryptography as the public-private key system;
步骤5:任务投递阶段中,完成注册后的请求者通过调用任务投递合约将自己的群智感知任务发布到区块链上;Step 5: In the task delivery phase, the requester after completing the registration publishes his group intelligence task to the blockchain by calling the task delivery contract;
步骤6:投标阶段中,完成注册后的工人通过调用投标合约进行竞标操作,为了保证标书的隐私性,标书是以Pedersen承诺的形式上传到区块链的,为了保证工人的匿名性,采用了环签名方法作为认证方式;Step 6: In the bidding phase, the workers who have completed the registration call the bidding contract to conduct bidding operations. In order to ensure the privacy of the bidding documents, the bidding documents are uploaded to the blockchain in the form of Pedersen commitments. In order to ensure the anonymity of the workers, a Ring signature method as authentication method;
步骤7:工人招募阶段中,所有参与竞标的工人需要揭露自己的真实标书,标书揭露合约会对工人的投标信息进行核实,并排除所有信息非法的工人,剩余工人的信息将作为输入送给激励机制合约,激励机制合约在预定时间会自动执行,并将得到的结果公布;Step 7: In the worker recruitment stage, all workers participating in the bidding need to disclose their real bid documents. The bid document disclosure contract will verify the bid information of the workers and exclude all workers with illegal information. The information of the remaining workers will be sent to the incentive as input Mechanism contract, the incentive mechanism contract will be automatically executed at the scheduled time, and the result will be announced;
步骤8:数据提交阶段中,所有赢家需要将自己的数据加密后提交到星际文件系统中,并将数据的摘要和存储地址加密后通过数据提交合约上传到区块链中;Step 8: In the data submission phase, all winners need to encrypt their data and submit it to the interstellar file system, and encrypt the abstract and storage address of the data and upload it to the blockchain through the data submission contract;
步骤9:支付阶段中,请求者给予每个赢家一定报酬,该报酬由激励机制计算得到。Step 9: In the payment phase, the requester gives each winner a certain reward, which is calculated by the incentive mechanism.
进一步,所述步骤1中,群智感知系统结构如下:Further, in said step 1, the structure of the crowd sensing system is as follows:
群智感知系统包括请求者、工人、区块链和激励机制四种角色;请求者是感知任务的发起者,请求者集合用表示,的任务集合用表示,包含个感知任务;工人是感知任务的执行者,工人集合用表示,共包含个工人;区块链为群智感知提供安全平台;激励机制是区块链上部署的程序,其目标是选择工人并决定给予工人的报酬;The crowd sensing system includes four roles: requester, worker, blockchain and incentive mechanism; requester is the initiator of the perception task, and the set of requesters uses express, set of tasks for express, Include perceptual tasks; workers is the executor of the perception task, and the worker set uses said, including The blockchain provides a secure platform for crowd sensing; the incentive mechanism is a program deployed on the blockchain, whose goal is to select workers and determine the rewards given to them;
每个工人提交一个三元组标书,其中是工人的位置,是该工人的任务集合,包含其愿意执行的所有任务,是工人的报价,用表示工人的真实成本,是私密的只有本人知道;per worker Submit a triplet bid ,in is a worker s position, is the task set of the worker, including all the tasks it is willing to perform, is a worker quote with means worker the true cost of It is private and only known to me;
给定标书档案,激励机制的目标是选择一个赢家集合,并决定给予每个赢家的报酬,赢家的报酬大小应取决于其对任务的贡献,用表示档案,其中是给予工人的报酬,如果工人是输家,则;given bid file , the goal of the incentive mechanism is to select a winner set , and decide the reward given to each winner, the size of the winner’s reward should depend on its contribution to the task, using represents a file, where is given to workers remuneration, if the worker is a loser, then ;
工人的收益能够通过报酬减去真实成本计算,即Worker income can be calculated by subtracting the true cost from the remuneration, ie
。 .
进一步,所述步骤2中,考虑位置相关的群智感知系统,定义覆盖函数如下:Further, in the
, ,
其中是任务的权重,由任务的位置重要性和价值决定,是任务被集合中的工人执行的次数,是控制收益递减梯度的系统参数,用和分别表示任务的位置重要性和价值,权重计算公式为in is the task The weight of , determined by the positional importance and value of the task, is the task be assembled The number of worker executions in , is the system parameter controlling the gradient of diminishing returns, with and represent tasks respectively The positional importance and value of the weight The calculation formula is
, ,
其中是平衡参数;激励机制的目标是在一个固定的预算下最大化覆盖函数,该问题称为预算约束下最大化覆盖函数问题,形式化为in is the balance parameter; the incentive mechanism is aimed at a fixed budget The problem of maximizing the cover function under the budget constraint is called the problem of maximizing the cover function under the budget constraint, which is formalized as
。 .
进一步,所述步骤3中,群智感知隐私保护激励机制框架,共包含六个阶段:注册阶段、任务投递阶段、投标阶段、工人招募阶段、数据提交阶段和支付阶段;客户端的操作实现请求者和工人与智能合约之间的交互,智能合约实现请求处理、功能实现和数据上链,智能合约与区块链进行交互,完成数据上链过程,上述过程构成群智感知隐私保护激励机制框架。Further, in the step 3, the crowdsensing privacy protection incentive mechanism framework includes six stages: registration stage, task delivery stage, bidding stage, worker recruitment stage, data submission stage and payment stage; the operation of the client realizes the requester And the interaction between workers and smart contracts, smart contracts realize request processing, function realization and data uploading, and smart contracts interact with blockchain to complete the process of data uploading. The above process constitutes the framework of group intelligence privacy protection incentive mechanism.
进一步,所述步骤4中,注册阶段如下:Further, in the
所有请求者和工人在首次加入群智感知系统时需要进行注册,并取得一对公钥和私钥,系统采用椭圆曲线密码学作为密钥管理方案,系统事先设定好采用的椭圆曲线、素数阶和曲线上一公共基准点,并公开这些信息,工人随机选择私钥,满足,则对应的公钥为,私钥由工人自己进行保存,公钥进行公开,注册时工人会取得一个身份标识,请求者注册过程相同。All requesters and workers need to register when they join the crowd sensing system for the first time, and obtain a pair of public key and private key. The system uses elliptic curve cryptography as the key management scheme, and the system pre-sets the elliptic curve used , prime order and a common reference point on the curve , and to disclose this information, workers random private key ,satisfy , the corresponding public key is , the private key is kept by the worker himself, and the public key is made public. When registering, the worker will obtain an identity , the requester The registration process is the same.
进一步,所述步骤5中,任务投递阶段如下:Further, in the
注册后的请求者能够通过调用任务投递合约发布自己的任务,请求者需要附上使用自己私钥生成的数字签名,并由智能合约对其进行验证,任务发布后,工人能够在区块链上查看任务信息,并选择感兴趣的任务;Registered requesters can issue their own tasks by calling the task delivery contract. The requester needs to attach a digital signature generated with its own private key, which will be verified by the smart contract. After the task is released, the worker can post on the blockchain View task information and select the task you are interested in;
每个感知任务包含任务名称、任务位置和任务描述,任务位置根据事先定好的区域进行划分,由数字表示,感知任务信息会附上摘要,以保证未被篡改,任务请求者的也会公开,便于工人后续找到请求者的公钥,在投递完所有任务后,请求者还会提交一个预算,表示其对于招募工人所能提供的支付能力。Each perception task includes task name, task location and task description. The task location is divided according to the pre-determined area and represented by numbers. The perception task information will be attached with a summary to ensure that it has not been tampered with. The task requester’s It will also be made public, so that workers can find the public key of the requester later. After all tasks are delivered, the requester will also submit a budget , indicating its ability to pay for recruiting workers.
进一步,所述步骤6中,投标阶段如下:Further, in the
注册后的工人能够根据自己的意愿选择自己的任务集,并通过调用投标合约进行投标,投标中的信息包括位置信息、任务集合和报价都是以数值的方式存在,并使用Pedersen承诺进行隐藏,事先给定椭圆曲线和两个基准点和,且是未知的,对于需要隐藏的真值,Pedersen承诺计算公式为,其中为随机选择的盲因子;Registered workers can choose their own set of tasks according to their own wishes, and bid by calling the bidding contract. The information in the bid, including location information, task sets, and quotations, exists in numerical form and is hidden using Pedersen commitments. Given the elliptic curve in advance and two benchmarks and ,and is unknown, for the truth value that needs to be hidden , the calculation formula of Pedersen commitment is ,in is a randomly selected blinding factor;
工人在投标步骤中,除了提交Pedersen承诺之外,还需要附上一个环签名,以匿名地验证自己的身份,给定椭圆曲线和基准点,个工人的公钥表示为,,假设真正签名者的顺序参数为,,签名者的私钥表示为,用表示签名者的密钥图像,其中是签名者的公钥,是一个满足密码学安全性的哈希函数,其返回值为上的一个点,签名过程如下:In the bidding step, in addition to submitting the Pedersen commitment, workers also need to attach a ring signature to verify their identity anonymously. Given the elliptic curve and datum , The public key of a worker is denoted as , , assuming that the order parameter of the real signer is , , the private key of the signer is expressed as ,use represents the key image of the signer, where is the signer's public key, is a cryptographically secure hash function whose return value is At a point above, the signing process is as follows:
用表示待签名的消息,签名者为所有工人生成随机因子和随机变量,其中是的素数阶,是整数模的剩余集合,用表示工人的随机因子对应公钥,用表示工人的随机因子对应密钥图像,用表示工人的随机因子组合后的哈希值,签名者进行下述计算;use Indicates the message to be signed, and the signers are all workers generate random factors and a random variable ,in yes the prime order of is the integer modulo The remaining set of , with means worker The random factor of corresponds to the public key, with means worker The random factor of corresponds to the key image, with means worker The hash value after the combination of random factors, the signer performs the following calculations;
, ,
其中是一个返回中某个值的哈希函数,接下来,签名者连续进行下述计算in is a return The hash function of a value in , then, the signer continuously performs the following calculations
, ,
其中,令,因此,因而in ,make ,therefore ,thus
, ,
最后环签名表示为,签名者附上生成的环签名,完成投标过程,该过程中,所有标书信息是隐藏的,并且投标的工人身份也是匿名的,智能合约需要对环签名进行验证,验证过程如下:The final ring signature is expressed as , the signer attaches the generated ring signature to complete the bidding process. During this process, all bidding information is hidden, and the identity of the bidding worker is also anonymous. The smart contract needs to verify the ring signature. The verification process is as follows:
智能合约端进行如下计算The smart contract side performs the following calculations
, ,
, ,
如果,那么环签名是合法的,特别地,如果两个环签名拥有重复的密钥图像,那么称这两个环签名被链接,并且他们的签名者是同一个工人,为了方便标识,对于匿名工人,会新生成一个,智能合约完成验证后,投标阶段结束。if , then the ring signature is legal, in particular, if two ring signatures have duplicate key images , then it is said that the two ring signatures are linked, and their signers are the same worker. For the convenience of identification, for anonymous workers, a new one will be generated , after the smart contract completes verification, the bidding phase ends.
进一步,所述步骤7中,工人招募阶段如下:Further, in the
所有参与竞标的工人需要通过调用标书揭露合约揭露自己的标书真值,智能合约会根据真值与先前提交的Pedersen承诺进行比对验证,对于承诺和收到的真值,计算,如果,那么承诺合法,智能合约排除掉所有承诺非法的工人,并将剩余工人的信息进行整合,用表示最终的匿名工人集合,用表示最终的标书文档,和会被送到激励机制合约中作为输入;All workers participating in the bidding need to disclose the true value of their bid by calling the bid disclosure contract. The smart contract will compare and verify the true value with the previously submitted Pedersen commitment. For the commitment and the received truth value ,calculate ,if , then the promise is legal, the smart contract excludes all workers whose promise is illegal, and integrates the information of the remaining workers, using Denotes the final set of anonymous workers, denoted by Indicates the final tender document, and will be sent to the incentive mechanism contract as input;
激励机制通过智能合约实现,能够在给定时间触发,激励机制的目标是解决预算约束下最大化覆盖函数问题,对工人进行选择,并决定给予赢家的报酬,具体步骤如下:The incentive mechanism is implemented through smart contracts and can be triggered at a given time. The goal of the incentive mechanism is to solve the problem of maximizing the coverage function under budget constraints, select workers, and determine the rewards for the winners. The specific steps are as follows:
S1:初始化赢家集合,初始化报酬集合,初始化筛选工人集合;S1: Initialize the winner set , initialize the reward set , initialize the set of filter workers ;
S2:从集合中随机选择一个值赋予随机变量;S2: from set Randomly choose a value from the random variable ;
S3:如果执行S4,否则跳转到S6;S3: if Execute S4, otherwise jump to S6;
S4:找到筛选工人集合中能够使值最大的匿名工人;S4: Find the set of filtered workers can enable Anonymous worker with the largest value ;
S5:将匿名工人添加到赢家集合,并且给予匿名工人的报酬为,其中为预算,跳转到S17;S5: Put anonymous workers add to winner collection , and give anonymous workers is paid for ,in For budget, skip to S17;
S6:找到筛选工人集合中能够使值最大的匿名工人,其中;S6: Find the set of filtered workers can enable Anonymous worker with the largest value ,in ;
S7:如果,执行S8,否则跳转到S10;S7: if , execute S8, otherwise jump to S10;
S8:将匿名工人添加到赢家集合;S8: Put anonymous workers add to winner collection ;
S9:找到集合中能够使值最大的匿名工人,表示在中排除集合中元素后剩余的集合,跳转到S7;S9: find the set can enable Anonymous worker with the largest value , expressed in exclude collections Jump to S7 for the remaining set after the middle element;
S10:对于赢家集合中的每个匿名工人,这些工人也称作赢家,执行步骤S11-S16;S10: For the winner set Each anonymous worker in , these workers are also called winners, and execute steps S11-S16;
S11:初始化临时赢家集合;S11: Initialize the set of temporary winners ;
S12:找到集合中能够使值最大的第二匿名工人,表示排除元素匿名工人后的集合;S12: find the set can enable The second anonymous worker with the largest value , Indicates excluded element anonymous workers collection after ;
S13:如果,执行S14,否则跳转到S17;S13: if , execute S14, otherwise jump to S17;
S14:找到集合中能够使值最大的第二匿名工人;S14: find the set can enable The second anonymous worker with the largest value ;
S15:更新匿名工人的报酬为S15: Update anonymous workers is paid for
; ;
S16:将第二匿名工人加入到临时赢家集合,跳转到S13;S16: Put the second anonymous worker Add to set of provisional winners , jump to S13;
S17:返回赢家集合和报酬集合;S17: return the winner set and reward collection ;
激励机制合约计算得到结果后,在区块链上进行公布,工人能够通过自己的匿名确认自己是否被选为赢家。After the incentive mechanism contract calculates the result, it is announced on the blockchain, and workers can use their own anonymous Check to see if you've been selected as a winner.
进一步,所述步骤8中,数据提交阶段如下:Further, in the
赢家需要通过提交收集到的感知数据完成任务,使用星际文件系统作为分布式存储系统以减轻区块链上的存储负担,赢家首先需要与请求者分享一个安全密钥,赢家生成一个一次性私钥,对应的一次性公钥为,一次性公钥需要进行上链,一次性私钥由赢家自己拥有,则共享的安全密钥计算公式为,该密钥只有赢家自己和拥有私钥的请求者能够计算得到,保证了安全性;The winner needs to complete the task by submitting the collected perception data, using the interstellar file system as a distributed storage system to reduce the storage burden on the blockchain, the winner first needs to share a security key with the requester, and the winner generates a one-time private key , and the corresponding one-time public key is , the one-time public key needs to be uploaded to the chain, and the one-time private key is owned by the winner himself, then the formula for calculating the shared security key is , the key is only the winner himself and owns the private key The requester can be calculated, ensuring security;
赢家对该共享安全密钥进行取哈希操作,得到最终的加密密钥,并使用该密钥对提交的数据进行加密,再将加密后的内容传递到星际文件系统上,完成数据的上传,然后赢家需要将所提交数据的哈希值和存储地址使用加密密钥加密后通过数据提交合约上传到区块链上,请求者通过计算加密密钥,对加密的哈希值和存储地址进行解密,并在星际文件系统取得赢家提交的数据信息,数据的哈希值保证了该数据的完整性和未被篡改性。The winner hashes the shared security key to obtain the final encryption key , and use the key to encrypt the submitted data, and then pass the encrypted content to the interstellar file system to complete the data upload, and then the winner needs to encrypt the hash value and storage address of the submitted data with the encryption key After uploading to the blockchain through the data submission contract, the requester calculates the encryption key , decrypt the encrypted hash value and storage address, and obtain the data information submitted by the winner in the interstellar file system. The hash value of the data ensures the integrity of the data and has not been tampered with.
进一步,所述步骤9中,支付阶段如下:Further, in step 9, the payment stage is as follows:
请求者在确认收到赢家提交的感知数据后,根据先前激励机制计算得到的报酬结果,给予该赢家一定数额的支付,完成整个群智感知过程。After confirming the receipt of the sensing data submitted by the winner, the requester will pay the winner a certain amount according to the remuneration result calculated by the previous incentive mechanism to complete the entire crowd sensing process.
本发明的有益效果是:The beneficial effects of the present invention are:
本发明提出的基于区块链的群智感知隐私保护激励机制方法能够有效刺激工人参与群智感知任务,解决群智感知参与度不足的问题;本发明提出的基于区块链的群智感知系统,无需中心化服务器,能够实现去中心化、隐私性和安全性;本发明提出的激励机制方法,能够在给定的预算下最大化覆盖函数,并取得计算有效性、个体理性、真实性和近似度;本发明提出的激励机制方法基于区块链的智能合约进行了具体协议设计,具有完备性和可行性,能够适用于大部分区块链系统,并保证用户的隐私性;本发明提出的激励机制与同类算法相比能够取得更高的覆盖、更低的支付以及更完备的安全性,包括授权认证、用户匿名和用户数据隐私。The blockchain-based crowdsensing privacy protection incentive mechanism proposed by the present invention can effectively stimulate workers to participate in crowdsensing tasks and solve the problem of insufficient participation in crowdsensing; the blockchain-based crowdsensing system proposed by the present invention , without a centralized server, can achieve decentralization, privacy and security; the incentive mechanism method proposed in the present invention can maximize the coverage function under a given budget, and achieve computational efficiency, individual rationality, authenticity and Approximation; the incentive mechanism method proposed by the present invention is based on the smart contract of the block chain for specific protocol design, which is complete and feasible, can be applied to most block chain systems, and guarantees the privacy of users; the present invention proposes Compared with similar algorithms, the incentive mechanism can achieve higher coverage, lower payment and more complete security, including authorization authentication, user anonymity and user data privacy.
附图说明Description of drawings
图1是基于区块链的群智感知隐私保护激励机制方法流程示意图;Figure 1 is a schematic diagram of the method flow of the group intelligence privacy protection incentive mechanism based on blockchain;
图2是激励机制算法的流程示意图;Fig. 2 is a schematic flow chart of the incentive mechanism algorithm;
图3(a)是隐私保护激励机制方法中注册、任务投递、激励机制、支付步骤的链上执行时间消耗的测试结果图;Figure 3(a) is a test result diagram of the execution time consumption on the chain of the registration, task delivery, incentive mechanism, and payment steps in the privacy protection incentive mechanism method;
图3(b)是隐私保护激励机制方法中投标、标书揭露、数据提交步骤的链上执行时间消耗的测试结果图;Figure 3(b) is the test result diagram of the on-chain execution time consumption of bidding, bidding document disclosure, and data submission steps in the privacy protection incentive mechanism method;
图4(a)是隐私保护激励机制方法中注册、任务投递、支付步骤的执行时间的测试结果图;Figure 4(a) is the test result diagram of the execution time of registration, task delivery, and payment steps in the privacy protection incentive mechanism method;
图4(b)是隐私保护激励机制方法中投标、工人招募、数据提交步骤的执行时间的测试结果图;Figure 4(b) is the test result diagram of the execution time of the bidding, worker recruitment, and data submission steps in the privacy-preserving incentive mechanism method;
图5(a)是隐私保护激励机制方法取得的优化目标值随工人数量变化的比较结果图;Figure 5(a) is a comparison result of the optimization target value obtained by the privacy protection incentive mechanism method with the number of workers;
图5(b)是隐私保护激励机制方法需要的支付随工人数量变化的比较结果图;Figure 5(b) is a graph comparing the payment required by the privacy protection incentive mechanism method with the number of workers;
图6(a)是隐私保护激励机制方法取得的优化目标值随预算变化的比较结果图;Figure 6(a) is the comparison result of the optimization target value obtained by the privacy protection incentive mechanism method with the budget change;
图6(b)是隐私保护激励机制方法需要的支付随预算变化的比较结果图。Figure 6(b) is a comparison result of the payment required by the privacy protection incentive mechanism method with the budget.
具体实施方式Detailed ways
以下结合附图,对本发明的技术方案和效果进行详细说明。还提供一个和同类激励机制方法进行比较的仿真结果作为实施例,但此实施例仅作为示例,目的在于解释本发明,不能理解为本发明的限制。The technical solutions and effects of the present invention will be described in detail below in conjunction with the accompanying drawings. A simulation result compared with similar incentive mechanism methods is also provided as an example, but this example is only used as an example for the purpose of explaining the present invention, and should not be construed as a limitation of the present invention.
实施例1:如图1所示,一种基于区块链的群智感知隐私保护激励机制方法,其包括以下步骤:Embodiment 1: As shown in Figure 1, a block chain-based group intelligence privacy protection incentive mechanism method, which includes the following steps:
步骤1:对基于区块链的群智感知系统进行设计和数学建模,基于反向拍卖,建立包含请求者、工人、区块链和激励机制的群智感知系统结构,建立请求者、工人、群智感知任务、报酬和工人收益的数学模型;Step 1: Design and mathematically model the blockchain-based crowd-sensing system. Based on the reverse auction, establish a crowd-sensing system structure including requesters, workers, blockchains and incentive mechanisms, and establish requesters, workers , a mathematical model of crowd sensing tasks, rewards, and worker benefits;
步骤2: 基于位置相关的群智感知系统的特点,设计覆盖函数作为优化目标,并构建预算约束下最大化覆盖函数的优化问题;Step 2: Based on the characteristics of the location-related crowd sensing system, design the coverage function as the optimization goal, and construct the optimization problem of maximizing the coverage function under the budget constraint;
步骤3: 基于区块链的智能合约技术,设计群智感知隐私保护激励机制框架,共包含六个阶段:注册阶段、任务投递阶段、投标阶段、工人招募阶段、数据提交阶段和支付阶段;Step 3: Based on blockchain smart contract technology, design the framework of crowd-sensing privacy protection incentive mechanism, which includes six stages: registration stage, task delivery stage, bidding stage, worker recruitment stage, data submission stage and payment stage;
步骤4:注册阶段中,工人和请求者在区块链上进行注册,以取得身份凭证,用于后续操作中的认证,并用椭圆曲线密码学作为公私钥体系;Step 4: In the registration phase, workers and requesters register on the blockchain to obtain identity credentials for authentication in subsequent operations, and use elliptic curve cryptography as the public-private key system;
步骤5:任务投递阶段中,完成注册后的请求者通过调用任务投递合约将自己的群智感知任务发布到区块链上;Step 5: In the task delivery phase, the requester after completing the registration publishes his group intelligence task to the blockchain by calling the task delivery contract;
步骤6:投标阶段中,完成注册后的工人通过调用投标合约进行竞标操作,为了保证标书的隐私性,标书是以Pedersen承诺的形式上传到区块链的,为了保证工人的匿名性,采用了环签名方法作为认证方式;Step 6: In the bidding phase, the workers who have completed the registration call the bidding contract to conduct bidding operations. In order to ensure the privacy of the bidding documents, the bidding documents are uploaded to the blockchain in the form of Pedersen commitments. In order to ensure the anonymity of the workers, a Ring signature method as authentication method;
步骤7:工人招募阶段中,所有参与竞标的工人需要揭露自己的真实标书,标书揭露合约会对工人的投标信息进行核实,并排除所有信息非法的工人,剩余工人的信息将作为输入送给激励机制合约,激励机制合约在预定时间会自动执行,并将得到的结果公布;Step 7: In the worker recruitment stage, all workers participating in the bidding need to disclose their real bid documents. The bid document disclosure contract will verify the bid information of the workers and exclude all workers with illegal information. The information of the remaining workers will be sent to the incentive as input Mechanism contract, the incentive mechanism contract will be automatically executed at the scheduled time, and the result will be announced;
步骤8:数据提交阶段中,所有赢家需要将自己的数据加密后提交到星际文件系统中,并将数据的摘要和存储地址加密后通过数据提交合约上传到区块链中;Step 8: In the data submission phase, all winners need to encrypt their data and submit it to the interstellar file system, and encrypt the abstract and storage address of the data and upload it to the blockchain through the data submission contract;
步骤9:支付阶段中,请求者给予每个赢家一定报酬,该报酬由激励机制计算得到。Step 9: In the payment phase, the requester gives each winner a certain reward, which is calculated by the incentive mechanism.
进一步,所述步骤1中,群智感知系统结构如下:Further, in said step 1, the structure of the crowd sensing system is as follows:
群智感知系统包括请求者、工人、区块链和激励机制四种角色;请求者是感知任务的发起者,请求者集合用表示,的任务集合用表示,包含个感知任务;工人是感知任务的执行者,工人集合用表示,共包含个工人;区块链为群智感知提供安全平台;激励机制是区块链上部署的程序,其目标是选择工人并决定给予工人的报酬;The crowd sensing system includes four roles: requester, worker, blockchain and incentive mechanism; requester is the initiator of the perception task, and the set of requesters uses express, set of tasks for express, Include perceptual tasks; workers is the executor of the perception task, and the worker set uses said, including The blockchain provides a secure platform for crowd sensing; the incentive mechanism is a program deployed on the blockchain, whose goal is to select workers and determine the rewards given to them;
每个工人提交一个三元组标书,其中是工人的位置,是该工人的任务集合,包含其愿意执行的所有任务,是工人的报价,用表示工人的真实成本,是私密的只有本人知道;per worker Submit a triplet bid ,in is a worker s position, is the task set of the worker, including all the tasks it is willing to perform, is a worker quote with means worker the true cost of It is private and only known to me;
给定标书档案,激励机制的目标是选择一个赢家集合,并决定给予每个赢家的报酬,赢家的报酬大小应取决于其对任务的贡献,用表示档案,其中是给予工人的报酬,如果工人是输家,则;given bid file , the goal of the incentive mechanism is to select a winner set , and decide the reward given to each winner, the size of the winner’s reward should depend on its contribution to the task, using represents a file, where is given to workers remuneration, if the worker is a loser, then ;
工人的收益能够通过报酬减去真实成本计算,即Worker income can be calculated by subtracting the true cost from the remuneration, ie
。 .
进一步,所述步骤2中,考虑位置相关的群智感知系统,定义覆盖函数如下:Further, in the
, ,
其中是任务的权重,由任务的位置重要性和价值决定,是任务被集合中的工人执行的次数,是控制收益递减梯度的系统参数,用和分别表示任务的位置重要性和价值,权重计算公式为in is the task The weight of , determined by the positional importance and value of the task, is the task be assembled The number of worker executions in , is the system parameter controlling the gradient of diminishing returns, with and represent tasks respectively The positional importance and value of the weight The calculation formula is
, ,
其中是平衡参数;激励机制的目标是在一个固定的预算下最大化覆盖函数,该问题称为预算约束下最大化覆盖函数问题,形式化为in is the balance parameter; the incentive mechanism is aimed at a fixed budget The problem of maximizing the cover function under the budget constraint is called the problem of maximizing the cover function under the budget constraint, which is formalized as
。 .
进一步,所述步骤3中,群智感知隐私保护激励机制框架,共包含六个阶段:注册阶段、任务投递阶段、投标阶段、工人招募阶段、数据提交阶段和支付阶段;客户端的操作实现请求者和工人与智能合约之间的交互,智能合约实现请求处理、功能实现和数据上链,智能合约与区块链进行交互,完成数据上链过程,上述过程构成群智感知隐私保护激励机制框架。Further, in the step 3, the crowdsensing privacy protection incentive mechanism framework includes six stages: registration stage, task delivery stage, bidding stage, worker recruitment stage, data submission stage and payment stage; the operation of the client realizes the requester And the interaction between workers and smart contracts, smart contracts realize request processing, function realization and data uploading, and smart contracts interact with blockchain to complete the process of data uploading. The above process constitutes the framework of group intelligence privacy protection incentive mechanism.
进一步,所述步骤4中,注册阶段如下:Further, in the
所有请求者和工人在首次加入群智感知系统时需要进行注册,并取得一对公钥和私钥,系统采用椭圆曲线密码学作为密钥管理方案,系统事先设定好采用的椭圆曲线、素数阶和曲线上一公共基准点,并公开这些信息,工人随机选择私钥,满足,则对应的公钥为,私钥由工人自己进行保存,公钥进行公开,注册时工人会取得一个身份标识,请求者注册过程相同。All requesters and workers need to register when they join the crowd sensing system for the first time, and obtain a pair of public key and private key. The system uses elliptic curve cryptography as the key management scheme, and the system pre-sets the elliptic curve used , prime order and a common reference point on the curve , and to disclose this information, workers random private key ,satisfy , the corresponding public key is , the private key is kept by the worker himself, and the public key is made public. When registering, the worker will obtain an identity , the requester The registration process is the same.
进一步,所述步骤5中,任务投递阶段如下:Further, in the
注册后的请求者能够通过调用任务投递合约发布自己的任务,请求者需要附上使用自己私钥生成的数字签名,并由智能合约对其进行验证,任务发布后,工人能够在区块链上查看任务信息,并选择感兴趣的任务;Registered requesters can issue their own tasks by calling the task delivery contract. The requester needs to attach a digital signature generated with its own private key, which will be verified by the smart contract. After the task is released, the worker can post on the blockchain View task information and select the task you are interested in;
每个感知任务包含任务名称、任务位置和任务描述,特别地,任务位置根据事先定好的区域进行划分,由数字表示,感知任务信息会附上摘要,以保证未被篡改,任务请求者的也会公开,便于工人后续找到请求者的公钥,在投递完所有任务后,请求者还会提交一个预算,表示其对于招募工人所能提供的支付能力。Each perception task includes the task name, task location and task description. In particular, the task location is divided according to the pre-determined area and represented by numbers. The perception task information will be attached with a summary to ensure that it has not been tampered with. It will also be made public, so that workers can find the public key of the requester later. After all tasks are delivered, the requester will also submit a budget , indicating its ability to pay for recruiting workers.
进一步,所述步骤6中,投标阶段如下:注册后的工人能够根据自己的意愿选择自己的任务集,并通过调用投标合约进行投标,投标中的信息包括位置信息、任务集合和报价都是以数值的方式存在,并使用Pedersen承诺进行隐藏,事先给定椭圆曲线和两个基准点和,且是未知的,对于需要隐藏的真值,Pedersen承诺计算公式为,其中为随机选择的盲因子;Further, in the
工人在投标步骤中,除了提交Pedersen承诺之外,还需要附上一个环签名,以匿名地验证自己的身份,给定椭圆曲线和基准点,个工人的公钥表示为,,假设真正签名者的顺序参数为,,签名者的私钥表示为,用表示签名者的密钥图像,其中是签名者的公钥,是一个满足密码学安全性的哈希函数,其返回值为上的一个点,签名过程如下:In the bidding step, in addition to submitting the Pedersen commitment, workers also need to attach a ring signature to verify their identity anonymously. Given the elliptic curve and datum , The public key of a worker is denoted as , , assuming that the order parameter of the real signer is , , the private key of the signer is expressed as ,use represents the key image of the signer, where is the signer's public key, is a cryptographically secure hash function whose return value is At a point above, the signing process is as follows:
用表示待签名的消息,签名者为所有工人生成随机因子和随机变量,其中是的素数阶,是整数模的剩余集合,用表示工人的随机因子对应公钥,用表示工人的随机因子对应密钥图像,用表示工人的随机因子组合后的哈希值,签名者进行下述计算;use Indicates the message to be signed, and the signers are all workers generate random factors and a random variable ,in yes the prime order of is the integer modulo The remaining set of , with means worker The random factor of corresponds to the public key, with means worker The random factor of corresponds to the key image, with means worker The hash value after the combination of random factors, the signer performs the following calculations;
, ,
其中是一个返回中某个值的哈希函数,接下来,签名者连续进行下述计算in is a return The hash function of a value in , then, the signer continuously performs the following calculations
, ,
其中,令,因此,因而in ,make ,therefore ,thus
, ,
最后环签名表示为,签名者附上生成的环签名,完成投标过程,该过程中,所有标书信息是隐藏的,并且投标的工人身份也是匿名的,智能合约需要对环签名进行验证,验证过程如下:The final ring signature is expressed as , the signer attaches the generated ring signature to complete the bidding process. During this process, all bidding information is hidden, and the identity of the bidding worker is also anonymous. The smart contract needs to verify the ring signature. The verification process is as follows:
智能合约端进行如下计算The smart contract side performs the following calculations
, ,
如果,那么环签名是合法的,特别地,如果两个环签名拥有重复的密钥图像,那么称这两个环签名被链接,并且他们的签名者是同一个工人,为了方便标识,对于匿名工人,会新生成一个,智能合约完成验证后,投标阶段结束。if , then the ring signature is legal, in particular, if two ring signatures have duplicate key images , then it is said that the two ring signatures are linked, and their signers are the same worker. For the convenience of identification, for anonymous workers, a new one will be generated , after the smart contract completes verification, the bidding phase ends.
进一步,所述步骤7中,工人招募阶段如下:Further, in the
所有参与竞标的工人需要通过调用标书揭露合约揭露自己的标书真值,智能合约会根据真值与先前提交的Pedersen承诺进行比对验证,对于承诺和收到的真值,计算,如果,那么承诺合法,智能合约排除掉所有承诺非法的工人,并将剩余工人的信息进行整合,用表示最终的匿名工人集合,用表示最终的标书文档,和会被送到激励机制合约中作为输入;All workers participating in the bidding need to disclose the true value of their bid by calling the bid disclosure contract. The smart contract will compare and verify the true value with the previously submitted Pedersen commitment. For the commitment and the received truth value ,calculate ,if , then the promise is legal, the smart contract excludes all workers whose promise is illegal, and integrates the information of the remaining workers, using Denotes the final set of anonymous workers, denoted by Indicates the final tender document, and will be sent to the incentive mechanism contract as input;
激励机制通过智能合约实现,能够在给定时间触发,激励机制的目标是解决预算约束下最大化覆盖函数问题,对工人进行选择,并决定给予赢家的报酬,如图2所示,激励机制的具体步骤如下:The incentive mechanism is implemented through smart contracts and can be triggered at a given time. The goal of the incentive mechanism is to solve the problem of maximizing the coverage function under budget constraints, select workers, and decide the rewards for the winners. As shown in Figure 2, the incentive mechanism Specific steps are as follows:
S1:初始化赢家集合,初始化报酬集合,初始化筛选工人集合;S1: Initialize the winner set , initialize the reward set , initialize the set of filter workers ;
S2:从集合中随机选择一个值赋予随机变量;S2: from set Randomly choose a value from the random variable ;
S3:如果执行S4,否则跳转到S6;S3: if Execute S4, otherwise jump to S6;
S4:找到筛选工人集合中能够使值最大的匿名工人;S4: Find the set of filtered workers can enable Anonymous worker with the largest value ;
S5:将匿名工人添加到赢家集合,并且给予匿名工人的报酬为,其中为预算,跳转到S17;S5: Put anonymous workers add to winner collection , and give anonymous workers is paid for ,in For budget, skip to S17;
S6:找到筛选工人集合中能够使值最大的匿名工人,其中;S6: Find the set of filtered workers can enable Anonymous worker with the largest value ,in ;
S7:如果,执行S8,否则跳转到S10;S7: if , execute S8, otherwise jump to S10;
S8:将匿名工人添加到赢家集合;S8: Put anonymous workers add to winner collection ;
S9:找到集合中能够使值最大的匿名工人,表示在中排除集合中元素后剩余的集合,跳转到S7;S9: find the set can enable Anonymous worker with the largest value , expressed in exclude collections Jump to S7 for the remaining set after the middle element;
S10:对于赢家集合中的每个匿名工人,这些工人也称作赢家,执行步骤S11-S16;S10: For the winner set Each anonymous worker in , these workers are also called winners, and execute steps S11-S16;
S11:初始化临时赢家集合;S11: Initialize the set of temporary winners ;
S12:找到集合中能够使值最大的第二匿名工人,表示排除元素匿名工人后的集合;S12: find the set can enable The second anonymous worker with the largest value , Indicates excluded element anonymous worker collection after ;
S13:如果,执行S14,否则跳转到S17;S13: if , execute S14, otherwise jump to S17;
S14:找到集合中能够使值最大的第二匿名工人;S14: find the set can enable The second anonymous worker with the largest value ;
S15:更新匿名工人的报酬为S15: Update anonymous workers is paid for
; ;
S16:将第二匿名工人加入到临时赢家集合,跳转到S13;S16: Put the second anonymous worker Add to set of provisional winners , jump to S13;
S17:返回赢家集合和报酬集合;S17: return the winner set and reward collection ;
激励机制合约计算得到结果后,在区块链上进行公布,工人能够通过自己的匿名确认自己是否被选为赢家。After the incentive mechanism contract calculates the result, it is announced on the blockchain, and workers can use their own anonymous Check to see if you've been selected as a winner.
进一步,所述步骤8中,数据提交阶段如下:Further, in the
赢家需要通过提交收集到的感知数据完成任务,使用星际文件系统作为分布式存储系统以减轻区块链上的存储负担,赢家首先需要与请求者分享一个安全密钥,赢家生成一个一次性私钥,对应的一次性公钥为,一次性公钥需要进行上链,一次性私钥由赢家自己拥有,则共享的安全密钥计算公式为,该密钥只有赢家自己和拥有私钥的请求者能够计算得到,保证了安全性;The winner needs to complete the task by submitting the collected perception data, using the interstellar file system as a distributed storage system to reduce the storage burden on the blockchain, the winner first needs to share a security key with the requester, and the winner generates a one-time private key , and the corresponding one-time public key is , the one-time public key needs to be uploaded to the chain, and the one-time private key is owned by the winner himself, then the formula for calculating the shared security key is , the key is only the winner himself and owns the private key The requester can be calculated, ensuring security;
赢家对该共享安全密钥进行取哈希操作,得到最终的加密密钥,并使用该密钥对提交的数据进行加密,再将加密后的内容传递到星际文件系统上,完成数据的上传,然后赢家需要将所提交数据的哈希值和存储地址使用加密密钥加密后通过数据提交合约上传到区块链上,请求者通过计算加密密钥,对加密的哈希值和存储地址进行解密,并在星际文件系统取得赢家提交的数据信息,数据的哈希值保证了该数据的完整性和未被篡改性。The winner hashes the shared security key to obtain the final encryption key , and use the key to encrypt the submitted data, and then pass the encrypted content to the interstellar file system to complete the data upload, and then the winner needs to encrypt the hash value and storage address of the submitted data with the encryption key After uploading to the blockchain through the data submission contract, the requester calculates the encryption key , decrypt the encrypted hash value and storage address, and obtain the data information submitted by the winner in the interstellar file system. The hash value of the data ensures the integrity of the data and has not been tampered with.
进一步,所述步骤9中,支付阶段如下:Further, in step 9, the payment stage is as follows:
请求者在确认收到赢家提交的感知数据后,根据先前激励机制计算得到的报酬结果,给予该赢家一定数额的支付,完成整个群智感知过程。After confirming the receipt of the sensing data submitted by the winner, the requester will pay the winner a certain amount according to the remuneration result calculated by the previous incentive mechanism to complete the entire crowd sensing process.
以下为仿真实验结果:The following are the simulation results:
本发明所述基于区块链的群智感知隐私保护激励机制方法将与Wang等人于2021年在Security and Communication Networks上发表的“Towards a smartprivacy-preserving incentive mechanism for vehicular crowd sensing”中的SPPIM方法以及Li等人于2018年在IEEE Transactions on Parallel and Distributed Systems上发表的“CrowdBC:A blockchain-based decentralized framework for crowdsourcing”中的CrowdBC方法进行性能比较。The blockchain-based crowd sensing privacy protection incentive mechanism method described in the present invention will be compared with the SPPIM method in "Towards a smartprivacy-preserving incentive mechanism for vehicular crowd sensing" published by Wang et al. on Security and Communication Networks in 2021 And the CrowdBC method in "CrowdBC: A blockchain-based decentralized framework for crowdsourcing" published by Li et al. on IEEE Transactions on Parallel and Distributed Systems in 2018 for performance comparison.
所有的仿真实验是在一台Ubuntu虚拟机上进行的,内存为50GB,宿主机的CPU为i9-7900X 3.30GHz,内存为128GB。实验部署在Hyperledger Fabric v2.3平台上,每次测试都是对5次结果取平均值。All simulation experiments are carried out on an Ubuntu virtual machine with 50GB of memory, the CPU of the host machine is i9-7900X 3.30GHz, and the memory is 128GB. The experiment is deployed on the Hyperledger Fabric v2.3 platform, and each test takes the average of 5 results.
密码学方法中选择Ed25519作为公钥签名方案,选择SHA-512作为哈希函数,选择AES-256作为对称加密算法,为了保证对比的公平性,比较算法也采用了相同的密码学方案。对于激励机制,标准设置如下:工人数量为100,任务数量为20,工人任务集合的大小从[5,10]中随机选择,具体任务随机,系统参数设置为0.8,预算设置为100,000。报价从数据集中随机选择,并且都在范围[100,500]中。In the cryptographic method, Ed25519 is selected as the public key signature scheme, SHA-512 is selected as the hash function, and AES-256 is selected as the symmetric encryption algorithm. In order to ensure the fairness of the comparison, the comparison algorithm also adopts the same cryptographic scheme. For the incentive mechanism, the criteria are set as follows: number of workers is 100, the number of tasks is 20, the size of the worker task set is randomly selected from [5,10], the specific tasks are random, and the system parameters Set to 0.8 and budget to 100,000. Quotes are randomly selected from the dataset and are all in the range [100,500].
如图3(a)、3(b)所示,测试了隐私保护激励机制方法的链上时间消耗,可以看出每个交易的平均时间随着交易数量的增加而增长,除了激励机制合约(IM)外,其他合约的增长量都较小,考虑到激励机制算法的计算复杂度,这样的增长也是正常的,并且在实际应用中,一般不会有这样数量的并发请求,因而不会导致过长的处理时间。根据时间消耗的结果,图3按照不同度量大小划分为两张子图,可以看出注册合约、任务投递合约、激励机制合约和支付合约的时间消耗较少,而投标合约、标书揭露合约和数据提交合约的时间消耗较大,这是因为环签名方案中的验证过程比较耗时,但考虑到环签名能够带来的匿名性,这样的时间消耗是值得的,并且所有合约的时间消耗都不超过330ms,适合实际应用。As shown in Figure 3(a) and 3(b), the on-chain time consumption of the privacy protection incentive mechanism method is tested, and it can be seen that the average time of each transaction increases with the increase in the number of transactions, except for the incentive mechanism contract ( IM), the growth of other contracts is small, considering the computational complexity of the incentive mechanism algorithm, such growth is normal, and in practical applications, generally there will not be such a number of concurrent requests, so it will not cause Excessive processing time. According to the results of time consumption, Figure 3 is divided into two subgraphs according to different measurement sizes. It can be seen that the registration contract, task delivery contract, incentive mechanism contract and payment contract consume less time, while the bidding contract, bidding document disclosure contract and data submission contract This is because the verification process in the ring signature scheme is time-consuming, but considering the anonymity that the ring signature can bring, such time consumption is worthwhile, and the time consumption of all contracts does not exceed 330ms , suitable for practical applications.
如图4(a)、4(b)所示,测试了隐私保护激励机制方法的步骤执行时间,步骤执行包括链下的客户端操作以及链上的智能合约操作。可以看出注册、任务投递和支付步骤只需要很短时间便能完成,而投标、工人招募和数据提交步骤耗时较长。实际上,生成环签名花费的时间与验证环签名花费的时间差不多大,导致投标和数据提交步骤的时间花费较大。工人招募步骤包括标书揭露和激励机制过程,因此时间消耗也较大。随着请求数量的增长,平均时间成本略微增加,且工人招募步骤的增长率最大。As shown in Figure 4(a) and 4(b), the step execution time of the privacy protection incentive mechanism method is tested, and the step execution includes off-chain client operations and on-chain smart contract operations. It can be seen that the registration, task delivery and payment steps take only a short time to complete, while the bidding, worker recruitment and data submission steps take a long time. In fact, generating a ring signature takes about as much time as verifying it, resulting in a larger time spend for the bidding and data submission steps. The worker recruitment step includes the bidding document disclosure and incentive mechanism process, so the time consumption is relatively large. As the number of requests grows, the average time cost increases slightly, and the worker recruitment step has the largest growth rate.
, ,
如表1所示,测试了隐私保护激励机制方法与同类算法的步骤执行时间对比,单位为毫秒,N/A表示该方案不涉及该步骤的设计。可以看出,本发明提出的方案在注册步骤和任务投递步骤中比其他两个方案更具有时间优势。工人招募步骤和数据提交步骤中,本发明的方案由于涉及到环签名的使用,时间消耗更长,但本方案也因此取得了匿名性。支付步骤的表现几个方案相差不多。As shown in Table 1, the step execution time comparison between the privacy protection incentive mechanism method and similar algorithms was tested, and the unit is milliseconds. N/A means that the scheme does not involve the design of this step. It can be seen that the scheme proposed by the present invention has a time advantage in the registration step and the task delivery step compared with the other two schemes. In the steps of worker recruitment and data submission, the scheme of the present invention consumes more time because it involves the use of ring signatures, but this scheme also achieves anonymity. The performance of the payment step is similar for several schemes.
定义激励机制评价指标过付率,该比率的计算由总支付除以总成本得到,即。Define the overpayment rate of the incentive mechanism evaluation index, which is calculated by dividing the total payment by the total cost, that is .
如图5(a)、5(b)所示,测试了隐私保护激励机制方法的性能随工人数量的变化,可以看出本发明提出的方案比SPPIM取得的覆盖函数要大很多,这是因为本方案中采用的激励机制会根据工人的贡献选择赢家,在标准设置下,本方案取得的覆盖函数比SPPIM要高35.8%,本方案招募的用户数量也比SPPIM多,这主要与支付策略相关。本方案花费的总支付也比SPPIM小很多,同时取得了更低的过付率,表明了支付方案的高效性。随着工人数量的增加,方案所能取得的覆盖函数与工人数量都有所增加,这是因为有更多工人可供选择时,机制能够选择更具有价值的工人。因此,总支付和过付率也随着工人数量的增长而略微减少。As shown in Figures 5(a) and 5(b), the performance of the privacy protection incentive mechanism method has been tested as it changes with the number of workers. It can be seen that the scheme proposed by the present invention is much larger than the coverage function obtained by SPPIM. This is because The incentive mechanism adopted in this scheme will select winners based on the contributions of workers. Under the standard setting, the coverage function obtained by this scheme is 35.8% higher than that of SPPIM, and the number of users recruited by this scheme is also more than that of SPPIM, which is mainly related to the payment strategy. . The total payment cost of this scheme is much smaller than that of SPPIM, and at the same time, it achieves a lower overpayment rate, which shows the efficiency of the payment scheme. As the number of workers increases, both the coverage function that the scheme can achieve and the number of workers increase because the mechanism is able to select more valuable workers when there are more workers to choose from. Thus, total pay and overpay ratios also decrease slightly as the number of workers grows.
如图6(a)、6(b)所示,测试了隐私保护激励机制方法的性能随预算的变化,随着预算的增加,所有机制招募的工人数量都随之增长,因而取得的覆盖函数也在增长。预算增加时,需要招募更多用户,因而 总的报酬和过付率也同时在增长。As shown in Figure 6(a) and 6(b), the performance of the privacy protection incentive mechanism method is tested as the budget changes. As the budget increases, the number of workers recruited by all mechanisms increases accordingly, so the obtained coverage function is also growing. As the budget increases, more users need to be recruited, so the total reward and overpayment ratio also increase.
需要说明的是,流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本相同的方式或按相反的顺序,来执行功能,这应被专利的实施例所属技术领域的技术人员所理解。It should be noted that any process or method descriptions described in flowcharts or otherwise described herein can be understood as representing codes including one or more steps of executable instructions for implementing specific logical functions or processes. modules, segments or parts, and the scope of the preferred embodiments of the present invention includes further implementations, which may be performed out of the order shown or discussed, including in substantially the same manner or in the reverse order depending on the functions involved. Executing functions should be understood by those skilled in the art to which the patented embodiments belong.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包括于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, reference to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" means that specific features described in connection with the embodiment or example, A structure, material or characteristic is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations to the invention. Variations, modifications, substitutions, and modifications to the above-described embodiments are possible within the scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310114476.7A CN115828311B (en) | 2023-02-15 | 2023-02-15 | A blockchain-based incentive mechanism method for group intelligence privacy protection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310114476.7A CN115828311B (en) | 2023-02-15 | 2023-02-15 | A blockchain-based incentive mechanism method for group intelligence privacy protection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115828311A true CN115828311A (en) | 2023-03-21 |
CN115828311B CN115828311B (en) | 2023-06-06 |
Family
ID=85521438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310114476.7A Active CN115828311B (en) | 2023-02-15 | 2023-02-15 | A blockchain-based incentive mechanism method for group intelligence privacy protection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115828311B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493182A (en) * | 2019-07-05 | 2019-11-22 | 北京邮电大学 | Intelligent perception worker selection mechanism and system based on block chain location privacy protection |
CN111262708A (en) * | 2020-01-16 | 2020-06-09 | 安徽大学 | A Crowd Sensing Method Based on Blockchain |
CN111626563A (en) * | 2020-04-27 | 2020-09-04 | 南京邮电大学 | Dual-target robust mobile crowd sensing system and excitation method thereof |
CN113079486A (en) * | 2021-04-08 | 2021-07-06 | 青岛科技大学 | Vehicle networking crowd sensing and incentive method with privacy protection characteristic based on block chain |
CN113452681A (en) * | 2021-06-09 | 2021-09-28 | 青岛科技大学 | Internet of vehicles crowd sensing reputation management system and method based on block chain |
CN114386043A (en) * | 2021-12-09 | 2022-04-22 | 北京理工大学 | Method for evaluating depocenter privacy keeping credit facing crowd sensing |
CN114760067A (en) * | 2022-03-30 | 2022-07-15 | 西安电子科技大学 | Block chain group intelligent perception system privacy security protection method using zero knowledge certification |
CN115099535A (en) * | 2022-08-24 | 2022-09-23 | 东南大学 | Dual-target crowd-sourcing perception incentive mechanism method |
-
2023
- 2023-02-15 CN CN202310114476.7A patent/CN115828311B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493182A (en) * | 2019-07-05 | 2019-11-22 | 北京邮电大学 | Intelligent perception worker selection mechanism and system based on block chain location privacy protection |
CN111262708A (en) * | 2020-01-16 | 2020-06-09 | 安徽大学 | A Crowd Sensing Method Based on Blockchain |
CN111626563A (en) * | 2020-04-27 | 2020-09-04 | 南京邮电大学 | Dual-target robust mobile crowd sensing system and excitation method thereof |
CN113079486A (en) * | 2021-04-08 | 2021-07-06 | 青岛科技大学 | Vehicle networking crowd sensing and incentive method with privacy protection characteristic based on block chain |
CN113452681A (en) * | 2021-06-09 | 2021-09-28 | 青岛科技大学 | Internet of vehicles crowd sensing reputation management system and method based on block chain |
CN114386043A (en) * | 2021-12-09 | 2022-04-22 | 北京理工大学 | Method for evaluating depocenter privacy keeping credit facing crowd sensing |
CN114760067A (en) * | 2022-03-30 | 2022-07-15 | 西安电子科技大学 | Block chain group intelligent perception system privacy security protection method using zero knowledge certification |
CN115099535A (en) * | 2022-08-24 | 2022-09-23 | 东南大学 | Dual-target crowd-sourcing perception incentive mechanism method |
Non-Patent Citations (2)
Title |
---|
安宝怡: ""开放系统环境下的可信移动群智感知数据交易机制研究"" * |
王群等: ""区块链隐私保护机制研究"" * |
Also Published As
Publication number | Publication date |
---|---|
CN115828311B (en) | 2023-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7395701B2 (en) | Computer-implemented systems and methods for transaction mixing on a blockchain | |
JP7569602B2 (en) | Executing smart contracts using distributed collaboration | |
Li et al. | CrowdBC: A blockchain-based decentralized framework for crowdsourcing | |
Biswas et al. | A scalable blockchain framework for secure transactions in IoT | |
CN110380858B (en) | Method and system for processing game consensus protocol of block chain | |
CN110337665B (en) | System and method for information protection | |
CN109726887A (en) | Blockchain-based mobile crowdsourcing data collection and processing system and method | |
CN111177778B (en) | A mobile crowd-sensing method, system and server, storage medium | |
CN110912705B (en) | A distributed electronic voting method and system based on blockchain | |
CN106161415B (en) | An information processing method and a mobile crowd sensing application platform | |
US20230040773A1 (en) | Methods And Systems For Transferring Unspent Transaction Output (Utxo) Tokens In A Blockchain Network | |
CN114730421A (en) | Trading using private and public blockchains | |
US20200160328A1 (en) | Lightweight blockchain supported transaction platform with digital bill optimizations and denominations | |
Xue et al. | STBC: A novel blockchain-based spectrum trading solution | |
CN112287040A (en) | Rights and interests combination method and device based on block chain | |
JP7604467B2 (en) | Allocating digital assets using blockchain transactions | |
Xi et al. | CrowdLBM: A lightweight blockchain-based model for mobile crowdsensing in the Internet of Things | |
CN116167068A (en) | A method and system for trusted distribution of network edge resources based on blockchain | |
CN114424223A (en) | Divisible token | |
Ng et al. | LDSP: shopping with cryptocurrency privately and quickly under leadership | |
CN115828311B (en) | A blockchain-based incentive mechanism method for group intelligence privacy protection | |
Chen et al. | PACDAM: Privacy-preserving and adaptive cross-chain digital asset marketplace | |
Li et al. | A fair, verifiable and privacy-protecting data outsourcing transaction scheme based on smart contracts | |
CN113674072A (en) | Enterprise financial management risk identification method based on financial big data | |
Sadath et al. | Scalability in Blockchain-Hyperledger Fabric and Hierarchical Model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |