# A Blockchain Based Privacy-Preserving Incentive Mechanism for Internet of Vehicles in Satellite-Terrestrial Crowdsensing

Authors: Zhuojia Ma; Yingqing Wang; Jiawei Li; Yang Liu
Journal: Wireless Communications and Mobile Computing
 (2022)

---

## Abstract

Crowdsensing has been a popular technology recently and has broad application prospects. The Internet of Vehicles (IoV) refers to the effective utilization of static and dynamic information on the network platform through electronic equipment loaded on vehicles and wireless technology, which means there are many devices generating a huge amount of worthy data. However, preserving the privacy of workers and incentivizing them should be concerned. To this end, we apply the satellite-terrestrial system to solve the communication limitation among vehicles. We propose to use blockchain to act as the channel that requesters and vehicles communicate in. Smart contracts are the main designable parts to do the interactions among the participants. Blockchain is tightly related to payment, so that we implement a total payment minimized auction algorithm on it. We carry out extensive simulations and run an experiment on blockchain to find the auction can be implemented as a smart contract and achieve privacy protection.


---

## Body

## 1. Introduction

Recently, with the increasing number of vehicles, road congestion and traffic accidents occur frequently. Vehicle operation state detection based on the Internet of Vehicles (IoV) has become the key to driving safety guarantee systems [1]. However, the traditional data acquisition technology of IoV has some defects, such as high construction cost, small coverage, insufficient data volume, and so on. Nowadays, because of the rapid development of mobile intelligent terminals, cameras, GPS, and other sensors are embedded in vehicles and other commonly used terminals. Therefore, the crowdsensing system, which depends on the mobile intelligent devices and vehicles to complete the perception task through conscious or unconscious cooperation, comes into being 2.Implementing such a crowdsensing system still faces several challenges. First, privacy preserving problem is a severe obstacle. For example, one usual data type in crowdsensing is location, which is regarded as sensitive privacy by vehicles [3]. The location of vehicles is easy to expose the identity of them which is unacceptable. The privacy problem may even prevent vehicles from attending the crowdsensing tasks. Some mobile crowdsensing systems do not concern privacy at all, while most systems use algorithms to protect vehicles’ privacy like differential privacy. But these mechanisms are too complex in one component, which is easy to fail. Second, since mobile crowdsensing systems use the devices owned by vehicles and crowdsensing platform needs participants to perform specific tasks, the system should have a mechanism to incentivize vehicles to participate. Designing a reasonable incentive mechanism can ensure the recruitment of enough participants and improve the enthusiasm of users to complete the sensing task. On the contrary, without the guarantee of incentive mechanism, users may be unwilling to participate because of resource consumption, privacy disclosure, and other losses [4]. Third, the existing infrastructure is usually used as the main endpoint for the data collection of the IoV, such as judging the current road condition information through the camera collection equipment on the street [5]. The connection between smart phone and pavement is used to realize the mutual collection of data [6]. However, due to the limitations of the sensing ability of base stations, especially in remote areas lacking infrastructure, cars can not effectively transmit data to infrastructure, which brings difficulties to the implementation of the crowdsensing system.In order to overcome the above challenges, we propose an incentive mechanism for crowdsensing with privacy protection based on blockchain since we find that blockchain has lots of characters that are preferable to combine with an incentive mechanism of crowdsensing. More specifically, we use satellite-terrestrial technology to solve the limitation of the existing infrastructure, which can make the satellite communicate directly with vehicles. We use blockchain as the communication channel for crowdsensing task requesters and vehicles to interact with each other. Secondly, we use Ethereum to deploy smart contracts because it is powerful and available for any application. Thirdly, we use an auction algorithm to decide the suitable payment to workers based on their bids and the requirements of tasks. Finally, we combine blockchain with total payment minimized by auction incentive mechanism in crowdsensing and carry out simulations to analyze its performance, and we also carry our smart contract deployment experiment on Ethereum.The main contributions of this paper are as follows:(i)
We use satellite-terrestrial technology to make it possible for direct communication between vehicle and satellite. Satellite-terrestrial technology solves the problem of infrastructure limitations and realizes data transmission in any area without obstacles.(ii)
We propose to use blockchain as the communication channel for crowdsensing task requesters and vehicles to interact with each other. All sensitive information is through blockchain in an anonymous way with an additional mechanism so that vehicles’ privacy is preserved. We use Ethereum to deploy smart contracts because it is powerful and available for any application.(iii)
We design an auction algorithm that is implemented as a smart contract on Ethereum. This auction algorithm decides the suitable payment to workers based on their bids and the requirements of tasks. Meanwhile, it minimizes the total payment of the platform. It satisfies several properties to keep the system working well.(iv)
We carry our extensive simulations to analyze our proposed mechanism’s performance, and we also do smart contract deployment experiments on Ethereum.The rest of this paper is organized as follows. Section2 introduces the related work. Section 3 describes the system model. Section 4 presents problem formulation. Section 5 provides mechanism design. Section 6 performs the theoretical analysis. Section 7 carries out performance evaluation. Section 8 concludes the paper.


## 2. Related Work

### 2.1. Crowdsensing

The sensing services through the Internet of Things are called human-centric sensing by the researchers [7]. Human-centric sensing can be divided into two types, which are personal sensing and community sensing based on the specific object aiming at and the scale of sensing. Personal sensing serves the individual person, including step counting, heart beat monitoring for body health and appearance, transportation for a social character. Community sensing is serving a big set of people, city, or the society which needs to collect much data from many points for a large-scale mission like traffic status and air quality.Recently, community sensing has been called crowdsensing by more scholars. Crowdsensing is usually divided into participatory sensing and opportunistic sensing as two types. The former needs users’ initiative participation and the latter is running without users’ awareness [8].With the development of chip, sensor, integrated circuit, and wireless communication technology, there are more and more devices such as smart phones, smart watches, tablets, and car-equipment devices that integrated with many types of sensors can generate a huge amount of sensing data. They also have enough power, storage, and computing ability to link other small sensors for service links entering the superior network.The crowdsensing that mainly uses mobile devices to sense data is usually called mobile crowdsensing [9]. Mobile crowdsensing has many advantages. The cost of a sensor network is lower because it does not need to own devices but only rents devices of users, and there are already many users who can also move and interact with others. The devices are often in good condition because their owner will maintain them. And the network can be easily scaled by adjusting the number of users to rent [10].There have been many applications of mobile crowdsensing already. For environment monitoring, NoiseTube made a noise map by collecting the measurements of noise through smartphones’ microphone. For smart transportation, CarTel uses the location from smartphones’ sensors to track movement trajectory to advise navigation route. GigaSight can scan a huge number of videos and photos from mobile users to find lost children or crime suspects. Sensorly measure the cellular network signal quality by mobile phones to build the signal map, which can help the construction of the city’s fundamental facilities.


#### 2.1.1. Privacy Preserving in Crowdsensing

Privacy preserving is a vitally important problem in mobile crowdsensing, which is not considered by old research. Mobile users are sensitive to their privacy, especially location [11]. Location data can expose many details based on the types of tasks. For example, if time and route of movements are required to submit, this data can expose sensitive locations of mobile users. Their identities can even be exposed by location-based attacks, even if they do not use real names. So, mobile users are very likely to hide their information like location to preserve privacy, which may even prevent them from participating in the tasks.Recent mobile crowdsensing research consider the privacy preserving problem. Lu et al. [12] design a blockchain empowered secure data sharing architecture for distributed multiple parties, which can maintain the privacy of data instead of revealing the actual data. Gai et al. [13] propose blockchain-based Internet of Edge model and establish a privacy-preserving mechanism while considering other constraints. Wang et al. [2] create a personalized privacy-preserving task allocation framework for mobile crowdsensing. These proposals use the architecture which is made of mobile applications to sensing data and servers to collect and analyze data. Some researchers proposed to use ISP to collect and process sensed data. For example, Andreoletti et al. [14] propose a Reinforcement-Learning-based algorithm to process data that the customer and ISPs cipher. However, the drawback of the algorithm is the high overhead of data that ISPs and the customer need to exchange with each other to execute it.


