Skip to main content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
ENGINEERING WORKSPACE
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
BLOCKCHAIN FOR IOT
Blockchain for IoT

B01 · Hash functions and linked blocks

Ask Dr. Mohammad · B01 →

Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability.

Design experiment & verify evidence →
B01 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
Learning workflow · Blockchain foundationsB01 · Hash functions and linked blocks

Before you start

Learning outcome: Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability.

Use the offline browser model with fictional values. Web Crypto must be available for actual SHA-256. If unavailable, start the local website server and open localhost. No wallet or blockchain network is required.

Recommended predecessors: K06

Predict: Write down the expected positive and negative outcomes in the notebook before proceeding.

Related course access: IoT Security and Privacy — same laboratory, notebook and completion record.

B01 · Academic orientation

Scope and objectives

Scope of the experiment

Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability.

The focus of this experiment is to compute digest links for ordered block records. Students then trace a changed block into subsequent link-verification failures, and verify chain integrity while identifying the need for trusted anchors. 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

  • Compute digest links for ordered block records.
  • Trace a changed block into subsequent link-verification failures.
  • Verify chain integrity while identifying the need for trusted anchors.
  • Identify the configured inputs (Block 0 data; Block 1 data; Block 2 data; Candidate change) 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 compute digest links for ordered block records, trace a changed block into subsequent link-verification failures, and verify chain integrity while identifying the need for trusted anchors.

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 verify chain integrity while identifying the need for trusted anchors. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the following catalogue prerequisites before starting. After completion, continue to B02 · Merkle trees and inclusion proofs.

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.

Understand the experiment

Hash-linked blockchain headers

A successor commits to the previous header hash; the Merkle root commits to transaction data
A successor commits to the previous header hash; the Merkle root commits to transaction data

Scientific architecture · Linked block integrity inspector

Linked block commitment — Block 0 / body → hash H0; Block 1 / prev=H0; Block 2 / prev=H1; Alter body 0 / H0 changes; Check links / old prev mismatch
Scientific concept map: Block body — Transaction data; SHA-256 — Digest calculation; Block header — Previous digest; Next header — Link to predecessor; Integrity — Tamper changes digest.

Scientific foundations and analytical reasoning

A linked ledger stores a previous hash and data commitment. Changing committed bytes changes their digest and invalidates subsequent pointers, but local rehashing is possible.

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.

Scientific theory · Hash-linked ledger invariants

A block commits to its contents and preceding header hash. Verification recomputes hashes from exact bytes and compares links. Modifying an earlier block changes its digest and breaks the following pointer. Recomputing local links is possible; consensus or trusted checkpoints establish which history is accepted.

Worked example and engineering interpretation

For blocks A→B→C, alter B's committed payload and recompute B. C still contains the old digest of B, so its link fails. Rehashing B and C can create a locally consistent alternate history, which is not proof of network acceptance.

Engineering principles · additional worked teaching example

Hash chaining binds a block to a predecessor hash and data. In a three-block ledger, changing block1 changes its recomputed digest and breaks block2's pointer; block0 remains unchanged. Rehashing a suffix is possible without consensus.

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.

How to investigate B01 · Hash functions and linked blocks

Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability.

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: Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability.

  1. Build three blocks and inspect index, exact payload, previous hash and computed digest. Save the trusted tip.
  2. Alter block 0 payload without rehashing. Inspect which local hash fails.
  3. Choose rehash first. Check that block 0 now matches locally while block 1 previous link fails.
  4. Rebuild all links. All local checks pass, but the trusted original tip differs. Explain why a trusted checkpoint/consensus matters.

Reference check: Identical strings yield the same digest and zero changed bits. A changed sample yields a different digest; bit distance is measured, not prescribed.

Model boundary: An unkeyed hash is not a MAC, signature or encryption. SHA-512 and signature examples remain conceptual unless separately executed.

Independent task and submission evidence

2. Alter block 0 payload without rehashing. Inspect which local hash fails. 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.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Block 0 data = sensor=25; Block 1 data = sensor=26; Block 2 data = sensor=27; Candidate change = none. In the classroom model, Valid local blocks = 3; Matches trusted tip = Yes. Local hash and previous-link checks do not replace an externally trusted tip. Actual SHA-256 with teaching JSON encoding; no distributed consensus.

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.

Concept animation · operation pathway

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.

B01 · Hash functions and linked blocks: operation pathwayBlock 0sensor=25 ·a7fe42f1dc8…Block 1sensor=26 ·63fb92465cc…Block 2sensor=27 ·fee0267da8b…Read the active operation, then inspect the accumulated state.

Step 1 of 3 · Block 0

Block 0

Block 0
sensor=25 · a7fe42f1dc8…

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

