Research Article

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

Algorithm 2

Input: price and data quality of active buyers and sellers in slot
Output: valid price with for data trading in slot
;
Sort prices of active buyers:
Sort prices of active sellers:
ifthen
  refine active buyers
  refine active sellers
else ifthen
  refine active buyers , with
  refine active sellers , with
else ifthen
  refine active buyers , with
  refine active sellers , with
end
//Call function to decide valid price
return
  The function is as follows.
Function
Input: price and data quality of refined active buyers and sellers in slot
Output: valid price with for data trading in slot
Sort quality of refined active buyers in as ,
Sort quality of refined active sellers in as ,
ifthen
  
else ifthen
   with and
else ifthen
   with and
endreturn