#### 2.1.2. Incentive Mechanism of Crowdsensing

Since the importance of incentive users to participate in mobile crowdsensing tasks is realized by researchers, many kinds of incentive mechanisms have been developed recently. Game theory-based incentive mechanism is a very popular type among these mechanisms [15]. There exist many types within game theory-based type, including the auction model, which we are going to use and other models. These models satisfy game theory properties so that they can solve the incentive problem and also other potential problems like workers’ selfish. Auction-based incentive mechanisms also have two design directions which are maximization of platform’s profit or social welfare and minimization of platform’s total payment or social total cost. Our proposal aims at minimization of platform’s total payment.An auction-based incentive mechanism is a better method to incentive mobile users to participate [16]. Cost optimal auction is a kind of auction mechanism which can minimize the total payment of the platform. The auction can also be divided into many types based on the number of items and units. Single-item-single-unit is the simplest condition of the auction, while multiple-items-multiple-units is a difficult problem to solve. Research community has designed auction mechanisms that fit all these four types. The more items and more units, the more complex the mechanism. Many related mechanisms add a lot of complex limitations and additional settings. It is obvious that the more parameters of a system, the more possible conditions may appear, the higher possibility of error and failure.Our system is available to multiple items and multiple units. But to simplify the algorithm and avoid a potential failure, we determined to use single-item-multiple-units auction because we can distribute the pressure on topper level of our system so that we can run an auction for every single task to according set of mobile users [17].Liu et al. [18] propose a robust optimization based method to implement a multi-item auction mechanism. Lin et al. [19] explore a method called Multiround Incentive Mechanism, but they do not consider some properties of tasks like the deadline of the tasks. Most of these proposals do not consider privacy preserving or only add a weak local privacy protection algorithm. With the further development of crowdsensing, Yang et al. [20] create a cost-effective crowdsensing system named CEDAR and design a mechanism based on the online auction to encourage involvement. Some researchers [21] design a scalable grouping based privacy-preserving participant selection scheme according to the classical VCG auction Blockchain.Blockchain technology firstly appeared in Bitcoin: A Peer-to-peer Electronic Cash System by Satoshi Nakamoto as the fundamental bottom technology of Bitcoin. Blockchain described in this article is a data structure that links data blocks like linked list following time sequence. It also has distributed decentralized ledger, which is untamed and unforgeable which can store simple, time-related, and verifiable data [22].The digital currency has two problems, which are the double payment problem and the Byzantine Generals problem. The double payment problem is using the same set of money more than one time which is easily prevented with physical currency but difficult with digital currency. Blockchain solves this problem with consensus mechanism and distributed ledger so that it is impossible unless the attacker controls more than half of the whole nodes [23]. Byzantine Generals problem is a real-world problem, and in blockchain, the abstract meaningful description is how nodes establish trust with each other without truthful central nodes like traditional centralized networks. Blockchain uses kinds of consensus mechanisms with encryption to build a truthful environment without the third party.One core problem in the distributed system is how to gain consensus efficiently and properly. Similar to real society, centralization is likely to make a decision quickly, but dictatorship and autocracy are easy to appear, distribution has low efficiency to deciding, but decisions are more satisfied by the system. Any data sharing system based on the network can at most satisfy two of the following three items: consistency, availability, partition tolerance, which is known as CAP theorem. Blockchain, which is distributed system that satisfies partition tolerance, uses consensus mechanism to achieve consistency. There are many kinds of consensus mechanisms such as Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof of Stake (DPoS), Proof of Activity (PoA), and several others and hybrid of them.The smart contract is the core component of blockchain [24]. The smart contract is a computer program that is driven by event, stateful, running on reproducible shared blockchain data ledger and it implements data processing, receiving and storing and sending payment, controlling and managing all kinds of assets on the chain. Specifically, a smart contract is a set of programmatic rules and logic that responses to a specific scene. It is distributed, information shared program codes deployed on the blockchain. All parties that signed the contract agree on the content, then the contract is deployed on blockchain as a smart contract, which will automatically represent these parties without relying on any central organization. Smart contract is distributed autonomically, which will run automatically after start-up without any effect from anyone.The main advantage of blockchain is distribution and decentralization [25]. Due to consensus mechanism, encryption algorithm, tree structure, time stamp, and award mechanism, decentralized confidence is implemented so that nodes can interact with each other without a trusted third party. In Ethereum, a more completed, powerful smart contract system is implemented so that more complex and functional applications can be implemented. There are some distributed applications which are called DApp that have been published in lots of areas. Some more basic services based on blockchain technology like Inter-Planetary File System (IPFS) are approaching actual use.Blockchain has been used in Intelligent Transportation systems to guarantee both safe and efficient transmissions. Some researchers construct a blockchain-enabled crowdsensing framework for distributed traffic management [26] to consider the data safety, utility, and system latency comprehensively. Some other researchers apply blockchain to assess the data quality of tasks reliably. An et al. [27] propose a lightweight blockchain-based model and expectation-maximization (EM) algorithm with multiverifiers to evaluate the performance of task participants.


### 2.2. Satellite-Terrestrial

Ground mobile communication network provides users with reliable and convenient services. However, in special and remote areas such as mountains, deserts, and seas that cannot be covered by the ground network, it is difficult to deploy base stations, so satellites have become a necessary tool for communication in these areas [28]. Compared with the ground mobile communication network, the satellite communication system mainly has the characteristics of large coverage area, strong broadcasting capacity, small terrain impact, convenient deployment, and so on. At present, there are hundreds of communication satellites in orbit, providing communication and broadcasting services to millions of users. The integration of ground mobile network and satellite network has also become a research hotspot.In June 2017, SaT5G (satellite and terrestrial network for 5G) alliance was established. The alliance aims to find out the best scheme for seamless integration of satellite communication and 5G and try it out in Europe through a series of research, development, and experiments within 30 months. In the process of integration, the relationship between ground and satellite networks is not equal and cooperative. In this paper, the integrated network architecture should be based on the ground mobile communication network architecture and give due consideration to the special requirements of satellite transmission.The satellite-terrestrial network has become a promising paradigm of space telecommunication network in the future. Ruan et al. [29] investigate the energy effective power allocation of the satellite-terrestrial network to maximize the effective energy efficiency of secondary satellite communication while meeting the interference constraints of primary ground communication. Bai et al. [30] propose an atmosphere-informed predictive satellite channel model for satellite-terrestrial wireless communication systems at Q-band to model channel attenuation at any specific time. Similar to our thinking, Chen et al. [31] designed the algorithm called MCPR to match IIoT nodes with service sides, which achieve large-scale seamless connections by using a satellite-terrestrial network. Sharma et al. [32] consider an overlay satellite-terrestrial network (OSTN) where an opportunistically selected terrestrial internet-of-things (IoT) network assists the primary satellite communications.To sum up, this article is more comprehensive than the article which have been submitted and further supplements the details [33]. In this article, not only the preliminary work is described at length, but the research results of crowdsensing and blockchain in recent years are listed. What’s more, the article adds the interactions of the whole process.


## 2.1. Crowdsensing

