Fabric executes proposals, orders transactions, validates endorsement and MVCC read versions, then commits valid writes; invalid transactions can remain in the block.
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-M13 · Academic orientation
Scope and objectives
Scope of the experiment
Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.
The focus of this experiment is to distinguish Hyperledger endorsement, ordering, validation and world state. Students then trace a permissioned transaction through its lifecycle, and identify policy and conflict failures under the stated model. 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 Hyperledger endorsement, ordering, validation and world state.
Trace a permissioned transaction through its lifecycle.
Identify policy and conflict failures under the stated model.
Identify the configured inputs (Endorsement policy; Tx1 Org A endorsement; Tx1 Org B endorsement; Tx2 Org A endorsement; Tx2 Org B endorsement) 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 Hyperledger endorsement, ordering, validation and world state, trace a permissioned transaction through its lifecycle, and identify policy and conflict failures under the stated model.
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 identify policy and conflict failures under the stated model. 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 IoT–blockchain integration research: architecture trade-offs.
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 · Fabric execute–order–validate
Fabric endorsers simulate a proposal and produce read/write sets and endorsements; the ordering service establishes sequence. Committing peers verify endorsement policy and read versions using MVCC before applying valid writes. An invalid transaction can remain recorded in the block without changing world state.
Worked example and engineering interpretation
Two proposals read version 0 of the same key. If the first commits a write and increments the version, the second proposal's old read version can fail validation. Examine block order, endorsement and world-state version separately. This is a bounded Fabric model, not an actual peer network.
Engineering principles · additional worked teaching example
Endorsement authorizes a proposed read/write set, ordering establishes sequence, validation checks endorsement and version conflicts. Two proposals reading version 3 cannot both update the same key successfully after the first changes its version.
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: Endorsement policy = AND; Tx1 Org A endorsement = true; Tx1 Org B endorsement = true; Tx2 Org A endorsement = true; Tx2 Org B endorsement = true; Initial world-state version = 4; Tx1 read version = 4; Tx2 read version = 4; Orderer sequence = Tx1 first; Private-data reader = Org A. In the classroom model, Valid transactions = 1; Invalid in block = 1; Final value = 42; Final version = 5; Private value visible = Yes. The orderer determines sequence; validation determines which writes update world state. Deterministic Fabric teaching state machine with declared endorsements and collection membership, not actual chaincode or a running Fabric network.
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 2 · Calculated state 1
Calculated state 1
Tx
Tx1
Org A
Yes
Org B
Yes
Read version
4
Current before
4
Validation
VALID
Version after
5
Value after
42
Calculated state 2
Tx
Tx2
Org A
Yes
Org B
Yes
Read version
4
Current before
5
Validation
MVCC_READ_CONFLICT
Version after
5
Value after
42
Teaching example only; inspect live calculations or real practical evidence separately.
How to investigate Hyperledger: permissioned transactions and world state
Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.
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: Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.
Begin world state value 10/version 4; Tx1 proposes 42 and Tx2 proposes 77, both read v4 and have both endorsements. Order Tx1 first. Verify Tx1 valid, Tx2 MVCC_READ_CONFLICT, final 42/v5.
Reverse order and compare the final value. Explain why invalid transactions can be in the block while not updating world state.
Set Tx1 Org B endorsement false under AND; compare endorsement failure with version conflict. Change policy to OR and repeat.
Set Tx2 read version to 5 with Tx1 first. Both writes should commit, reaching v6. Explain sequential versus concurrent simulation.
Reference check: Only authenticated member, required endorsements and current read version yield valid state update. Ordered invalid transaction remains a history record in the model.
Model boundary: No Fabric binaries, signatures, channels or actual chaincode execution. Modern transaction flow is explicitly supplemental to historical source architecture.
Independent task and submission evidence
2. Reverse order and compare the final value. Explain why invalid transactions can be in the block while not updating world state. 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.
Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.
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 explanationsWhat is chaincode?
Application logic executed within the Fabric context.
What is endorsement?
Required organizations approve a proposed execution result according to policy.
What is ordering?
Establishing transaction order before peer validation.
What does a stale read version cause here?
Invalidation at commit-time; no world-state update.
What is world state?
The current key-value application state, distinct from the transaction history.
Why might an ordered transaction be invalid?
Its endorsement policy or read-version validation can fail.
What is a membership service for?
Managing enrolled identities and authorization in the permissioned environment.
Why not claim this model implements Fabric?
It omits actual peer services, certificate validation, ordering protocol and chaincode execution.
What happens when an outsider submits a transaction?
The identity requirement prevents a valid state update.
Can one endorsement satisfy the modeled two-organization requirement?
No.
Why does a stale read version prevent a valid update?
The version check detects that the transaction read obsolete state.
Can an ordered invalid transaction remain in ledger history?
Yes, without updating world state.
Engineering diagram · BC-M13. Use the interactive workstation to investigate the calculated state.
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
Starting version 4, two endorsed writes both read version 4. Trace Tx1-first and Tx2-first orders and identify which changes state.
Engineering method — Endorsement authorizes a proposed read/write set, ordering establishes sequence, validation checks endorsement and version conflicts. Two proposals reading version 3 cannot both update the same key successfully after the first changes its version. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Repeat with one missing endorsement under AND policy; explain private collection visibility versus the shared hash commitment.
Engineering method — Endorsement authorizes a proposed read/write set, ordering establishes sequence, validation checks endorsement and version conflicts. Two proposals reading version 3 cannot both update the same key successfully after the first changes its version. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Transaction analysis
Transaction analysis · Independent work
TxA and TxB read key k version7 and each meets the endorsement policy. Ordered A then B, both write k. Predict validation outcomes.
Transaction analysis — Endorsement authorizes a proposed read/write set, ordering establishes sequence, validation checks endorsement and version conflicts. Two proposals reading version 3 cannot both update the same key successfully after the first changes its version. 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-M13-01
Use the reference configuration (Endorsement policy = AND; Tx1 Org A endorsement = true; Tx1 Org B endorsement = true; Tx2 Org A endorsement = true; Tx2 Org B endorsement = true; Initial world-state version = 4; Tx1 read version = 4; Tx2 read version = 4; Orderer sequence = Tx1 first; Private-data reader = Org A), but change Tx1 Org A endorsement = false. The model reports Final value = 77. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · BC-M13-02
Two model observations of Final value are 42 (reference) and 77 (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 · BC-M13-03
For Initial world-state version = 6, the model supplies this excerpt from Ordered block and world state:
Tx · Org A · Org B · Read version · Current before · Validation · Version after · Value after
Tx1 · Yes · Yes · 4 · 6 · MVCC_READ_CONFLICT · 6 · 10
Tx2 · Yes · Yes · 4 · 6 · MVCC_READ_CONFLICT · 6 · 10
Count rows whose Org A value is exactly “Yes”, and identify the displayed row numbers. Explain what the count describes.
Advanced · Reverse reasoning
Independent theoretical exercise · BC-M13-04
An observation is Valid transactions = 0. Candidate A uses Endorsement policy = AND; Tx1 Org A endorsement = true; Tx1 Org B endorsement = true; Tx2 Org A endorsement = true; Tx2 Org B endorsement = true; Initial world-state version = 4; Tx1 read version = 4; Tx2 read version = 4; Orderer sequence = Tx1 first; Private-data reader = Org A. Candidate B changes the listed settings (Initial world-state version = 6) 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-M13-05
A student configures Tx1 read version = 6 while preserving all other reference settings, but copies the reference report of Final value = 42. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · BC-M13-06
Design a controlled comparison for Hyperledger: permissioned transactions and world state using reference Endorsement policy = AND; Tx1 Org A endorsement = true; Tx1 Org B endorsement = true; Tx2 Org A endorsement = true; Tx2 Org B endorsement = true; Initial world-state version = 4; Tx1 read version = 4; Tx2 read version = 4; Orderer sequence = Tx1 first; Private-data reader = Org A and test Tx1 Org A endorsement = false. Specify the changed setting(s), measured metric Final value, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Demonstrate Fabric membership, endorsement, ordering, validation, private-data visibility and MVCC conflict handling.
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.
Endorsement policyAND
Tx1 Org A endorsementYes
Tx1 Org B endorsementYes
Tx2 Org A endorsementYes
Tx2 Org B endorsementYes
Initial world-state version4
Tx1 read version4
Tx2 read version4
Orderer sequenceTx1 first
Private-data readerOrg A
2 · Perform the investigation in order
Begin world state value 10/version 4; Tx1 proposes 42 and Tx2 proposes 77, both read v4 and have both endorsements. Order Tx1 first. Verify Tx1 valid, Tx2 MVCC_READ_CONFLICT, final 42/v5.
Reverse order and compare the final value. Explain why invalid transactions can be in the block while not updating world state.
Set Tx1 Org B endorsement false under AND; compare endorsement failure with version conflict. Change policy to OR and repeat.
Set Tx2 read version to 5 with Tx1 first. Both writes should commit, reaching v6. Explain sequential versus concurrent simulation.
Switch private-data reader to Org B and Outsider. Inspect the declared collection visibility versus a public commitment.
Identify peer, endorser, orderer, MSP, chaincode and channel responsibilities in the diagram.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Concurrent version conflict
Use reference inputs above
Valid transactions: 1; Final value: 42; Final version: 5
Record actual result
Reverse order
Orderer sequence = Tx2 first
Final value: 77
Record actual result
Tx1 missing endorsement
Tx1 Org B endorsement = No
Final value: 77
Record actual result
OR policy
Endorsement policy = OR; Tx1 Org B endorsement = No
Final value: 42
Record actual result
Fresh second version
Tx2 read version = 5
Valid transactions: 2; Final version: 6
Record actual result
4 · Analyze and report
Explain why execute–order–validate differs from executing every transaction after ordering, and why permissioning alone does not guarantee data privacy.
Required evidence: Ordered validation table, world-state history and private-data access analysis.
Model boundary: Deterministic Fabric teaching state machine with declared endorsements and collection membership, not actual chaincode or a running Fabric network.
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
Concurrent version conflict
Use reference inputs above
Record actual outcome and units
Reverse order
Orderer sequence = Tx2 first
Record actual outcome and units
Tx1 missing endorsement
Tx1 Org B endorsement = No
Record actual outcome and units
OR policy
Endorsement policy = OR; Tx1 Org B endorsement = No
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 Fabric binaries, signatures, channels or actual chaincode execution. Modern transaction flow is explicitly supplemental to historical source architecture. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# BC-M13 · Hyperledger: permissioned transactions and world state
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Demonstrate Fabric membership, endorsement, ordering, validation, private-data visibility and MVCC conflict handling.
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
Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. Begin world state value 10/version 4; Tx1 proposes 42 and Tx2 proposes 77, both read v4 and have both endorsements. Order Tx1 first. Verify Tx1 valid, Tx2 MVCC_READ_CONFLICT, final 42/v5.
2. Reverse order and compare the final value. Explain why invalid transactions can be in the block while not updating world state.
3. Set Tx1 Org B endorsement false under AND; compare endorsement failure with version conflict. Change policy to OR and repeat.
4. Set Tx2 read version to 5 with Tx1 first. Both writes should commit, reaching v6. Explain sequential versus concurrent simulation.
5. Switch private-data reader to Org B and Outsider. Inspect the declared collection visibility versus a public commitment.
**Evidence:** Only authenticated member, required endorsements and current read version yield valid state update. Ordered invalid transaction remains a history record in the model.
**Boundary:** No Fabric binaries, signatures, channels or actual chaincode execution. Modern transaction flow is explicitly supplemental to historical source architecture.
03Instructions · Markdown
## 2. Reference configuration and investigation
1. Begin world state value 10/version 4; Tx1 proposes 42 and Tx2 proposes 77, both read v4 and have both endorsements. Order Tx1 first. Verify Tx1 valid, Tx2 MVCC_READ_CONFLICT, final 42/v5.
2. Reverse order and compare the final value. Explain why invalid transactions can be in the block while not updating world state.
3. Set Tx1 Org B endorsement false under AND; compare endorsement failure with version conflict. Change policy to OR and repeat.
4. Set Tx2 read version to 5 with Tx1 first. Both writes should commit, reaching v6. Explain sequential versus concurrent simulation.
5. Switch private-data reader to Org B and Outsider. Inspect the declared collection visibility versus a public commitment.
6. Identify peer, endorser, orderer, MSP, chaincode and channel responsibilities in the diagram.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Validate two conflicting endorsed read/write sets.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M13 | Code cell 01 | Hyperledger: permissioned transactions and world state
# Purpose: 3. Validate two conflicting endorsed read/write sets.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Define the reusable operation commit; keep its logic separate from the trial.
def commit(order):
value,version=10,4; results=[]
for new,read,endorse in order:
ok=endorse>=2 and read==version
if ok:value=new;version+=1
results.append(ok)
return value,version,results
# Set a for the next computation or reference condition.
a=(42,4,2);b=(77,4,2)
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert commit([a,b])==(42,5,[True,False])
## 4. Reverse ordering and test insufficient endorsement.
07Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M13 | Code cell 02 | Hyperledger: permissioned transactions and world state
# Purpose: 4. Reverse ordering and test insufficient endorsement.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert commit([b,a])==(77,5,[True,False])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert commit([(42,4,1)])==(10,4,[False])
## 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. Reverse order and compare the final value. Explain why invalid transactions can be in the block while not updating world state. 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.
What is chaincode?
Application logic executed within the Fabric context.
What is endorsement?
Required organizations approve a proposed execution result according to policy.
What is ordering?
Establishing transaction order before peer validation.
What does a stale read version cause here?
Invalidation at commit-time; no world-state update.
Applied task
Reduce endorsements to one. Compare proposal rejection.
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-M13 · Hyperledger: permissioned transactions and world state. My task: Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.. Acceptance: Only authenticated member, required endorsements and current read version yield valid state update. Ordered invalid transaction remains a history record in the model.. Model boundary: No Fabric binaries, signatures, channels or actual chaincode execution. Modern transaction flow is explicitly supplemental to historical source architecture.. 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