Research Article

Differential Privacy-Based Double Auction for Data Market in Blockchain-Enhanced Internet of Things

Algorithm 3

Input: candidate buyers and sellers , data amounts , and prices of candidate buyers and sellers in slot
Output: data transaction result and winning buyer
//Initialization
,,
//Decide winning buyer
buyer with highest price in
//Decide trading price of winning buyer
ifthen
  Find second-highest price from as trading price of
else
  Use price of as trading price of
end
//Decide winning sellers providing data to winning buyer
whiledo
  
end
//Decide trading price of winning sellers
ifthen
  Trading price of sellers in Price of first seller in
else
  Trading price of sellers in Price of last seller in
end
//Record trading information of winning buyer
ifthen
  
  
end
//Record trading information of winning sellers
for eachdo
  ifthen
    
  exit
  else
    
  end
end
return