The sensing services through the Internet of Things are called human-centric sensing by the researchers [7]. Human-centric sensing can be divided into two types, which are personal sensing and community sensing based on the specific object aiming at and the scale of sensing. Personal sensing serves the individual person, including step counting, heart beat monitoring for body health and appearance, transportation for a social character. Community sensing is serving a big set of people, city, or the society which needs to collect much data from many points for a large-scale mission like traffic status and air quality.Recently, community sensing has been called crowdsensing by more scholars. Crowdsensing is usually divided into participatory sensing and opportunistic sensing as two types. The former needs users’ initiative participation and the latter is running without users’ awareness [8].With the development of chip, sensor, integrated circuit, and wireless communication technology, there are more and more devices such as smart phones, smart watches, tablets, and car-equipment devices that integrated with many types of sensors can generate a huge amount of sensing data. They also have enough power, storage, and computing ability to link other small sensors for service links entering the superior network.The crowdsensing that mainly uses mobile devices to sense data is usually called mobile crowdsensing [9]. Mobile crowdsensing has many advantages. The cost of a sensor network is lower because it does not need to own devices but only rents devices of users, and there are already many users who can also move and interact with others. The devices are often in good condition because their owner will maintain them. And the network can be easily scaled by adjusting the number of users to rent [10].There have been many applications of mobile crowdsensing already. For environment monitoring, NoiseTube made a noise map by collecting the measurements of noise through smartphones’ microphone. For smart transportation, CarTel uses the location from smartphones’ sensors to track movement trajectory to advise navigation route. GigaSight can scan a huge number of videos and photos from mobile users to find lost children or crime suspects. Sensorly measure the cellular network signal quality by mobile phones to build the signal map, which can help the construction of the city’s fundamental facilities.


### 2.1.1. Privacy Preserving in Crowdsensing

Privacy preserving is a vitally important problem in mobile crowdsensing, which is not considered by old research. Mobile users are sensitive to their privacy, especially location [11]. Location data can expose many details based on the types of tasks. For example, if time and route of movements are required to submit, this data can expose sensitive locations of mobile users. Their identities can even be exposed by location-based attacks, even if they do not use real names. So, mobile users are very likely to hide their information like location to preserve privacy, which may even prevent them from participating in the tasks.Recent mobile crowdsensing research consider the privacy preserving problem. Lu et al. [12] design a blockchain empowered secure data sharing architecture for distributed multiple parties, which can maintain the privacy of data instead of revealing the actual data. Gai et al. [13] propose blockchain-based Internet of Edge model and establish a privacy-preserving mechanism while considering other constraints. Wang et al. [2] create a personalized privacy-preserving task allocation framework for mobile crowdsensing. These proposals use the architecture which is made of mobile applications to sensing data and servers to collect and analyze data. Some researchers proposed to use ISP to collect and process sensed data. For example, Andreoletti et al. [14] propose a Reinforcement-Learning-based algorithm to process data that the customer and ISPs cipher. However, the drawback of the algorithm is the high overhead of data that ISPs and the customer need to exchange with each other to execute it.


### 2.1.2. Incentive Mechanism of Crowdsensing

Since the importance of incentive users to participate in mobile crowdsensing tasks is realized by researchers, many kinds of incentive mechanisms have been developed recently. Game theory-based incentive mechanism is a very popular type among these mechanisms [15]. There exist many types within game theory-based type, including the auction model, which we are going to use and other models. These models satisfy game theory properties so that they can solve the incentive problem and also other potential problems like workers’ selfish. Auction-based incentive mechanisms also have two design directions which are maximization of platform’s profit or social welfare and minimization of platform’s total payment or social total cost. Our proposal aims at minimization of platform’s total payment.An auction-based incentive mechanism is a better method to incentive mobile users to participate [16]. Cost optimal auction is a kind of auction mechanism which can minimize the total payment of the platform. The auction can also be divided into many types based on the number of items and units. Single-item-single-unit is the simplest condition of the auction, while multiple-items-multiple-units is a difficult problem to solve. Research community has designed auction mechanisms that fit all these four types. The more items and more units, the more complex the mechanism. Many related mechanisms add a lot of complex limitations and additional settings. It is obvious that the more parameters of a system, the more possible conditions may appear, the higher possibility of error and failure.Our system is available to multiple items and multiple units. But to simplify the algorithm and avoid a potential failure, we determined to use single-item-multiple-units auction because we can distribute the pressure on topper level of our system so that we can run an auction for every single task to according set of mobile users [17].Liu et al. [18] propose a robust optimization based method to implement a multi-item auction mechanism. Lin et al. [19] explore a method called Multiround Incentive Mechanism, but they do not consider some properties of tasks like the deadline of the tasks. Most of these proposals do not consider privacy preserving or only add a weak local privacy protection algorithm. With the further development of crowdsensing, Yang et al. [20] create a cost-effective crowdsensing system named CEDAR and design a mechanism based on the online auction to encourage involvement. Some researchers [21] design a scalable grouping based privacy-preserving participant selection scheme according to the classical VCG auction Blockchain.Blockchain technology firstly appeared in Bitcoin: A Peer-to-peer Electronic Cash System by Satoshi Nakamoto as the fundamental bottom technology of Bitcoin. Blockchain described in this article is a data structure that links data blocks like linked list following time sequence. It also has distributed decentralized ledger, which is untamed and unforgeable which can store simple, time-related, and verifiable data [22].The digital currency has two problems, which are the double payment problem and the Byzantine Generals problem. The double payment problem is using the same set of money more than one time which is easily prevented with physical currency but difficult with digital currency. Blockchain solves this problem with consensus mechanism and distributed ledger so that it is impossible unless the attacker controls more than half of the whole nodes [23]. Byzantine Generals problem is a real-world problem, and in blockchain, the abstract meaningful description is how nodes establish trust with each other without truthful central nodes like traditional centralized networks. Blockchain uses kinds of consensus mechanisms with encryption to build a truthful environment without the third party.One core problem in the distributed system is how to gain consensus efficiently and properly. Similar to real society, centralization is likely to make a decision quickly, but dictatorship and autocracy are easy to appear, distribution has low efficiency to deciding, but decisions are more satisfied by the system. Any data sharing system based on the network can at most satisfy two of the following three items: consistency, availability, partition tolerance, which is known as CAP theorem. Blockchain, which is distributed system that satisfies partition tolerance, uses consensus mechanism to achieve consistency. There are many kinds of consensus mechanisms such as Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof of Stake (DPoS), Proof of Activity (PoA), and several others and hybrid of them.The smart contract is the core component of blockchain [24]. The smart contract is a computer program that is driven by event, stateful, running on reproducible shared blockchain data ledger and it implements data processing, receiving and storing and sending payment, controlling and managing all kinds of assets on the chain. Specifically, a smart contract is a set of programmatic rules and logic that responses to a specific scene. It is distributed, information shared program codes deployed on the blockchain. All parties that signed the contract agree on the content, then the contract is deployed on blockchain as a smart contract, which will automatically represent these parties without relying on any central organization. Smart contract is distributed autonomically, which will run automatically after start-up without any effect from anyone.The main advantage of blockchain is distribution and decentralization [25]. Due to consensus mechanism, encryption algorithm, tree structure, time stamp, and award mechanism, decentralized confidence is implemented so that nodes can interact with each other without a trusted third party. In Ethereum, a more completed, powerful smart contract system is implemented so that more complex and functional applications can be implemented. There are some distributed applications which are called DApp that have been published in lots of areas. Some more basic services based on blockchain technology like Inter-Planetary File System (IPFS) are approaching actual use.Blockchain has been used in Intelligent Transportation systems to guarantee both safe and efficient transmissions. Some researchers construct a blockchain-enabled crowdsensing framework for distributed traffic management [26] to consider the data safety, utility, and system latency comprehensively. Some other researchers apply blockchain to assess the data quality of tasks reliably. An et al. [27] propose a lightweight blockchain-based model and expectation-maximization (EM) algorithm with multiverifiers to evaluate the performance of task participants.


## 2.1.1. Privacy Preserving in Crowdsensing

