deviceverifier

1.0.5 • Public • Published

DeviceVerifier

DeviceVerifier extends Web3Things to provide authentication and verification for IoT device actions through blockchain.

Features

  • Authenticate IoT device actions.
  • Record verified actions on the Ethereum blockchain.
  • Leverage Web3Things for secure IoT-blockchain interaction.

Installation

npm install deviceverifier

Usage

const DeviceVerifier = require('deviceverifier');
const verifier = new DeviceVerifier('https://mainnet.infura.io/v3/YOUR_PROJECT_ID', 'mqtt://broker.hivemq.com');

verifier.verifyDeviceAction('deviceId123', 'turnOn');
verifier.recordDeviceActionOnBlockchain('deviceId123', 'turnOn');

DeviceVerifier ensures that every action taken by your IoT devices is authenticated and recorded, offering unparalleled security and transparency.

Readme

Keywords

none

Package Sidebar

Install

npm i deviceverifier

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

2.48 kB

Total Files

3

Last publish

Collaborators

  • kaka445