Skip to main content
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
BLOCKCHAIN FOR IoT · BC-M01
Blockchain for IoT

IoT and blockchain foundations

Dr. Mohammad Alja’afreh · Princess Sumaya University for Technology

SensorCommitmentAudit
Design experiment & verify evidence →
BC-M01 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice

← Lecture-aligned module experiments · All blockchain labs · Setup wizard

Introduction

Scientific architecture · IoT billing, emissions and integrity

Meter billing and emissions — Meter readings / cumulative kWh; Difference / consumption ΔE; Cost / ΔE × tariff; Emissions / ΔE × factor; Commit record / hash canonical bytes
Scientific concept map: IoT smart meter — Power × duration; Consumption — kWh per interval; Tariff and emissions — Cost / CO₂ factor; Canonical record — Timestamp and readings; Ledger commitment — Digest integrity.

Scientific foundations and analytical reasoning

Energy equals power multiplied by time; telemetry billing depends on record count and emissions depend on a declared grid factor. Integrity protects the recorded data, not metering accuracy.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

BC-M01 · Academic orientation

Scope and objectives

Scope of the experiment

Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.

The focus of this experiment is to distinguish physical IoT observations from ledger representations. Students then trace device records into an integrity-preserving workflow, and evaluate storage, energy and evidence constraints without treating ledger entries as physical truth. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Distinguish physical IoT observations from ledger representations.
  • Trace device records into an integrity-preserving workflow.
  • Evaluate storage, energy and evidence constraints without treating ledger entries as physical truth.
  • Identify the configured inputs (Metering devices; Monitoring hours; Readings per device/hour; Mean device power (W); Charge per 1000 records) and record the corresponding observed outputs with units where applicable.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can distinguish physical IoT observations from ledger representations, trace device records into an integrity-preserving workflow, and evaluate storage, energy and evidence constraints without treating ledger entries as physical truth.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing evaluate storage, energy and evidence constraints without treating ledger entries as physical truth. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Hashing, authentication and avalanche.

Environment and experimental methodology

The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

Scientific theory · Energy and accountable telemetry

Energy is power integrated over time; constant power P for hours t produces P×t watt-hours, divided by 1000 for kWh. Billing multiplies energy by tariff, and estimated emissions multiply kWh by a declared grid factor. An integrity commitment protects recorded bytes, not calibration or metering truth.

Worked example and engineering interpretation

A 100 W device operating for 10 hours consumes 1 kWh under the constant-power assumption. At 0.15 currency units/kWh and 0.4 kg CO2e/kWh, estimated cost is 0.15 and emissions 0.4 kg CO2e. Treat these as conditional predictions and record the actual units and factors.

Engineering principles · additional worked teaching example

Sampling rate determines record count; energy is the integral of power. At 4 nodes, 30 samples/hour, 10 h, 3 W/node: 1200 records and 0.12 kWh. At 0.4 kg/kWh emissions are 0.048 kg; a signed digest verifies recorded bytes, not meter calibration.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Metering devices = 8; Monitoring hours = 24; Readings per device/hour = 60; Mean device power (W) = 2; Charge per 1000 records = 0.2; Grid emission factor (kg CO₂/kWh) = 0.4; Retrieved energy correction (kWh) = 0. In the classroom model, Records = 11520; Energy = 0.384 kWh; Emissions = 0.1536 kg CO₂; Service charge = 2.304 billing units; Evidence matches = Yes. The commitment detects changed retrieved bytes; it cannot independently establish metering truth. Declared workload and power assumptions; no actual metering, emissions certification or blockchain deployment.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Mathematical representation and interpretation

Sampling, energy and emissions

n is device count, r readings per hour, t hours, P watts per device, E kilowatt-hours and gamma kilograms CO₂ per kilowatt-hour. This model requires constant power or a time average.

\[N=nrt,\quad E=\frac{nPt}{1000},\qquad M=\gamma E\]

Concept animation · topology and link dependencies

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

IoT and blockchain foundations: topology and link dependencies8 meters11520 samples2.304 bill units0.1536 kg CO₂Digest verificat…

Step 1 of 4 · Connection 1

Connection 1

Link 1
meter → edge · acquire

Teaching example only; inspect live calculations or real practical evidence separately.

How to investigate IoT and blockchain foundations

Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.

  1. Run the 8-device, 24-hour baseline with 60 samples/hour, 2 W and grid factor 0.4. Calculate 11,520 records, 0.384 kWh and 0.1536 kg CO₂ independently.
  2. Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double.
  3. Restore the baseline and change the emission factor to 0.1. Energy stays constant while CO₂ falls.
  4. Alter retrieved energy by 0.01 kWh without changing the trusted commitment. Inspect the SHA-256 mismatch.

Reference check: Unchanged bytes reproduce the trusted digest; changed bytes fail verification. More sensors increase the raw byte budget linearly.

Model boundary: SHA-256 commitment, not a signature or proof of measurement truth. Fixed 64-byte records for the workload estimate.

Independent task and submission evidence

2. Verify cost = records × price/1000 and inspect 64-byte-per-record storage demand. Double the device count; confirm both energy and workload double. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Investigate how a signed or anchored emissions-monitoring record can be checked by an independent auditor, and why sensor truth remains outside the ledger.

Learning goals

  1. Explain the mechanism using the actual intermediate states in this experiment.
  2. Predict and verify the reference and modified conditions described below.
  3. Interpret the acceptance criteria and identify the limits of the model.

Module flashcards · 12 questions

Browse all 12 questions and explanations
What does the retained digest establish?

Equality of the supplied bytes with the previously committed bytes.

Does the ledger prove a sensor was calibrated?

No. Calibration and trustworthy acquisition are separate evidence.

Why use a gateway?

It can mediate connectivity, batching and resource constraints.

What changes when the number of sensors doubles?

Under fixed sampling and record size the raw payload budget doubles.

Why keep an independent trusted digest?

A digest supplied alongside modified data can be replaced with it; the reference needs independent trust.

What is the independent variable in the tampering trial?

The auditor candidate value, with the reference reading held fixed.

Why may blockchain increase storage pressure?

Replicated history and frequent transactions consume storage and bandwidth.

What does successful verification not imply?

That the original sensor reading is accurate, authenticated or authorized.

If six sensors each produce a 64-byte record, what is the sampling-round size?

384 bytes.

What changes when the auditor enters 421 instead of the committed 420 ppm?

The candidate digest differs; verification fails.

If 24 sensors report once, how many raw bytes are produced?

1536 bytes.

Can an incorrect sensor reading pass digest verification?

Yes, if its exact bytes were committed; integrity is not sensor accuracy.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research