Privacy preserving is a vitally important problem in mobile crowdsensing, which is not considered by old research. Mobile users are sensitive to their privacy, especially location [11]. Location data can expose many details based on the types of tasks. For example, if time and route of movements are required to submit, this data can expose sensitive locations of mobile users. Their identities can even be exposed by location-based attacks, even if they do not use real names. So, mobile users are very likely to hide their information like location to preserve privacy, which may even prevent them from participating in the tasks.Recent mobile crowdsensing research consider the privacy preserving problem. Lu et al. [12] design a blockchain empowered secure data sharing architecture for distributed multiple parties, which can maintain the privacy of data instead of revealing the actual data. Gai et al. [13] propose blockchain-based Internet of Edge model and establish a privacy-preserving mechanism while considering other constraints. Wang et al. [2] create a personalized privacy-preserving task allocation framework for mobile crowdsensing. These proposals use the architecture which is made of mobile applications to sensing data and servers to collect and analyze data. Some researchers proposed to use ISP to collect and process sensed data. For example, Andreoletti et al. [14] propose a Reinforcement-Learning-based algorithm to process data that the customer and ISPs cipher. However, the drawback of the algorithm is the high overhead of data that ISPs and the customer need to exchange with each other to execute it.


## 2.1.2. Incentive Mechanism of Crowdsensing

Since the importance of incentive users to participate in mobile crowdsensing tasks is realized by researchers, many kinds of incentive mechanisms have been developed recently. Game theory-based incentive mechanism is a very popular type among these mechanisms [15]. There exist many types within game theory-based type, including the auction model, which we are going to use and other models. These models satisfy game theory properties so that they can solve the incentive problem and also other potential problems like workers’ selfish. Auction-based incentive mechanisms also have two design directions which are maximization of platform’s profit or social welfare and minimization of platform’s total payment or social total cost. Our proposal aims at minimization of platform’s total payment.An auction-based incentive mechanism is a better method to incentive mobile users to participate [16]. Cost optimal auction is a kind of auction mechanism which can minimize the total payment of the platform. The auction can also be divided into many types based on the number of items and units. Single-item-single-unit is the simplest condition of the auction, while multiple-items-multiple-units is a difficult problem to solve. Research community has designed auction mechanisms that fit all these four types. The more items and more units, the more complex the mechanism. Many related mechanisms add a lot of complex limitations and additional settings. It is obvious that the more parameters of a system, the more possible conditions may appear, the higher possibility of error and failure.Our system is available to multiple items and multiple units. But to simplify the algorithm and avoid a potential failure, we determined to use single-item-multiple-units auction because we can distribute the pressure on topper level of our system so that we can run an auction for every single task to according set of mobile users [17].Liu et al. [18] propose a robust optimization based method to implement a multi-item auction mechanism. Lin et al. [19] explore a method called Multiround Incentive Mechanism, but they do not consider some properties of tasks like the deadline of the tasks. Most of these proposals do not consider privacy preserving or only add a weak local privacy protection algorithm. With the further development of crowdsensing, Yang et al. [20] create a cost-effective crowdsensing system named CEDAR and design a mechanism based on the online auction to encourage involvement. Some researchers [21] design a scalable grouping based privacy-preserving participant selection scheme according to the classical VCG auction Blockchain.Blockchain technology firstly appeared in Bitcoin: A Peer-to-peer Electronic Cash System by Satoshi Nakamoto as the fundamental bottom technology of Bitcoin. Blockchain described in this article is a data structure that links data blocks like linked list following time sequence. It also has distributed decentralized ledger, which is untamed and unforgeable which can store simple, time-related, and verifiable data [22].The digital currency has two problems, which are the double payment problem and the Byzantine Generals problem. The double payment problem is using the same set of money more than one time which is easily prevented with physical currency but difficult with digital currency. Blockchain solves this problem with consensus mechanism and distributed ledger so that it is impossible unless the attacker controls more than half of the whole nodes [23]. Byzantine Generals problem is a real-world problem, and in blockchain, the abstract meaningful description is how nodes establish trust with each other without truthful central nodes like traditional centralized networks. Blockchain uses kinds of consensus mechanisms with encryption to build a truthful environment without the third party.One core problem in the distributed system is how to gain consensus efficiently and properly. Similar to real society, centralization is likely to make a decision quickly, but dictatorship and autocracy are easy to appear, distribution has low efficiency to deciding, but decisions are more satisfied by the system. Any data sharing system based on the network can at most satisfy two of the following three items: consistency, availability, partition tolerance, which is known as CAP theorem. Blockchain, which is distributed system that satisfies partition tolerance, uses consensus mechanism to achieve consistency. There are many kinds of consensus mechanisms such as Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof of Stake (DPoS), Proof of Activity (PoA), and several others and hybrid of them.The smart contract is the core component of blockchain [24]. The smart contract is a computer program that is driven by event, stateful, running on reproducible shared blockchain data ledger and it implements data processing, receiving and storing and sending payment, controlling and managing all kinds of assets on the chain. Specifically, a smart contract is a set of programmatic rules and logic that responses to a specific scene. It is distributed, information shared program codes deployed on the blockchain. All parties that signed the contract agree on the content, then the contract is deployed on blockchain as a smart contract, which will automatically represent these parties without relying on any central organization. Smart contract is distributed autonomically, which will run automatically after start-up without any effect from anyone.The main advantage of blockchain is distribution and decentralization [25]. Due to consensus mechanism, encryption algorithm, tree structure, time stamp, and award mechanism, decentralized confidence is implemented so that nodes can interact with each other without a trusted third party. In Ethereum, a more completed, powerful smart contract system is implemented so that more complex and functional applications can be implemented. There are some distributed applications which are called DApp that have been published in lots of areas. Some more basic services based on blockchain technology like Inter-Planetary File System (IPFS) are approaching actual use.Blockchain has been used in Intelligent Transportation systems to guarantee both safe and efficient transmissions. Some researchers construct a blockchain-enabled crowdsensing framework for distributed traffic management [26] to consider the data safety, utility, and system latency comprehensively. Some other researchers apply blockchain to assess the data quality of tasks reliably. An et al. [27] propose a lightweight blockchain-based model and expectation-maximization (EM) algorithm with multiverifiers to evaluate the performance of task participants.


## 2.2. Satellite-Terrestrial

Ground mobile communication network provides users with reliable and convenient services. However, in special and remote areas such as mountains, deserts, and seas that cannot be covered by the ground network, it is difficult to deploy base stations, so satellites have become a necessary tool for communication in these areas [28]. Compared with the ground mobile communication network, the satellite communication system mainly has the characteristics of large coverage area, strong broadcasting capacity, small terrain impact, convenient deployment, and so on. At present, there are hundreds of communication satellites in orbit, providing communication and broadcasting services to millions of users. The integration of ground mobile network and satellite network has also become a research hotspot.In June 2017, SaT5G (satellite and terrestrial network for 5G) alliance was established. The alliance aims to find out the best scheme for seamless integration of satellite communication and 5G and try it out in Europe through a series of research, development, and experiments within 30 months. In the process of integration, the relationship between ground and satellite networks is not equal and cooperative. In this paper, the integrated network architecture should be based on the ground mobile communication network architecture and give due consideration to the special requirements of satellite transmission.The satellite-terrestrial network has become a promising paradigm of space telecommunication network in the future. Ruan et al. [29] investigate the energy effective power allocation of the satellite-terrestrial network to maximize the effective energy efficiency of secondary satellite communication while meeting the interference constraints of primary ground communication. Bai et al. [30] propose an atmosphere-informed predictive satellite channel model for satellite-terrestrial wireless communication systems at Q-band to model channel attenuation at any specific time. Similar to our thinking, Chen et al. [31] designed the algorithm called MCPR to match IIoT nodes with service sides, which achieve large-scale seamless connections by using a satellite-terrestrial network. Sharma et al. [32] consider an overlay satellite-terrestrial network (OSTN) where an opportunistically selected terrestrial internet-of-things (IoT) network assists the primary satellite communications.To sum up, this article is more comprehensive than the article which have been submitted and further supplements the details [33]. In this article, not only the preliminary work is described at length, but the research results of crowdsensing and blockchain in recent years are listed. What’s more, the article adds the interactions of the whole process.


