Smart Contract Based Data Trading Mode Using Blockchain and Machine Learning

There are two traditional data trading modes, the hosting mode, and the aggregation mode, which depend on the trusted third parties to a large extent. The hosting mode is that the data are completely hosted in the data trading center, so the data trading center retains the data. On the surface, the aggregation mode is that the data trading center is not to retain the data of trading, but actually, it has the ability to retain the data. There is a fundamental difference between the ability to retain the data and the inability to retain the data. These two trading modes cause the data owners to be afraid to share data trading. In this paper, we propose a solution to the data trading mode based on the smart contract using blockchain and machine learning. Our solution takes advantage of the immutability, tamper-proof and traceability of blockchain, the programmability of smart contract, and the verification of data availability by the similarity learning to propose a challenge response mechanism between the data purchaser and the data owner, an off-chain download mechanism between the data purchaser and the data storage service provider, and an arbitration mechanism for the controversy resolution of the data trading. The challenge response mechanism is used to authenticate and authorize the data owner, the off-chain download mechanism is used to authenticate and authorize the data purchaser to download the purchased data, and the similarity learning is used to deal with the controversy over the data availability in the data trading. The design and implementation of data trading smart contract successfully achieved the goal of removing the trusted third party in the data trading, and thus, the problem that the data trading center has the ability to retain the data in the process of the data trading is solved, as well as the automatic payment by using the Ethereum encrypted currency among the trading participants is realized. This paper presents the whole process of smart contract from the design and implementation to the test completion and provides the security analysis and performance evaluation. The full code of smart contract and the ABI interface have been uploaded to the GitHub for the public release.

[1]  Xinwen Fu,et al.  A Survey on Big Data Market: Pricing, Trading and Protection , 2018, IEEE Access.

[2]  Qingju Wang,et al.  When Intrusion Detection Meets Blockchain Technology: A Review , 2018, IEEE Access.

[3]  Rong Jin,et al.  Distance Metric Learning: A Comprehensive Survey , 2006 .

[4]  Andrew Lippman,et al.  MedRec: Using Blockchain for Medical Data Access and Permission Management , 2016, 2016 2nd International Conference on Open and Big Data (OBD).

[5]  K. J. Ray Liu,et al.  Data Trading With Multiple Owners, Collectors, and Users: An Iterative Auction Mechanism , 2017, IEEE Transactions on Signal and Information Processing over Networks.

[6]  Marc Sebban,et al.  A Survey on Metric Learning for Feature Vectors and Structured Data , 2013, ArXiv.

[7]  Xiaojiang Du,et al.  Machine learning based privacy-preserving fair data trading in big data market , 2019, Inf. Sci..

[8]  Michael Devetsikiotis,et al.  Blockchains and Smart Contracts for the Internet of Things , 2016, IEEE Access.

[9]  Kilian Q. Weinberger,et al.  Large Margin Multi-Task Metric Learning , 2010, NIPS.

[10]  Nick Szabo,et al.  Formalizing and Securing Relationships on Public Networks , 1997, First Monday.

[11]  Vallipuram Muthukkumarasamy,et al.  Securing Smart Cities Using Blockchain Technology , 2016, 2016 IEEE 18th International Conference on High Performance Computing and Communications; IEEE 14th International Conference on Smart City; IEEE 2nd International Conference on Data Science and Systems (HPCC/SmartCity/DSS).

[12]  Naoto Yanai,et al.  RBAC-SC: Role-Based Access Control Using Smart Contract , 2018, IEEE Access.

[13]  Iwao Sasase,et al.  A Novel Blockchain-Based Product Ownership Management System (POMS) for Anti-Counterfeits in the Post Supply Chain , 2017, IEEE Access.

[14]  Satoshi Nakamoto Bitcoin : A Peer-to-Peer Electronic Cash System , 2009 .

[15]  Khaled Salah,et al.  Proof of Delivery of Digital Assets Using Blockchain and Smart Contracts , 2018, IEEE Access.

[16]  Kaizhu Huang,et al.  Geometry Preserving Multi-task Metric Learning , 2012, ECML/PKDD.

[17]  Juan Benet,et al.  IPFS - Content Addressed, Versioned, P2P File System , 2014, ArXiv.

[18]  Feng Tian,et al.  A supply chain traceability system for food safety based on HACCP, blockchain & Internet of things , 2017, 2017 International Conference on Service Systems and Service Management.

[19]  Amr M. Youssef,et al.  Lelantos: A Blockchain-Based Anonymous Physical Delivery System , 2017, 2017 15th Annual Conference on Privacy, Security and Trust (PST).

[20]  Khaled Salah,et al.  Blockchain-Based Proof of Delivery of Physical Assets With Single and Multiple Transporters , 2018, IEEE Access.

[21]  Philip C. Treleaven,et al.  Blockchain Technology in Finance , 2017, Computer.