Recall the concept before revealing its explanation.

0 / 3 revealed
B01 · 01 / 08What is a hash?Reveal explanation
Engineering explanation

A fixed-length digest of bytes; it is not encryption.

B01 · 02 / 08Why include the preceding digest?Reveal explanation
Engineering explanation

It binds each block to the previous block in this teaching encoding.

B01 · 03 / 08Can someone rewrite the entire chain?Reveal explanation
Engineering explanation

Yes, without a trusted checkpoint or consensus. Hash links alone are not consensus.

B01 · 04 / 08What happens to a following block after its predecessor's payload changes?Reveal explanation
Engineering reasoning

Its stored previous hash no longer matches the predecessor's recomputed digest unless the link is updated.

B01 · 05 / 08Why compare a rebuilt chain with a trusted original tip?Reveal explanation
Engineering reasoning

A consistently rehashed chain can still differ from the committed history; local validity is not proof of original history.

B01 · 06 / 08A payload changes in a linked ledger. Select every technically valid statement. A. The recomputed digest differs from the stored digest in the modified teaching case. B. Rehashing the block can invalidate the next stored previous hash. C. Rehashing one block automatically updates all successors. D. A public hash chain alone proves authenticity.Reveal explanation
Applied scenario

Correct: A. The recomputed digest differs from the stored digest in the modified teaching case.; B. Rehashing the block can invalidate the next stored previous hash.

B01 · 07 / 08How do you carry out 3. Rehash the changed block?Reveal explanation
Implementation recall

Select Rehash first block only; then Verify chain.

B01 · 08 / 08For B01 · Hash functions and linked blocks, which actual output or state confirms the prescribed practical run succeeded, and what does it not establish?Reveal explanation
Evidence & acceptance

Use browser model, Build three blocks, verify all true. Modify first payload without rehash: index 0 false, indices 1 and 2 may still have locally consistent links. Rehash first only: index 0 true, index 1 false. A trusted checkpoint or consensus is needed; local hashes alone do not prove immutable history.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research
Loading experiment-specific apparatus…
Previous model / additional reference tools
Simulation task

Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability.

Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.

Interactive engineering workbenchB01 · Existing model

Interactive simulation

The model is an independent teaching abstraction, not Solidity execution or Ethereum consensus. SHA-256 uses actual browser cryptography when available.

Loading executable simulation…

B01 · Model-linked instrumentation

Visual observation lens

Back to controls ↑

Browser ledger / digest abstraction; not EVM transaction execution.

Loading instrument…

Awaiting model display.

Experimental instrumentation · A/B

Compare two model conditions

Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.

Open simulation view
Baseline A
Not captured
Comparison B
Not captured

Capture a baseline to begin.

Evidence portfolio →
V19.0 · Contextual AI workspace

Ask your engineering assistants

B01 · current context

Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.

Dr. Mohammad · offline
Dr. Mohammad

Offline curriculum-grounded assistance.

Open local tutor
B01 · Hash functions and linked blocks

Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.

Prepare a contextual AI prompt

0 characters

Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.

Prepare → review → copy & open your selected provider → paste and submit there.

Run & verify — acceptance checklist

Build verification: Actual SHA-256 and linked-chain model tested.

Use browser model, Build three blocks, verify all true. Modify first payload without rehash: index 0 false, indices 1 and 2 may still have locally consistent links. Rehash first only: index 0 true, index 1 false. A trusted checkpoint or consensus is needed; local hashes alone do not prove immutable history.

Record the actual output, source (mock/model or physical), and any error. A missing tool, timeout or untested external service is not a pass.

Complete lab-by-lab verification report →Open automated verification center → Ask Engineering Copilot →

Independent theoretical exercises

Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.

01 · Predict and derive using the given inputs

Write expressions H0=H(data0,zero), H1=H(data1,H0), H2=H(data2,H1). Mark dependencies after data1 changes.

02 · Compare or justify using evidence

Explain which stored pointers fail before and after rehashing block1; distinguish integrity from distributed consensus.

03 · Diagram interpretation

Diagram interpretation · Independent work

A trusted checkpoint records H3 in a four-block chain. Block1 is altered and blocks1–3 rehashed. Which internal links can be consistent and what external check fails?

Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.

Expanded independent theoretical exercise bank

Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.

Intermediate · Explain a changed-input result

Independent theoretical exercise · B01-01

Use the reference configuration (Block 0 data = sensor=25; Block 1 data = sensor=26; Block 2 data = sensor=27; Candidate change = none), but change Candidate change = alter payload. The model reports Valid local blocks = 2. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.

Intermediate · Quantitative comparison

Independent theoretical exercise · B01-02