## 3. System Model

### 3.1. Hardware Architecture

The architecture consists of three roles, crowdsensing service providers (CSP), Internet service providers (ISP), and vehicles (Vehs). CSP is the task requester that is the beginning of the whole procedure of the system. Anyone who wants to publish crowdsensing tasks can be CSP. ISP is the network infrastructure provider that allows the data transformation. Most physical devices which support the system belong to ISP. And in a mobile crowdsensing system, ISP is usually a cellular network operator. Veh is the worker who applies the tasks to complete and delivers the sensed data. Vehs own mobile devices like smart phones to perform tasks which can also easily submit results through ISP’s network. At the same time, through the satellite-terrestrial system, Vehs can directly communicate with the satellite [34]. Satellite-terrestrial technology solves the problem of infrastructure limitations and realizes data transmission in any area without obstacles. At the same time, through the satellite-terrestrial system, Vehs send data to the satellite, and receive and process the signals sent by satellite through the antenna tower. [35]. The system architecture is shown in Figure 1.Figure 1
System architecture.


### 3.2. Interaction Architecture

All interactions are among the three roles and some of them are through the satellite-terrestrial network and lower delay, while some of them are through blockchain based on smart contracts for privacy preserving [36].When the crowdsensing task publisher publishes tasks, CSP will generate a request and send it to ISP, which we call REQ, which contains the details of the tasks, such as requirements. REQ will trigger ISP to generate a transaction, including the details of the request such as timestamp, deadline (D). This transaction will trigger the first smart contract that we call Request Registration (RR) which registers this current request in the blockchain. ISP will generate another smart contract named Data Access (DA), whose address is stored in RR. RR is then responsible for ensuring that CSP has to pay for ISP’s work (PAY1) to get the address of DA (ADDR) to trigger it to access the sensed data. ISP will broadcast the set of tasks (T) to a specific set of vehicles based on some characters like their locations in the cellular network. Vehicles in different cells and subcells will receive different sets of tasks. ISP will assign temporary ID (Temp IDs), which will be different and unrelated in every auction for each vehicle so that they do not need a true identity to apply tasks to preserve privacy. Then vehicles will choose their interested tasks and bid for them. They send the bids to ISP and send a small payment which will trigger the smart contract of the auction to determine the auction results.The smart contract of auction generates the winning vehicles and the payment prices for them. The winning vehicles will be informed to let them know and start their works. The small payment to trigger the auction of losing vehicles will be withdrawn. The payment prices are stored in another triggered smart contract called vehicle payment (VP) which will be triggered after the vehicles finish their works and submit valuable sensed data. When vehicles complete their work, they will send the sensed data to an external encrypted database owned by ISP using their temporary IDs. Then, ISP will inform CSP to the status of the completion of its requests.CSP receives the information of requests’ completion. Then, it will pay for vehicles (PAY2) at the auctioned payment prices, which will trigger the smart contract DA returned by RR at the beginning. DA will return the key of encrypted sensed data (KEY) in external storage to let CSP access it. Then, vehicles will send their own sensed data’s hash to trigger smart contract VP to gain payment (PAY3). The last thing of this turn is the deadlineD which is the symbol of the end. The step-by-step process of the mechanism is described in Figure 2.Figure 2
Interactions among the roles.Figure3 describes the interactions within the system in a more physical and less abstract way.Figure 3
Interactions of the whole process.


## 3.1. Hardware Architecture

The architecture consists of three roles, crowdsensing service providers (CSP), Internet service providers (ISP), and vehicles (Vehs). CSP is the task requester that is the beginning of the whole procedure of the system. Anyone who wants to publish crowdsensing tasks can be CSP. ISP is the network infrastructure provider that allows the data transformation. Most physical devices which support the system belong to ISP. And in a mobile crowdsensing system, ISP is usually a cellular network operator. Veh is the worker who applies the tasks to complete and delivers the sensed data. Vehs own mobile devices like smart phones to perform tasks which can also easily submit results through ISP’s network. At the same time, through the satellite-terrestrial system, Vehs can directly communicate with the satellite [34]. Satellite-terrestrial technology solves the problem of infrastructure limitations and realizes data transmission in any area without obstacles. At the same time, through the satellite-terrestrial system, Vehs send data to the satellite, and receive and process the signals sent by satellite through the antenna tower. [35]. The system architecture is shown in Figure 1.Figure 1
System architecture.


## 3.2. Interaction Architecture

All interactions are among the three roles and some of them are through the satellite-terrestrial network and lower delay, while some of them are through blockchain based on smart contracts for privacy preserving [36].When the crowdsensing task publisher publishes tasks, CSP will generate a request and send it to ISP, which we call REQ, which contains the details of the tasks, such as requirements. REQ will trigger ISP to generate a transaction, including the details of the request such as timestamp, deadline (D). This transaction will trigger the first smart contract that we call Request Registration (RR) which registers this current request in the blockchain. ISP will generate another smart contract named Data Access (DA), whose address is stored in RR. RR is then responsible for ensuring that CSP has to pay for ISP’s work (PAY1) to get the address of DA (ADDR) to trigger it to access the sensed data. ISP will broadcast the set of tasks (T) to a specific set of vehicles based on some characters like their locations in the cellular network. Vehicles in different cells and subcells will receive different sets of tasks. ISP will assign temporary ID (Temp IDs), which will be different and unrelated in every auction for each vehicle so that they do not need a true identity to apply tasks to preserve privacy. Then vehicles will choose their interested tasks and bid for them. They send the bids to ISP and send a small payment which will trigger the smart contract of the auction to determine the auction results.The smart contract of auction generates the winning vehicles and the payment prices for them. The winning vehicles will be informed to let them know and start their works. The small payment to trigger the auction of losing vehicles will be withdrawn. The payment prices are stored in another triggered smart contract called vehicle payment (VP) which will be triggered after the vehicles finish their works and submit valuable sensed data. When vehicles complete their work, they will send the sensed data to an external encrypted database owned by ISP using their temporary IDs. Then, ISP will inform CSP to the status of the completion of its requests.CSP receives the information of requests’ completion. Then, it will pay for vehicles (PAY2) at the auctioned payment prices, which will trigger the smart contract DA returned by RR at the beginning. DA will return the key of encrypted sensed data (KEY) in external storage to let CSP access it. Then, vehicles will send their own sensed data’s hash to trigger smart contract VP to gain payment (PAY3). The last thing of this turn is the deadlineD which is the symbol of the end. The step-by-step process of the mechanism is described in Figure 2.Figure 2
Interactions among the roles.Figure3 describes the interactions within the system in a more physical and less abstract way.Figure 3
Interactions of the whole process.


## 4. Problem Formulation

We letxij∈0,1 to indicates user i’s task assignment, xij=0 means user i will not do task j, and xij=1 means user i will do the task j. Then, for the given bid matrix b and user information θi, the utility user i gains is as follows:(1)uib,θi=pib−∑j=1Tixijcij,where pib is the payment price for user i when he makes bid b, cij is the cost when user i performs task j. We define that user i has data collection level ηij to task j, which satisfies ηij=EDij−dj∗∈0,1, in which Dij means the data that user i collects, dj∗ means real data. We design a data collection mechanism to make PrDj−dj∗≥αj≤βj, in which αj is the data accuracy budget of task j and βj is the error tolerance of task j. The total number of vehicles that participate in a specific task should satisfy N≥2γ/α1−δ∑i=1M1/εi2 to satisfy the data accuracy limitation [37], in which α is the aggregation error, γ is worker’s data range, δ is fusion center’s confidence level of the aggregation error, εi is worker i’s privacy preserving level, and M is the total number of all vehicles.We use vectorp=p1,p2,…,pM to denote the payment prices for all vehicles on a specific task, and vector x=x1,x2,…,xM in which xi∈0,1 denotes participation or not for all vehicles on a specific task. And we aim to minimize the total payment (MTP), i.e.,(2)min∑j∈Tpxs.t.∑i∈ℳxi≥2γα1−δ∑i=1M1εi2,xi∈0,1,∀i∈ℳ.


