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.
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.
Step 1 of 3 · Calculated state 1
Calculated state 1
Account
Owner
Before
1
After
0
Calculated state 2
Account
Recipient
Before
0
After
1
Calculated state 3
Account
Total modeled units
Before
1
After
1
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.
Start with NFT ID 17, exactly one unit, owner and transfer. Verify the unique owner changes; no second copy is created.
Request two NFT units, then change to fungible with ten units and transfer four. Explain why the balance model differs.
Select mint as viewer; the permissioned teaching token must reject it. Try owner mint with balance zero and amount one.
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.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
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
Explain the mechanism using the actual intermediate states in this experiment.
Predict and verify the reference and modified conditions described below.
Interpret the acceptance criteria and identify the limits of the model.
Module flashcards · 12 questions
Browse all 12 questions and explanationsCoin 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.
Loading experiment-specific apparatus…Previous model / additional reference tools
Loading computational workbench…
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
Trace transfer of one token ID 17, owner→recipient, then repeat the same transfer. Compare with transfer of 3 fungible units from balance 5.
Engineering method — 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. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Explain why public demo seeds cannot protect real assets; distinguish ownership checks from the derivation of an address.
Engineering method — 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. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Design reasoning
Design reasoning · Independent work
Alice holds tokens #7 and #8. Bob is approved only for #7. Bob requests transfer of #8 to himself, then #7. Predict the owner map if both calls are attempted.
Design reasoning — 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. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
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 · BC-M05-01
Use the 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), but change Asset standard model = fungible. The model reports Asset type = fungible. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Interpret a state transition
Independent theoretical exercise · BC-M05-02
The reference model reports Asset type: NFT. Under Asset standard model = fungible it reports fungible. Explain which configured condition changed and what the two outputs establish, and what they do not establish.
Intermediate · Interpret a technical trace
Independent theoretical exercise · BC-M05-03
For Operation = mint, the model supplies this excerpt from Token state:
Account · Before · After
Owner · 1 · 1
Recipient · 0 · 0
Total modeled units · 1 · 1
Compute the range (maximum minus minimum) of the Before column in these rows. Identify the maximum observation. Do not extrapolate beyond these rows.
Advanced · Reverse reasoning
Independent theoretical exercise · BC-M05-04
An observation is Transfer / mint accepted = No. Candidate A uses 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. Candidate B changes the listed settings (Operation = mint) 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 · BC-M05-05
A student configures Caller = viewer while preserving all other reference settings, but copies the reference report of Transfer / mint accepted = Yes. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · BC-M05-06
Design a controlled comparison for Coins, fungible tokens and device NFTs using reference 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 and test Asset standard model = fungible. Specify the changed setting(s), measured metric Asset type, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
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.
Asset standard modelNFT
Operationtransfer
Callerowner
Sender units / token count1
Units requested1
Unique asset ID17
Teaching wallet derivationdeterministic
Public demo seedsensor-wallet
Derivation index0
2 · Perform the investigation in order
Start with NFT ID 17, exactly one unit, owner and transfer. Verify the unique owner changes; no second copy is created.
Request two NFT units, then change to fungible with ten units and transfer four. Explain why the balance model differs.
Select mint as viewer; the permissioned teaching token must reject it. Try owner mint with balance zero and amount one.
Change derivation index from 0 to 1, then restore 0. Compare the deterministic identifiers. Switch independent and inspect why repeated runs produce different identifiers.
Connect the concepts to ERC-20, ERC-721 and ERC-1155 roles, and distinguish a native coin from a token.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
NFT transfer
Use reference inputs above
Transfer / mint accepted: Yes; Recipient units: 1
Record actual result
NFT multiple units
Units requested = 2; Sender units / token count = 2
Transfer / mint accepted: No
Record actual result
Fungible transfer
Asset standard model = fungible; Sender units / token count = 10; Units requested = 4
Sender units: 6
Record actual result
Unauthorized mint
Caller = viewer; Operation = mint
Transfer / mint accepted: No
Record actual result
New wallet index
Derivation index = 1
Transfer / mint accepted: Yes
Record actual result
4 · Analyze and report
Why are wallet identifiers not device certificates, and why should a public or memorable teaching seed never secure real assets?
Required evidence: Ownership and balance table, authorization failures and identifier comparisons.
Model boundary: Token state model and actual HMAC-SHA256 demo identifier derivation; not ERC bytecode, BIP32/BIP39 or Ethereum address derivation. No real wallets or keys.
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.
Trial
Independent change
Dependent observation
NFT transfer
Use reference inputs above
Record actual outcome and units
NFT multiple units
Units requested = 2; Sender units / token count = 2
Record actual outcome and units
Fungible transfer
Asset standard model = fungible; Sender units / token count = 10; Units requested = 4
Record actual outcome and units
Unauthorized mint
Caller = viewer; Operation = mint
Record 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.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: No real wallet, keys, tokens, investment or ERC compliance; toy ownership ledger. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# BC-M05 · Coins, fungible tokens and device NFTs
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Compare divisible token balances, unique device ownership and wallet identifier derivation.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Track a fungible balance and one unique IoT device certificate; distinguish native gas assets, token ownership and wallet control.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
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.
5. Connect the concepts to ERC-20, ERC-721 and ERC-1155 roles, and distinguish a native coin from a token.
**Evidence:** Fungible supply remains 100; overdraw fails. Only current NFT owner can transfer its unique identifier.
**Boundary:** No real wallet, keys, tokens, investment or ERC compliance; toy ownership ledger.
03Instructions · Markdown
## 2. Reference configuration and investigation
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.
5. Connect the concepts to ERC-20, ERC-721 and ERC-1155 roles, and distinguish a native coin from a token.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Represent one unique token and a fungible balance.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M05 | Code cell 01 | Coins, fungible tokens and device NFTs
# Purpose: 3. Represent one unique token and a fungible balance.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set owner for the next computation or reference condition.
owner="Alice"; token=17
# Define the reusable operation transfer nft; keep its logic separate from the trial.
def transfer_nft(sender,recipient,count):
return recipient if sender==owner and count==1 else owner
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert transfer_nft("Alice","Bob",1)=="Bob"
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert transfer_nft("Alice","Bob",2)=="Alice"
# =====================================================================
# BC-M05 | Code cell 02 | Coins, fungible tokens and device NFTs
# Purpose: 4. Compare fungible balances.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set (a, b) for the next computation or reference condition.
a,b=10,0; amount=4
a-=amount;b+=amount
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert a+b==10
print(a,b)
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
09Instructions · 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. 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.
| 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.
Formative assessment
Explain the following without looking at the simulation output, then reveal the reference response.
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.
Applied task
Try transferring 110 units. Verify no partial update.
Submit your reference and modified observations with a justification.
The original tutor and adaptive examination retain their existing 102-lab catalogue. Use the module-specific study questions above and copy this contextual prompt into your chosen AI assistant if needed.
Explain the engineering mechanism in BC-M05 · Coins, fungible tokens and device NFTs. My task: Track a fungible balance and one unique IoT device certificate; distinguish native gas assets, token ownership and wallet control.. Acceptance: 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.. Ask me for my actual observations and distinguish model predictions from real measurements.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research