Differential Privacy-Based Double Auction for Data Market in Blockchain-Enhanced Internet of Things
Algorithm 4
Input: candidate buyers and sellers , data amounts , prices of candidate buyers and sellers , valid price in slot , and differential privacy-related parameters and .
Output: data transaction result and winning buyer
//Initialization
,,
//Determine winning buyer
for to do
end
for todo
end
Select data buyer according to probability distribution
//Determine trading price for winning buyer
Use as trading price of
//Calculate probability to be a winning seller
for to do
end
for to do
end
whiledo
//Select a winning seller for the winning buyer
Select seller according to probability distribution