## 5. Mechanism Design

To approach the aim of total payment minimization and satisfy the accuracy limitation as well, we design an auction algorithm.In this algorithm which we call MTP auction, the inputs are the user set which is denoted byU and the bid information vector, denoted by b. The outputs are the winner set of vehicles for the current task, which is denoted by S and the payment price vector for the winner vehicles denoted by p.The algorithm includes two subalgorithms, winner selection and payment determination. Winner selection is to select a set of vehicles that win this auction to be chosen to do the current task. Payment determination is to compute the appropriate price for every user in the winner set, which satisfies some game theory properties. The algorithm is shown in Algorithm1.Algorithm 1: MTP Auction.
(1)
//Winner Selection(2)
N=2γ/α1−δ∑i=1M1/εi2;(3)
S←∅;(4)
whileS<NandU′≠∅do(5)
i←argminj∈U′bS+bj;(6)
S←S∪i;(7)
U′←U\S;(8)
end while(9)
//Payment Determination(10)
for alli∈Udo(11)
pi←0;(12)
end for(13)
for alli∈Sdo(14)
U′←U\i;(15)
T←∅;(16)
repeat(17)
ij←argminj∈U′bT+bj;(18)
pi←maxpi,bij;(19)
T←T∪ij;(20)
U′←U′\T;(21)
untilT≥NorU′=∅(22)
ifT<Nthen(23)
pi←maxpi,bi;(24)
end if(25)
end for(26)
returnS,p;Line 2 calculates the least number of workers that is needed to satisfy the limitation of data accuracy requirement. In the formula,N is the least number, and α is the aggregation error, γ is worker’s data range, δ is fusion center’s confidence level of the aggregation error, εi is worker i’s privacy preserving level, and M is still the total number of all users. Line 3 initializes the winner to be empty at the beginning. Lines 4–8 are a loop to choose N winners who exit when the number of winners reaches N or all users have been selected out. Line 5 is one of the most important lines in the algorithm, which selects a user with the smallest bid price among the remain users. bS not only represents the summation of all bids in set S, but bj denotes the bid price of user j. It is obvious that bj=bS∪j−bS so that bS+bj represents the total bids after this time of selection. Since payment price has to be equal to or larger than user’s bid price to make the deal established, we can choose the minimum bid price as the payment price, which achieve the total payment minimization goal. Line 6 adds the chosen user to winner set and Line 7 calculates the set of remain users.Line 11 initializes payment prices of all users to zero at the begging of payment determination. Lines 9–19 are an outer loop to determine the payment prices of every winner user, whose exit condition is the payment prices of all users has been determined. Line 10 constructs a set of users from all users except the current useri. Line 11 initializes a temporary selection set to be empty. Lines 13–25 are an inner loop which actually do winner selection on the set except current user i. We explain in detai. Line 17 selects a user with the smallest bid price in the remain users. Line 18 chooses the larger one from the current payment price and the bid price of the user in Line 17 selected. Line 19 adds this user into the temporary set and Line 20 calculates the new remaining users’ set. The exit condition described by Line 21 of the inner loop is also the number of selected users reaches N or all users have been selected out. Line 23 compares the price outputted by the inner loop above to the bid price of the current user i and chooses the larger one as the final payment price of user i, because i is possible to be the N th smaller one in the winner set by coincidence.Line 26 returns the outputs including the winner setS that contains all users won in the auction and the payment prices vector p of each one in the winner set.


## 6. Theoretical Analysis

Theorem 1.
The MTP problem is NP-hard.Proof.
The MTP problem’s target ismin∑j∈Tpx, in which p and x are both vectors containing various numbers, but in fact, for any real condition, all values in p are equal to each other because there will certainly exist enough users who bid the same price based on our constraints. Thus in this proof, we can regard p as a constant, then the computational complexity of the MTP problem is the same as the modified MTP problem whose aim is min∑j∈Tx with the original constraints, which means minimizing the total number of workers for all tasks in the task set T. The NP-hardness of the modified MTP problem is the same as the original one so we can prove it instead.
Minimum weighted set cover problem is a well-known problem, which is similar to the modified MTP problem and is proved NP-hard. We consider a set withX elements P=τ1,τ2,…,τX and a set of sets with Y sets Q=Γ1,Γ2,…,ΓY. The objective of the minimum weighted set cover problem is finding a subset of Q with a minimum number of cardinalities and the union of the sets in this subset contains all elements in set P. In our proof, set P is regarded as the set of all tasks, and set Q is regarded as the set of mobile users’ bidding tasks’ sets. Based on these representations, we can build the representations of our modified MTP problem. For every bidding user i’s bidding tasks set, Γi we build set Γi′ whose elements τj∈Γi. Then we get a set Q′=Γ1′,Γ2′,…,ΓY′ which represents the winning tasks’ sets of every bidding user. And Q′ is required to cover all tasks τj∈P at least Nj times because of our constraints of the error bound. If we use R=N1,N2,…,NX to denote the minimum number constraints, P, Q′, and R construct the representations of our modified MTP problem. The modified MTP problem then can be essentially regarded as a minimum weighted set cover problem which is proved to be NP-hard, which is hard to find a result in polynomial time. The modified MTP problem is then NP-hard. And our MTP problem is proved to be NP-hard.
Since the problem is NP-hard, in the design level of the auction algorithm, we determine to run an auction for every single task in the task set. We split and reorganize the bids of users to compose bids based on each task, and then the algorithm is simpler to implement and find results.Lemma 1.
MTP Auction is computationally efficient.Proof.
Computationally efficient means the results of the whole auction have to be calculated in polynomial time. When computing the computational complexity, we consider the condition that the algorithm runs the greatest number of iterations. The winner selection part of the algorithm takesONM time, where finding the minimum value of bS+bj costs OM time and the loop iterates for N times costs ON time. When it comes to the payment determination, the process of the inner loop of this part which is from Line 12 to 17 is similar to the winner selection part. It also costs ONM time to run. The payment determination part also has an outer loop that iterates for each user in the winner set with the number of N, so it takes ON time to execute. Hence, the payment determination part takes ON2M time. The total time of this auction is ONM+ON2M. Hence the execution time of the whole auction algorithm is dominated by the payment determination part, which is bounded by ON2M.Lemma 2.
MTP Auction is individually rational.Proof.
Individually rational means the vehicles that participate in the auction are not willing to gain negative utility. We letii denote the user who replaces the position of user i in the sorting of U\i which is the whole user set except user i in one iteration of the payment determination part of the auction algorithm. User ii is at i th position because of the outside of user i. It will not be here if user i is considered, so bS+bi≤bS+bii. Hence, we have bi≤bii and based on the selection method, they will replace each other in the sorting at N th position. If we use biU to represent every bidding price of all vehicles in U, we get bi≤bii≤biU\i. And since we choose the maximum one of bii and bi as the payment price of the user i which is pi, we have bi≤bii≤pi, according to Line 18. Besides, the bidding price of the user i is to make itself earn positive utility because it will not submit a price lower than its own cost.
Hence, we prove that the payment price of the useri is equal to or larger than its bidding price for sure. Since the user i bids at this price so that it will not get negative utility at its own bidding price, and it will not be even at a higher price. Hence, the users will not get negative utility for sure, which means the auction is individually rational.Lemma 3.
MTP auction is profitable.Proof.
Profitable means the platform that runs the auction among buyers and sellers will gain utility by serving the auction. In our design, the auction algorithm does not act as a usual auction that the platform receives payment from buyers, leaves some utility for itself, and then sends payment to sellers. The auction that runs in our system and acts as the smart contract on blockchain on devices of ISP only chooses winners and determines the payment prices of them, but it does not directly deal with money. As introduced above, the payment prices will be stored into other smart contracts and crowdsensing providers who request tasks will directly pay for vehicles via blockchain to execute these smart contracts to get sensed data. So the platform will not earn money from the auction or will not lose money either. However, the auction algorithm is implemented as a smart contract which requests a crowdsensing task requester to pay for its work to execute. This payment is the profit of the auction platform. The determination of this fee to execute the auction smart contract is not the problem our proposal will discuss, but it is easy to consider that it can be related to the amount of workload of the platform. Hence, we can say the MTP auction is profitable.Lemma 4.
MTP auction is systematically efficient.Proof.
Systematically efficient means the auction not only makes the platform earn utility but also earns more utilities. In our system, a crowdsensing task requester will pay for selected vehicles no matter how high prices are determined to ensure the tasks are completed as the constraints, so crowdsensing providers may have a high cost to gain the data. If the auction algorithm selects the mobile user with the lowest bid that can complete the task to minimize the total payment, the cost of the crowdsensing provider is reduced. This will make the crowdsensing task requesters more willing to choose this platform to save costs. Then the platform will have more opportunities to execute auctions and gain more utilities from the running of the auction, which means the platform tends to earn more utilities. Hence, we prove the MTP auction is systematically efficient.Lemma 5.
MTP auction is truthful.Proof.
Truthful means the best strategy of the participants is to bid with truthful values, and they cannot gain more utilities by bidding with fake prices. A theorem has been proved that an auction mechanism is truthful if and only if the selection rule is monotone and each winner is paid the critical value. A selection rule is monotone means if a useri wins in the auction with a bidding price bi, it will also win by bidding a lower price bi′≤bi. The payment prices of winners are critical means if user i bids a price higher than this critical value, it will not win in the auction. Based on this theorem, we can prove our auction is truthful by proving the winner selection is monotone and payment determination is critical meanwhile.Theorem 2.
MTP auction is computationally efficient, individually rational, profitable, systematically efficient, and truthful.Proof.
From Lemmas1–5, Theorem 2 is proved. Thus, the MTP auction satisfies these five properties.


