Blockchain Electricity Power Meter with a Cryptnox Card

Use a Cryptnox Hardware Wallet smartcard for IOT projects related to blockchain

  1. Measure electricity production on a connected wire in kWh over a period of time T
  2. At the end of each period of time T, the device will perform the following actions:
    a) internally reads the total amount of kWh,
    b) generate a corresponding “mint” transaction for equivalent tokens of a specific smart contract,
    c) perform a digital signature with the Cryptnox Card,
    d) broadcast the signed transaction to the chain endpoint,
    e) reset the internal kWh reading to zero
  1. Go to `https://remix.ethereum.org`, create a new workspace
  2. Under contracts, rename file as desired, paste code from solidity file from repository into renamed file on remix:
    https://github.com/Cryptnox-IOT-Projects/kWh-Minting-Burning-Meter/tree/main/energyERC20contract/remix
  3. Compile and Deploy
  4. In Deployed Contract, find the addMinter function, paste the public address of the Cryptnox Hardware Wallet card and press “Transact”

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cryptnox Cards

Cryptnox is a swiss based company developing smart cards (hardware wallet) for blockchain