Skip to main content
Distributed Ledger StudioBlockchain for IoTExperimentsWorkspaces
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
BLOCKCHAIN FOR IoT · BC-M13
Blockchain for IoT

Hyperledger: permissioned transactions and world state

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

EndorseOrderValidate
Design experiment & verify evidence →
BC-M13 · 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

Hyperledger Fabric · execute, order, validate

Two proposals read version v4; only the first valid conflicting write can update it
Two proposals read version v4; only the first valid conflicting write can update it

Scientific architecture · Hyperledger Fabric execute–order–validate

Fabric execute–order–validate — Client; Endorsers; Orderer / committers; Proposal / 0>1; Endorsed read/write sets / 1>0; Submit transaction / 0>2; Order and validate MVCC / 2>2; Commit status / 2>0
Scientific concept map: Client proposal — Chaincode invocation; Endorsers — Simulate read/write sets; Orderer — Sequence transactions; Validators — Policy + MVCC check; World state — Apply valid writes.

Scientific foundations and analytical reasoning

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.

Hyperledger: permissioned transactions and world state: independent state notebook12Calculated state 1TxTx1Org AYesOrg BYesRead version4Current before4ValidationVALID

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

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.

  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.

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.

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.

Follow identity, endorsement, ordering and validation using the whitepaper enterprise requirements and an explicitly modern Fabric-style execute-order-validate teaching abstraction.

Learning goals

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

Module flashcards · 12 questions

Browse all 12 questions and explanations
What 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.

BC-M13 engineering diagram
Engineering diagram · BC-M13. Use the interactive workstation to investigate the calculated state.
Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research