Two model observations of Valid local blocks are 3 (reference) and 2 (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.

Intermediate · Interpret a technical trace

Independent theoretical exercise · B01-03

For Candidate change = rehash first, the model supplies this excerpt from Block integrity: Index · Payload · Previous digest · Stored digest · Local check 0 · sensor=25 modified · 0000000000000000000000000000000000000000000000000000000000000000 · 8d5c7d0a08e8122d12fd33093618262a29f97a3352233dbfebbeb39931dc3012 · Yes 1 · sensor=26 · a7fe42f1dc8b22a579a15ae906fc87b2f8280eae483f5f6a280e0f9d617521cd · 63fb92465cc71a2fb67752a9f8567e67a87299f445c69e19a34263ed1f963ea2 · No 2 · sensor=27 · 63fb92465cc71a2fb67752a9f8567e67a87299f445c69e19a34263ed1f963ea2 · fee0267da8b7f30f2b024d8ef28f6788f4c3f23b92f0446852c6fc6d668cf0e1 · Yes Count rows whose Payload value is exactly “sensor=25 modified”, and identify the displayed row numbers. Explain what the count describes.

Advanced · Reverse reasoning

Independent theoretical exercise · B01-04

An observation is Valid local blocks = 2. Candidate A uses Block 0 data = sensor=25; Block 1 data = sensor=26; Block 2 data = sensor=27; Candidate change = none. Candidate B changes the listed settings (Candidate change = rehash first) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.

Advanced · Diagnose a reported mismatch

Independent theoretical exercise · B01-05

A student configures Candidate change = rebuild chain while preserving all other reference settings, but copies the reference report of Matches trusted tip = Yes. Evaluate whether the report is justified. Identify the first configuration/output check to perform.

Challenging · Design a controlled verification

Independent theoretical exercise · B01-06

Design a controlled comparison for B01 · Hash functions and linked blocks using reference Block 0 data = sensor=25; Block 1 data = sensor=26; Block 2 data = sensor=27; Candidate change = none and test Candidate change = alter payload. Specify the changed setting(s), measured metric Valid local blocks, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.

Step-by-step experimental procedure

Demonstrate how data changes affect block hash and links.

1 · Reference workbench configuration

Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.

Block 0 datasensor=25
Block 1 datasensor=26
Block 2 datasensor=27
Candidate changenone

2 · Perform the investigation in order

  1. Build three blocks and inspect index, exact payload, previous hash and computed digest. Save the trusted tip.
  2. Alter block 0 payload without rehashing. Inspect which local hash fails.
  3. Choose rehash first. Check that block 0 now matches locally while block 1 previous link fails.
  4. Rebuild all links. All local checks pass, but the trusted original tip differs. Explain why a trusted checkpoint/consensus matters.

3 · Compare controlled trials

TrialIndependent changeExpected checkObservation
Intact chainUse reference inputs aboveValid local blocks: 3; Matches trusted tip: YesRecord actual result
Alter payloadCandidate change = alter payloadValid local blocks: 2Record actual result
Rehash block 0Candidate change = rehash firstValid local blocks: 2Record actual result
Rebuild allCandidate change = rebuild chainValid local blocks: 3; Matches trusted tip: NoRecord actual result

4 · Analyze and report

Distinguish local integrity from agreement on canonical history.

Required evidence: Three-block table and original/candidate tip comparison.

Model boundary: Actual SHA-256 with teaching JSON encoding; no distributed consensus.

Controlled investigation · reproducible evidence

Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.

TrialIndependent changeDependent observation
Intact chainUse reference inputs aboveRecord actual outcome and units
Alter payloadCandidate change = alter payloadRecord actual outcome and units
Rehash block 0Candidate change = rehash firstRecord actual outcome and units
Rebuild allCandidate change = rebuild chainRecord actual outcome and units

Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.

Loading laboratory-specific procedure…

Python / Google Colab notebook

Original module reference toolkit; genuine SHA-256 and bounded search. Validated locally in a fresh Jupyter kernel. Download, then upload to Google Colab.

Download NotebookOpen Google ColabAll Python notebooks

Independent implementation sequence

  1. 1. Build three blocks
  2. 2. Alter the first record
  3. 3. Rehash the changed block

Complete practical procedure

1. Build three blocks

Enter fictional telemetry and select Build three blocks.

✓ Expected: Three linked blocks appear; all three verification flags are true.

2. Alter the first record

Select Modify first record; then Verify chain.

✓ Expected: The first block fails its digest check. A local link check does not propagate an invalid flag automatically.

3. Rehash the changed block

Select Rehash first block only; then Verify chain.

✓ Expected: Block 0 becomes locally valid, but block 1 fails because its previous digest no longer matches. Explain why a trusted anchor is required.

Experimental notebook

Record your own results. Values are not prefilled or independently verified.

Source & scientific method

Use the fixed JSON array encoding [index,payload,previousDigest]. Ethereum uses a different block format and Keccak-based commitments; SHA-256 here is a general hashing exercise.

Toolkit instructions and references · Download complete blockchain toolkit

Verification, troubleshooting and reflection

Compare each observation with its expected result. If a check fails, identify whether the issue is the environment, contract selection, caller identity, sequence, byte encoding or model setup. Do not infer success from a timeout or a missing receipt. In Remix inspect the compiler errors and revert message; do not bypass the negative control.

Reset the browser model for a fresh run. Resetting Remix VM removes its deployed state. Keep screenshots and receipts before reset. For actual EVM execution, save compiler/fork/settings and transaction receipts. Explain limitations and propose one additional independent test.

Python / Google Colab laboratory

B01 · 8 notebook cells · 2 executable Python cells

Complete the theoretical investigation first. Run the cells in order, record actual outputs and compare against your prediction.

How to execute

  1. Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
  2. Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
  3. Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.

Execution scope: An unkeyed hash is not a MAC, signature or encryption. SHA-512 and signature examples remain conceptual unless separately executed. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.

01Instructions · Markdown
# B01 · B01 · Hash functions and linked blocks **PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh** ## Introduction Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability. ## How to run 1. Download this notebook from the laboratory page. Open Google Colab → File → Upload notebook. 2. Select a Python CPU runtime. Run cells from top to bottom using Shift+Enter, or Runtime → Run all. 3. Read the printed observations and assertions. Change one parameter at a time and rerun the relevant cell. 4. Save your own outputs and compare them to the portal Experiment tab. **Execution boundary:** Original module reference toolkit; genuine SHA-256 and bounded search. Do not run the hardware or service commands in Colab. No real credentials are needed. The notebook is self-contained.
02Instructions · Markdown
## Experiment-specific preparation Construct a SHA-256-linked ledger; detect modified data and explain why hash links alone do not guarantee immutability. **Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):** 1. Build three blocks and inspect index, exact payload, previous hash and computed digest. Save the trusted tip. 2. Alter block 0 payload without rehashing. Inspect which local hash fails. 3. Choose rehash first. Check that block 0 now matches locally while block 1 previous link fails. 4. Rebuild all links. All local checks pass, but the trusted original tip differs. Explain why a trusted checkpoint/consensus matters. **Evidence:** Identical strings yield the same digest and zero changed bits. A changed sample yields a different digest; bit distance is measured, not prescribed. **Boundary:** An unkeyed hash is not a MAC, signature or encryption. SHA-512 and signature examples remain conceptual unless separately executed.
03Instructions · Markdown
## 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implemented, and explain any discrepancy. - Distinguish actual local Python execution from mock, physical and external-service observations. ## 2. Environment check
04Python · executable cell
PYTHON · Code cell
# =====================================================================
# B01 | Code cell 01 | B01 · Hash functions and linked blocks
# Purpose: 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implem
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import sys
print("Python",sys.version.split()[0])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sys.version_info >= (3,10)
Ask Dr. Mohammad about this cell
05Instructions · Markdown
## 3. Implementation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
06Python · executable cell
PYTHON · Code cell
# =====================================================================
# B01 | Code cell 02 | B01 · Hash functions and linked blocks
# Purpose: implement only the mechanism named in this laboratory.
# Inputs: the explicit fictional fixture and reference parameters below.
# Output: printed observations and assertions for the controlled trial.
# =====================================================================
import hashlib,json
# Commit to a canonical representation that includes the preceding block digest.
def block(payload,previous):return hashlib.sha256(json.dumps([payload,previous],separators=(',',':')).encode()).hexdigest()
genesis=block('sensor=25','0'*64);second=block('sensor=26',genesis)
changed=block('sensor=27','0'*64)
print(genesis,second,block('sensor=26',changed));assert second!=block('sensor=26',changed)
Ask Dr. Mohammad about this cell
07Instructions · Markdown
## 4. Results and analysis Record the actual output and whether the assertions pass. Identify a parameter to vary, state your prediction, repeat the reference calculation, then explain the changed result. | Trial | Configuration | Observation | Interpretation | |---|---|---|---| | A | Reference | | | | B | One controlled change | | | | C | Reference repeat | | | **Limitations:** Original module reference toolkit; genuine SHA-256 and bounded search. Notebook success does not certify external equipment or services.
08Instructions · Markdown
## Guided reasoning and evidence A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above. **Independent task:** 2. Alter block 0 payload without rehashing. Inspect which local hash fails. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat. | Trial | Input/configuration | Prediction | Observation | Evidence / limitation | |---|---|---|---|---| | A | Reference | | | | | B | Changed input | | | | | A repeat | Reference | | | | A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.