Skip to main content

A Two-Way Atomic Exchange Protocol for Peer-to-Peer Data Trading

  • Conference paper
  • First Online:
Intelligent Computing (SAI 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 508))

Included in the following conference series:

  • 696 Accesses

Abstract

Various types of data are generated every day, and the amount of generated data is growing exponentially. People are interested in extracting the value of data. Some valuable data among them can be viewed as digital products to be traded. For example, with the outbreak of COVID-19, patients’ personal health records, electronic medical records and travel history become important and valuable information for epidemic prevention. On the other hand, the license keys for high-priced software such as EDA (Electronic Design Automation) tools also have value and can be considered as tradable products. However, the trust between two parties in the trading process becomes an issue. Consumers do not pay until providers give the data while providers are not willing to do since they distrust that consumers will pay after receiving the data. In this paper, we propose a Blockchain-based protocol for data trading with zero-knowledge proofs. To protect the data and maintain their value, Zero-knowledge succinct non-interactive argument of knowledge (zk-SNARK) is included that the provider can convince the consumer of the correctness and security of the data without revealing the details before receiving the payment. Predefined agreements between both parties in smart contracts are executed automatically. When the data is valid, the provider receives the payment, and in the meantime, the consumer has the ability to obtain the purchase data. Otherwise, the payment is refunded to the consumer immediately if the provider cheats. This approach employs the method of two-way exchange, as known as Delivery versus Payment (DvP) in physical commodity trading and ensures the rights and benefits for both parties. The whole process is decentralized for the purpose of constructing fair data trading without any trusted third party and ensuring system availability.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Douglas, L.: 3d data management: Controlling data volume, velocity and variety, 6 February 2001

    Google Scholar 

  2. Osman, M.: Wild and Interesting Facebook Statistics and Facts (2020). https://kinsta.com/blog/facebook-statistics/ 1 Jan 2020

  3. World Health Organization. 2020. Coronavirus disease (COVID-2019) situation reports URL: https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports/

  4. Chen, C.M., et al.: Containing COVID-19 among 627,386 persons in contact with the diamond princess cruise ship passengers who disembarked in Taiwan: big data analytics. J. Med. Internet Res. 22(5), e19540 (2020). https://www.jmir.org/2020/5/e19540. PMID: 32353827. PMCID: 7202311. https://doi.org/10.2196/19540

  5. Xu, X., et al.: Effective treatment of severe COVID-19 patients with tocilizumab. Proc. Natl. Acad. Sci. 117(20), 10970–10975 (2020). https://doi.org/10.1073/pnas.2005615117

  6. Le Thanh, T., Andreadakis, Z., Kumar, A., et al.: The COVID-19 vaccine development landscape. Nat. Rev. Drug Discov. 19(5), 305–306 (2020). https://doi.org/10.1038/d41573-020-00073-5

    Article  Google Scholar 

  7. Subramanya, S.R., Yi, B.K.: Digital rights management. In: IEEE Potentials, vol. 25, no. 2, pp. 31–34, March-April 2006, https://doi.org/10.1109/MP.2006.1649008

  8. Gupta, P., Kanhere, S.S., Jurdak, R.: A Decentralized IoT data marketplace (2019). https://arxiv.org/abs/1906.01799

  9. Zhao, Y., Li, Y., Mu, Q., Yang, B., Yu, Y.: Securepub-sub:Blockchain-based fair payment with reputation for reliable cyber physical systems. IEEE Access 6, 12295–12303 (2018)

    Article  Google Scholar 

  10. Dai, W., et al.: SDTE: A secure blockchain-based data trading ecosystem. IEEE Trans. Inf. Forensics Secur. 15, 725–737 (2020)

    Article  Google Scholar 

  11. Chen, J., Xue, Y.: Bootstrapping a blockchain based ecosystem for big data exchange. In: 2017 IEEE International Congress on Big Data, BigData Congress 2017, Honolulu, HI, USA, 25–30 June 2017, pp. 460–463 (2017)

    Google Scholar 

  12. Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2009). https://bitcoin.org/bitcoin.pdf

  13. Ethereum Foundation. A Next-Generation Smart Contract and Decentralized Application Platform (2014). https://github.com/ethereum/wiki/wiki/White-Paper

  14. Bitansky, N., Canetti, R., Chiesa, A., Tromer, E.: From Extractable Collision Resistance to Succinct Non-Interactive Arguments of Knowledge, and Back Again. Cryptology ePrint Archive, Report 2011/443. https://eprint.iacr.org/ 2011/443 (2011)

  15. Liang, F., et al.: A survey on big data market: pricing, trading and protection. IEEE Access 6, 15132–15154 (2018)

    Article  Google Scholar 

  16. Wang, Z.J., Lin, C.H., Yuan, Y.H., Huang, C.C.: Decentralized data marketplace to enable trusted machine economy. In: 2019 IEEE Eurasia Conference on IOT, Communication and Engineering (ECICE), Yunlin, Taiwan, pp. 246–250 (2019). https://doi.org/10.1109/ECICE47484.2019.8942729

  17. Lin, C.H., Huang, C.C., Yuan, Y.H., Yuan, Z.S.: A fully decentralized infrastructure for subscription-based IoT data trading. IEEE Int. Conf. Blockchain 2020, 162–169 (2020). https://doi.org/10.1109/Blockchain50366.2020.00027

    Article  Google Scholar 

  18. Xiong, W., Xiong, L.: Smart contract based data trading mode using blockchain and machine learning. IEEE Access 7, 102331–102344 (2019)

    Article  Google Scholar 

  19. Zhao, Y., Yu, Y., Li, Y., Han, G., Du, X.: Machine learning based privacy-preserving fair data trading in big data market. Inf. Sci. 478, 449–460 (2019)

    Article  Google Scholar 

  20. Li, T., Li, D.: A Valid Blockchain-based Data Trading Ecosystem. Cryptology ePrint Archive: Report 2019/1306. https://eprint.iacr.org/2019/1306.pdf, 2019

  21. Maxwell, G.: The first successful zero-knowledge contingent pay- ment. Bitcoin Core Blog, https://bitcoincore.org/en/2016/02/26/ zero-knowledge-contingent-payments-announcement/, February 2016

  22. Ben-Sasson, E., et al.: Zerocash: decentralized anonymous payments from Bitcoin. In: IEEE Symposium on Security and Privacy (SP), pp. 459–474 (2014)

    Google Scholar 

  23. Bunz, B., Agrawal, S., Zamani, M., Boneh, D.: Zether. Towards Privacy in a Smart Contract World, IACR Cryptology ePrint Archive (2019)

    Google Scholar 

  24. Rondelet, A., Zajac, M.: ZETH: On Integrating Zerocash on Ethereum. arXiv preprint arXiv:1904.00905 (2019)

  25. Campanelli, M., Gennaro, R., Goldfeder, S., Nizzardo, L.: Zero-knowledge contingent payments revisited: attacks and payments for services. In: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security (CCS), pp. 229–243. ACM (2017)

    Google Scholar 

  26. Delgado-Segura, S., Perez-Sola, C., Navarro-Arribas, G., Herrera-Joancomarti, J.: A fair protocol for data trading based on bitcoin transactions. IACR Cryptology ePrint Archive 2017, 1018 (2017)

    Google Scholar 

  27. Goodrich, M.T., Tamassia, R., Triandopoulos, N.: Super-efficient verification of dynamic outsourced databases. In: Malkin, T. (ed.) CT-RSA 2008. LNCS, vol. 4964, pp. 407–424. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-79263-5_26

    Chapter  Google Scholar 

  28. Merkle, R.C.: A certified digital signature. In: Brassard, G. (ed.) CRYPTO 1989. LNCS, vol. 435, pp. 218–238. Springer, New York (1990). https://doi.org/10.1007/0-387-34805-0_21

    Chapter  Google Scholar 

  29. SCIPR Lab. libsnark. https://github.com/scipr-lab/libsnark

  30. Marjani, M., et al.: Big IoT data analytics: architecture, opportunities, and open research challenges. IEEE Access 5, 5247–5261 (2017)

    Article  Google Scholar 

  31. Chandola, V., Banerjee, A., Kumar, V.: Anomaly detection: a survey. ACM Comput. Surv. (CSUR) 41(3), 15 (2009)

    Article  Google Scholar 

  32. Decker, C., Wattenhofer, R.: Information propagation in the Bitcoin network. In: Peer-to-Peer Computing, 2013 IEEE Thirteenth International Conference, pp. 1–10 (2013)

    Google Scholar 

  33. Liao, S., et al.: DeepLinQ: distributed multi-layer ledgers for privacy-preserving data sharing. In: 2018 IEEE International Conference on Artificial Intelligence and Virtual Reality (AIVR), pp. 173–178 (2018)

    Google Scholar 

  34. Rogaway, P., Shrimpton, T.: Cryptographic hash-function basics: definitions, implications, and separations for preimage resistance, second-preimage resistance, and collision resistance. In: Roy, B., Meier, W. (eds.) FSE 2004. LNCS, vol. 3017, pp. 371–388. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-25937-4_24

    Chapter  Google Scholar 

  35. iden3. snarkjs. https://github.com/iden3/snarkjs

  36. Albrecht, M., Grassi, L., Rechberger, C., Roy, A., Tiessen, T.: MiMC: efficient encryption and cryptographic hashing with minimal multiplicative complexity. In: ASIACRYPT, pp. 191–219 (2016)

    Google Scholar 

  37. Solidity (2020). https://solidity.readthedocs.io/en/latest/

  38. ETH Gas Station (2020). https://ethgasstation.info

  39. Morais, E., Koens, T., Wijk, C.V., Koren, A.: A survey on zero knowledge range proofs and applications. arXiv:1907.06381v1. https://arxiv.org/pdf/1907.06381.pdf. (2019)

  40. Lin, J.W., Liao, S.W., Leu, F.Y.: Sensor data compression using bounded error piecewise linear approximation with resolution reduction. Energies 12, 1–20 (2019)

    Google Scholar 

  41. Wang, S.H., Lin, C.X., Tu, C.H., Huang, C.C., Juang, J.C.: Autonomous vehicle simulation for asia urban areas with a perspective from education. In: 2020 International Computer Symposium (ICS) (2020). https://doi.org/10.1109/ICS51289.2020.00095

  42. Huang, C.C., Yuan, Z.S.: privacy implication and technical requirements toward GDPR compliance. In: Proceedings of the Future Technologies Conference (FTC) (2019). https://doi.org/10.1007/978-3-030-32523-7_24

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ching-Chun Huang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Wang, ZJ., Huang, CC., Liao, SW., Yuan, Zs.S. (2022). A Two-Way Atomic Exchange Protocol for Peer-to-Peer Data Trading. In: Arai, K. (eds) Intelligent Computing. SAI 2022. Lecture Notes in Networks and Systems, vol 508. Springer, Cham. https://doi.org/10.1007/978-3-031-10467-1_27

Download citation

Publish with us

Policies and ethics