Objective: An Internet of Things (IoT) network has constraints on power consumption, processing power and security of end devices in the network. On the other hand, blockchain technology has some difficulties in storage capacity, data privacy, the ability to revoke consent, energy usage, scalability, and speed. To overcome the individual limitations of these two technologies, we integrate these two to propose a new design with an intention to authenticate, secure and share data pertaining to attendance system. In this present work the primary implementation details of our proposed work regarding coding are analyzed and a straightforward solution is offered by using indexing. Methods: Through our proposed work we introduce a multifaceted authentication system for user device substantiation, a Public Key Infrastructure (PKI) and RSA (Rivest-Shamir-Adleman) based blockchain implementation for data sharing and a rule-based access control scheme used for accessing data. Findings: The system can work with unidirectional and bidirectional IoT networks, and the data is stored on blockchain, providing more security to the data generated on the IoT network. Blockchain technology is utilized to offer a solution for certain problems encountered within a widespread network. Furthermore, a multi-factor authentication scheme is introduced and a rule-based access control scheme to access the data. Novelty: The blockchain is emerging which can be used to decentralize management and protect sensitive data. In a blockchain based attendance system, no administrative authority is permitted to modify or erase data. The individual who adds a data entry to the blockchain cannot later deny their involvement in the action. On the blockchain, all of the data and history are accessible to every participant. The blockchain based attendance system needs to offer a database that can be trusted, secure, and impossible to manipulate. Keywords: Blockchain (BC), Internet of Things (IoT), Student Attendance Management (SAM), User Authentication Key (UAK), Data Sharing