A Blockchain-Based Secure Data Storage and Trading Model for Wireless Sensor Networks

Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 1151)


Data storage on local devices provides fast, secure and complete access to the users. However, it needs sufficient storage, which is not feasible for light-weight clients’ environments. In such scenarios, the usage of external devices makes the system vulnerable to data tampering, privacy leakage, and other data security issues. Wireless Sensor Networks (WSNs) consist of resource constrained devices, where external storage is preferred due to the lack of storage capacity in local devices. Therefore, using a centralized storage mechanism in WSNs causes slow data retrieval, which affects further operations on data. Relying on trusted parties also cause certain privacy and trust issues. Various data trading mechanisms are introduced to efficiently utilize the stored data. However, they still lack in certain aspects as discussed above. Therefore, we propose and implement a Secure Incentive-based Data Storage and Trading Model (SIDSTM), which provides a secure and efficient distributed storage mechanism. The proposed scheme uses AES-128 encryption scheme to encrypt the data for privacy purposes. An elliptic curve Diffie-Hellman key exchange is used for securely exchanging the private keys among the network peers. In WSNs, there are fewer data trading models so far. Anyone can access the data if he has access to the hash provided by the IPFS in the InterPlanetary File System (IPFS). Thus, IPFS provides efficient data access and storage mechanism. However, it deletes the data after a certain time interval due to the limited storage. Therefore, the proposed model provides incentives to motivate IPFS’s peers for data storage. It also eliminates the need for the third-party involvement in data trading. The simulations are conducted to prove the effectiveness of the proposed model by evaluating its efficiency and scalability.


  1. 1.
    She, W., Liu, Q., Tian, Z., Chen, J.S., Wang, B., Liu, W.: Blockchain trust model for malicious node detection in wireless sensor networks. IEEE Access 7, 38947–38956 (2019)CrossRefGoogle Scholar
  2. 2.
    Ren, Y., Liu, Y., Ji, S., Sangaiah, A.K., Wang, J.: Incentive mechanism of data storage based on blockchain for wireless sensor networks. Mob. Inf. Syst. 2018, 1–10 (2018)Google Scholar
  3. 3.
    Nakamoto, S.: Bitcoin: A Peer-to-Peer Electronic Cash System, pp. 1–9 (2008).
  4. 4.
    Li, Z., Kang, J., Yu, R., Ye, D., Deng, Q., Zhang, Y.: Consortium blockchain for secure energy trading in industrial internet of things. IEEE Trans. Industr. Inf. 14(8), 3690–3700 (2017)Google Scholar
  5. 5.
    Mengelkamp, E., Notheisen, B., Beer, C., Dauer, D., Weinhardt, C.: A blockchain-based smart grid: towards sustainable local energy markets. Comput. Sci. Res. Dev. 33(1–2), 207–214 (2018)CrossRefGoogle Scholar
  6. 6.
    Huang, X., Zhang, Y., Li, D., Han, L.: An optimal scheduling algorithm for hybrid EV charging scenario using consortium blockchains. Future Gener. Comput. Syst. 91, 555–562 (2019)CrossRefGoogle Scholar
  7. 7.
    Alghamdi, T.A., Ali, I., Javaid, N., Shafiq, M.: Secure service provisioning scheme for lightweight IoT devices with a fair payment system and an incentive mechanism based on blockchain. IEEE Access, 1–14 (2019) Google Scholar
  8. 8.
    Mohanty, S.N., Ramya, K.C., Rani, S.S., Gupta, D., Shankar, K., Lakshmanaprabu, S.K., Khanna, A.: An efficient Lightweight integrated Blockchain (ELIB) model for IoT security and privacy. Future Gener. Comput. Syst. 102, 1027–1037 (2020)CrossRefGoogle Scholar
  9. 9.
    Li, R., Song, T., Mei, B., Li, H., Cheng, X., Sun, L.: Blockchain for large-scale internet of things data storage and protection. IEEE Trans. Serv. Comput. 12, 1–14 (2018)Google Scholar
  10. 10.
    Sultana, T., Almogren, A., Akbar, M., Zuair, M., Ullah, I., Javaid, N.: Data sharing system integrating access control mechanism using blockchain-based smart contracts for IoT devices. Appl. Sci. 10(2), 488 (2020)CrossRefGoogle Scholar
  11. 11.
    Samuel, O., Javaid, N., Awais, M., Ahmed, Z., Imran, M., Guizani, M.: A blockchain model for fair data sharing in deregulated smart grids. In: IEEE Global Communications Conference (GLOBCOM 2019), July 2019Google Scholar
  12. 12.
    Naz, M., Al-zahrani, F.A., Khalid, R., Javaid, N., Qamar, A.M., Afzal, M.A., Shafiq, M.: A secure data sharing platform using blockchain and interplanetary file system. Sustainability 11(24), 1–24 (2019)CrossRefGoogle Scholar
  13. 13.
    Rehman, M., Javaid, N., Awais, M., Imran, M., Naseer, N.: Cloud based secure service providing for IoTs using blockchain. In: IEEE Global Communications Conference (GLOBCOM 2019), pp. 1–7 (2019)Google Scholar
  14. 14.
    Saad, M.: Fog computing and its role in the internet of things: concept, security and privacy issues. Int. J. Comput. Appl. 975, 8887–8889 (2018)Google Scholar
  15. 15.
    Paar, C., Pelzl, J.: Understanding Cryptography: A Textbook for Students and Practitioners. Springer, Heidelberg (2009)zbMATHGoogle Scholar

Copyright information

© Springer Nature Switzerland AG 2020

Authors and Affiliations

  1. 1.COMSATS University IslamabadIslamabadPakistan
  2. 2.Changchun University of Science and TechnologyChangchunChina

Personalised recommendations