{'fraction_non_alphanumeric': 0.022248947684906796, 'fraction_numerical': 0.0, 'mean_word_length': 5.7368421052631575, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
B-ReST: Blockchain-Enabled Resource Sharing and Transactions in Fog Computing

Driven by the extensively emerging applications requiring big data processing, a series of heterogeneous network architectures have been proposed to meet user experience requirements. Among them, the concept of fog computing facilitates the effective integration and utilization of ubiquitous computing resources. In fog computing scenarios, willingness and service billing issues become significant to computing resource sharing and transactions. In this article, the recently developed blockchain technology characterized by successfully enabling consensus in an untrustworthy environment is introduced. Based on the blockchain technology, we propose a new architecture for resource sharing and transactions in fog computing networks, named Blockchain-Enabled Resource Sharing and Transactions in Fog Computing (B-ReST). The physical architecture, functional architecture, and workflow in B-ReST are defined. We also discuss the key technologies in B-ReST such as the smart contracts, the consensus mechanism and the requester and provider matching (RPM). The wireless characteristics of fog computing and blockchain technology are closely combined to make full and efficient use of ubiquitous computing resources. To prove the feasibility of the proposed architecture, the RPM problem is solved by a deep reinforcement learning (DRL) based method. Simulation results show the advantages of B-ReST to realize resource sharing and transactions, and the performance of B-ReST based on the DRL method has been enhanced. Challenges and future research directions are summarized as well.