## 7. Performance Evaluation

We carry out extensive simulations to verify the proposed algorithm.


### 7.1. Ethereum Smart Contract Experiment

We designed an experiment to find our auction algorithm can be deployed on the blockchain. We are determined to use Ethereum because its support to the development of smart contracts is easier and more powerful. All parts of our system can be implemented on it. The programming language of Ethereum smart contract development is Solidity, which we use to implement the auction. The complier version we use is 0.5.8 + commit.23d335f2.Emscripten.clang. The environment we use is Remix, whose version is v0.7.6. It is a web page opened in the browser and it will generate the blockchain environment which is called a private test chain within the browser using JavaScript Virtual Machine. Running smart contracts, creating accounts and payments are easy to do in this environment.We first observe the influence of the aggregation errorα to the total payment of the auction. A smaller aggregation error means more participants are required to complete the task. And in the simulation, we set the total number of vehicles M as 100, the privacy preserving levels εi of vehicles are randomly generated in the range from 0.2 to 1, workers’ data range γ is 1, the fusion center’s confidence level of the aggregation error δ is 0.5. The bidding prices of vehicles are randomly generated, satisfying Gauss distribution with mean of 10 and variance of 5. We consider the aggregation error α varies from 0.1 to 2, and we calculate each step with 0.1.As shown in Figure4, when aggregation error is small, we can see the total payment is high and nearly does not vary. The reason is when aggregation error is too small, the required number of participants N will be very large. If it is larger than the total number of vehicles M, all vehicles will be selected as winners and be paid. This leads to high total payment and since all vehicles have to be winners, the selection rule will not affect the results of the auction. This results in the total payment of the auctions being the same as each other. It can be seen that the data of them are not completed because in our simulations, we generate random bidding price for vehicles and run it for some time to take average values to reflect common conditions, so the total payment of them may not be the same. When aggregation error is larger we can see our MTP auction actually has a lower total payment than baseline and TASC [38].Figure 4
Influence of aggregation error.In the second part, we simulate the influence of the user number. The more users are willing to bid, the more choices the auction has. Therefore, it can lead to a lower payment. In this simulation, we set the total number of usersM as 100. The privacy preserving levels εi of users are randomly generated in the range from 0.2 to 1, workers’ data range γ is 1, the fusion center’s confidence level of the aggregation error δ is 0.5. The bidding prices of users are randomly generated, satisfying Gauss distribution with a mean of 10 and variance of 5. We also set the aggregation error α to 2, which can make the results easy to observe. The number of users bidding for the current task ranges from 30 to 100. And we calculate the results and total payment with 5 users of each step, which displays in x-axis in the output figure. Figure 5 is the diagram drawn according to the simulation results.Figure 5
Influence of the number of bidding vehicles.We can see in Figure5, with the increase of the number of people willing to participate in the current task, the total payment decreases. The total payment at some points increases while the number of people willing to participate increases because the bidding prices of vehicles are randomly generated by Gauss distribution which may cause total payment increase by coincidence. Our MTP auction produces less total payment than the baseline and TASC. Figure 6 shows the time efficiency of our proposed mechanism, which verifies Lemma 1.Figure 6
The time efficiency of the proposed mechanism. (a) The number of vehicles willing to participate. (b) The number of vehicles.
(a)(b)


### 7.2. Blockchain Smart Contract Experiment

