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-M05
Blockchain for IoT

Coins, fungible tokens and device NFTs

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

OwnerAsset ruleRecipient
Design experiment & verify evidence →
BC-M05 · 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 · Fungible tokens, device NFTs and wallet derivation

Fungible and nonfungible tokens — Wallet / authorized owner; Fungible balance / interchangeable units; NFT / unique token ID; Transfer / authorization check; Ledger / balances or ownership update
Scientific concept map: Wallet — Account identity; Fungible token — Balance units; NFT — Unique identifier; Transfer — Ownership change; Ledger — Supply / ownership evidence.

Scientific foundations and analytical reasoning

Fungible balances represent interchangeable units; NFTs represent distinct identifiers. Wallet derivation is deterministic for fixed seed and index.

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-M05 · Academic orientation

Scope and objectives

Scope of the experiment

Track a fungible balance and one unique IoT device certificate; distinguish native gas assets, token ownership and wallet control.

The focus of this experiment is to distinguish coins, fungible tokens and non-fungible device identifiers. Students then trace ownership and transfer state under stated rules, and evaluate whether token ownership establishes physical device identity. 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 coins, fungible tokens and non-fungible device identifiers.
  • Trace ownership and transfer state under stated rules.
  • Evaluate whether token ownership establishes physical device identity.
  • Identify the configured inputs (Asset standard model; Operation; Caller; Sender units / token count; Units requested) 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 coins, fungible tokens and non-fungible device identifiers, trace ownership and transfer state under stated rules, and evaluate whether token ownership establishes physical device identity.

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 whether token ownership establishes physical device identity. 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 Blockchain elements: Merkle trees and light clients.

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 · Tokens and wallet identity

A fungible token balance represents interchangeable units; a nonfungible token has a distinct identifier with ownership state. A wallet manages signing keys and derives addresses, not necessarily physical device identity. Deterministic derivation depends on the scheme, seed and path. Protect private keys and treat public demo seeds as test fixtures.

Worked example and engineering interpretation

Transferring three fungible units decreases one balance and increases another; transferring NFT 7 changes its recorded owner, not an interchangeable quantity. Compare authorization and ownership checks in the simulator. Token ownership alone does not prove the physical device exists.

Engineering principles · additional worked teaching example

A fungible token tracks interchangeable balances; an NFT tracks a distinct token identifier and owner. Transferring NFT #7 changes its owner but not ownership of #8; approvals are separate from possession of a private key.

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: Asset standard model = NFT; Operation = transfer; Caller = owner; Sender units / token count = 1; Units requested = 1; Unique asset ID = 17; Teaching wallet derivation = deterministic; Public demo seed = sensor-wallet; Derivation index = 0. In the classroom model, Transfer / mint accepted = Yes; Sender units = 0; Recipient units = 1; Asset type = NFT. Fungible balances conserve units on transfer; minting changes supply. Unique asset ownership is not a second fungible balance. Token state model and actual HMAC-SHA256 demo identifier derivation; not ERC bytecode, BIP32/BIP39 or Ethereum address derivation. No real wallets or keys.

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 · independent state notebook

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.

Coins, fungible tokens and device NFTs: independent state notebook123Calculated state 1AccountOwnerBefore1After0

Step 1 of 3 · Calculated state 1

Calculated state 1

Account
Owner
Before
1
After
0

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

How to investigate Coins, fungible tokens and device NFTs

Track a fungible balance and one unique IoT device certificate; distinguish native gas assets, token ownership and wallet control.

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: Track a fungible balance and one unique IoT device certificate; distinguish native gas assets, token ownership and wallet control.

  1. Start with NFT ID 17, exactly one unit, owner and transfer. Verify the unique owner changes; no second copy is created.
  2. Request two NFT units, then change to fungible with ten units and transfer four. Explain why the balance model differs.
  3. Select mint as viewer; the permissioned teaching token must reject it. Try owner mint with balance zero and amount one.
  4. Change derivation index from 0 to 1, then restore 0. Compare the deterministic identifiers. Switch independent and inspect why repeated runs produce different identifiers.

Reference check: Fungible supply remains 100; overdraw fails. Only current NFT owner can transfer its unique identifier.

Model boundary: No real wallet, keys, tokens, investment or ERC compliance; toy ownership ledger.

Independent task and submission evidence

2. Request two NFT units, then change to fungible with ten units and transfer four. Explain why the balance model differs. 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.

Track a fungible balance and one unique IoT device certificate; distinguish native gas assets, token ownership and wallet control.

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
Coin versus token?

A coin is native to a network; a token is an asset represented on a platform.

What distinguishes an NFT?

A unique non-interchangeable token identifier.

What must a fungible transfer conserve?

Total units, unless an explicit mint or burn rule applies.

What does wallet control establish?

Control over cryptographic authorization, not necessarily legal ownership of a physical asset.

What is ERC-20 generally associated with?

A standard interface for fungible tokens on Ethereum-compatible networks.

What is ERC-721 generally associated with?

A standard interface for unique non-fungible tokens.

What should happen on an overdraw?

Reject the transfer without changing either balance.

Why avoid production wallets in this exercise?

The simulated ownership model needs no real keys or assets.

What is conserved when Alice transfers 20 fungible units?

Total fungible supply of 100 units.

Why does a request for 110 units fail?

The requested amount exceeds the available supply and therefore the sender balance.

What distinguishes a device NFT transfer from a fungible transfer?

The unique identifier changes owner rather than splitting into interchangeable units.

Why test Bob as the NFT sender?

To check whether a caller who is not the current owner is rejected.

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