We use Remix to compile and run the auction implemented as a smart contract. Since Solidity does not provide functions like print () to show the results in a terminal, we add event variables and output the information to logs. The smart contract running result is shown in Table1.Table 1
Smart contract running result.
status0 × l Transaction mined and execution succeedtransaction hash0 × dc95c1be5d36bd4876167e454ecb1dd5a80752aef4fde1899beba8544c37c53dfrom0 × ca35b7d915458ef540ade6068dfe2f44e8fa733ctoAuction.run() 0 × 692a70d2e424a56d2c6c27aa97d1a86395877b3agas999999999999999999999 gastransaction cost1887509 gasexecution cost3133437 gashash0 × dc95c1be5d36bd4876167e454ecb1dd5a80752aef4fde1899beba8544c37c53dimport0 × c04…06226decoded input{}decoded output{}logs[{”from”: ”0x692a70d2e424a56d2c6c27aa97d1a86395877b3a,” ”topic”: ”0 × 223049034c7b838b932cc4017be9fe8a14c35c24f08efe5ff82f515a576fa903,” ”event”: ”logUintArray,” ”args”: {”0”: ”winners,” ”1”: [”9”,”1”,”4”,”10”], ”length”: 2}}, [{”from”: ”0x692a70d2e424a56d2c6c27aa97d1a86395877b3a,” ”topic”: ”0 × 223049034c7b838b932cc4017be9fe8a14c35c24f08efe5ff82f515a576fa903,” ”event”: ”logUintArray,” ”args”: {”0”: ”payments,” ”1”: [”12”,”12”,”12”,”12”],” length”: 2}}]Due to the limitation of JavaScript VM and Solidity, in this experiment, we set the total number of usersM as 10, the privacy preserving levels εi of users are all 1, workers’ data range γ is 1, the fusion center’s confidence level of the aggregation error δ is 0.5. The bidding prices of users are randomly generated from 5 to 15. We also set the aggregation error α to 2. If a smart contract is executing, the pending status will be displayed in the terminal, like the first line in Table 1. After execution of it, the information of this execution will be displayed as a table in the terminal, like the table in Table 1. To execute a smart contract, an account must be chosen and some amount of gas that is larger than the transaction and execution need have to be left. In Table 1, the value of “from” ended with 733c is the account address that triggered the execution. The value of “to” is the address of the current smart contract. The value of “gas” is the gas limit that the account that triggers the execution allows using, which we set to multiple 9 s in the experiment. And the values of “transaction cost” and “execution cost” are the actual cost of gas of this execution. This means CSP has to pay for ISP’s work to execute the auction in our system. If we set the gas limit to zero which means CSP does not pay for ISP, the smart contract will not be executed. The value of “logs” in Table 1 is what we let the smart contract log which are the winners and their payments. In the first part of the log, we can see the winners’ IDs are 9, 11, 4, and 10. These IDs we assigned for easier understanding by human in this experiment, which are temporary account addresses like the value of “from” assigned to users in interactions before the auction in real system. And in the second part we can see the payments of them are all 12 in this time of simulation. Through this experiment, we ensure that our ideas of privacy protection and payment to incentive vehicles can be done based on blockchain.


## 7.1. Ethereum Smart Contract Experiment

We designed an experiment to find our auction algorithm can be deployed on the blockchain. We are determined to use Ethereum because its support to the development of smart contracts is easier and more powerful. All parts of our system can be implemented on it. The programming language of Ethereum smart contract development is Solidity, which we use to implement the auction. The complier version we use is 0.5.8 + commit.23d335f2.Emscripten.clang. The environment we use is Remix, whose version is v0.7.6. It is a web page opened in the browser and it will generate the blockchain environment which is called a private test chain within the browser using JavaScript Virtual Machine. Running smart contracts, creating accounts and payments are easy to do in this environment.We first observe the influence of the aggregation errorα to the total payment of the auction. A smaller aggregation error means more participants are required to complete the task. And in the simulation, we set the total number of vehicles M as 100, the privacy preserving levels εi of vehicles are randomly generated in the range from 0.2 to 1, workers’ data range γ is 1, the fusion center’s confidence level of the aggregation error δ is 0.5. The bidding prices of vehicles are randomly generated, satisfying Gauss distribution with mean of 10 and variance of 5. We consider the aggregation error α varies from 0.1 to 2, and we calculate each step with 0.1.As shown in Figure4, when aggregation error is small, we can see the total payment is high and nearly does not vary. The reason is when aggregation error is too small, the required number of participants N will be very large. If it is larger than the total number of vehicles M, all vehicles will be selected as winners and be paid. This leads to high total payment and since all vehicles have to be winners, the selection rule will not affect the results of the auction. This results in the total payment of the auctions being the same as each other. It can be seen that the data of them are not completed because in our simulations, we generate random bidding price for vehicles and run it for some time to take average values to reflect common conditions, so the total payment of them may not be the same. When aggregation error is larger we can see our MTP auction actually has a lower total payment than baseline and TASC [38].Figure 4
Influence of aggregation error.In the second part, we simulate the influence of the user number. The more users are willing to bid, the more choices the auction has. Therefore, it can lead to a lower payment. In this simulation, we set the total number of usersM as 100. The privacy preserving levels εi of users are randomly generated in the range from 0.2 to 1, workers’ data range γ is 1, the fusion center’s confidence level of the aggregation error δ is 0.5. The bidding prices of users are randomly generated, satisfying Gauss distribution with a mean of 10 and variance of 5. We also set the aggregation error α to 2, which can make the results easy to observe. The number of users bidding for the current task ranges from 30 to 100. And we calculate the results and total payment with 5 users of each step, which displays in x-axis in the output figure. Figure 5 is the diagram drawn according to the simulation results.Figure 5
Influence of the number of bidding vehicles.We can see in Figure5, with the increase of the number of people willing to participate in the current task, the total payment decreases. The total payment at some points increases while the number of people willing to participate increases because the bidding prices of vehicles are randomly generated by Gauss distribution which may cause total payment increase by coincidence. Our MTP auction produces less total payment than the baseline and TASC. Figure 6 shows the time efficiency of our proposed mechanism, which verifies Lemma 1.Figure 6
The time efficiency of the proposed mechanism. (a) The number of vehicles willing to participate. (b) The number of vehicles.
(a)(b)


## 7.2. Blockchain Smart Contract Experiment

We use Remix to compile and run the auction implemented as a smart contract. Since Solidity does not provide functions like print () to show the results in a terminal, we add event variables and output the information to logs. The smart contract running result is shown in Table1.Table 1
Smart contract running result.
status0 × l Transaction mined and execution succeedtransaction hash0 × dc95c1be5d36bd4876167e454ecb1dd5a80752aef4fde1899beba8544c37c53dfrom0 × ca35b7d915458ef540ade6068dfe2f44e8fa733ctoAuction.run() 0 × 692a70d2e424a56d2c6c27aa97d1a86395877b3agas999999999999999999999 gastransaction cost1887509 gasexecution cost3133437 gashash0 × dc95c1be5d36bd4876167e454ecb1dd5a80752aef4fde1899beba8544c37c53dimport0 × c04…06226decoded input{}decoded output{}logs[{”from”: ”0x692a70d2e424a56d2c6c27aa97d1a86395877b3a,” ”topic”: ”0 × 223049034c7b838b932cc4017be9fe8a14c35c24f08efe5ff82f515a576fa903,” ”event”: ”logUintArray,” ”args”: {”0”: ”winners,” ”1”: [”9”,”1”,”4”,”10”], ”length”: 2}}, [{”from”: ”0x692a70d2e424a56d2c6c27aa97d1a86395877b3a,” ”topic”: ”0 × 223049034c7b838b932cc4017be9fe8a14c35c24f08efe5ff82f515a576fa903,” ”event”: ”logUintArray,” ”args”: {”0”: ”payments,” ”1”: [”12”,”12”,”12”,”12”],” length”: 2}}]Due to the limitation of JavaScript VM and Solidity, in this experiment, we set the total number of usersM as 10, the privacy preserving levels εi of users are all 1, workers’ data range γ is 1, the fusion center’s confidence level of the aggregation error δ is 0.5. The bidding prices of users are randomly generated from 5 to 15. We also set the aggregation error α to 2. If a smart contract is executing, the pending status will be displayed in the terminal, like the first line in Table 1. After execution of it, the information of this execution will be displayed as a table in the terminal, like the table in Table 1. To execute a smart contract, an account must be chosen and some amount of gas that is larger than the transaction and execution need have to be left. In Table 1, the value of “from” ended with 733c is the account address that triggered the execution. The value of “to” is the address of the current smart contract. The value of “gas” is the gas limit that the account that triggers the execution allows using, which we set to multiple 9 s in the experiment. And the values of “transaction cost” and “execution cost” are the actual cost of gas of this execution. This means CSP has to pay for ISP’s work to execute the auction in our system. If we set the gas limit to zero which means CSP does not pay for ISP, the smart contract will not be executed. The value of “logs” in Table 1 is what we let the smart contract log which are the winners and their payments. In the first part of the log, we can see the winners’ IDs are 9, 11, 4, and 10. These IDs we assigned for easier understanding by human in this experiment, which are temporary account addresses like the value of “from” assigned to users in interactions before the auction in real system. And in the second part we can see the payments of them are all 12 in this time of simulation. Through this experiment, we ensure that our ideas of privacy protection and payment to incentive vehicles can be done based on blockchain.


## 8. Conclusion

In this paper, we propose a new system architecture of mobile crowdsensing which not only can preserve the privacy of vehicles but also efficiently incentivize them to participate in the tasks. We apply the satellite-terrestrial system to solve the communication limitation among vehicles. This system is deployed on devices of ISP and based on blockchain and uses smart contracts to deal with the interactions among the roles in the system. Four smart contracts are implemented to do tasks requesting, running an auction to select appropriate vehicles, payment operating, and sensed data accessing. This structure preserves the privacy of vehicles because crowdsensing providers cannot know their identities and sensitive information. We design an auction algorithm that aims to minimize the total payment and ensure the completion of the tasks with given aggregation accuracy constraints. We discuss the NP-hardness and mathematical proofs of the five properties of this auction. We implement the auction algorithm in Ethereum as a smart contract.



---

*Source: 4036491-2022-01-31.xml*