Skip to content
All apps

Blockchain traceability

About this app

An interactive 3D hash chain along a coffee supply chain (farm → processing → warehouse → retail): click and tamper with blocks — the hash changes immediately and all subsequent blocks visibly break. Re-validating the chain shows the necessary recomputation of all subsequent blocks; a smart contract automatically triggers an animated payment token flow to the farm on valid goods receipt.

The basics

A blockchain links records through hash values. Each block holds its data, its own hash and the hash of its predecessor. A hash is a fingerprint of the data: the smallest change produces a completely different value, and the reference in the next block no longer matches. In a supply chain this makes it possible to trace a product from station to station, to verify certificates and to let a smart contract release a payment automatically once a condition written in code is met. In real networks, tampering would require recomputing all later blocks against the majority of participants.

What the app shows

A coffee supply chain with four stations, farm, processing, warehouse and retail, writes one block each with quantity, date and certificate. In 3D the blocks appear with hash and previous hash as a linked chain. Edit a field and the hash changes instantly, and every later block visibly breaks. “Revalidate chain” recomputes the following blocks one after another. A smart contract panel checks at goods receipt in retail whether the chain is valid and at least 800 kg have arrived, then sends payment tokens back to the farm. For teaching purposes the app uses a small FNV hash.

Try it yourself

Click the processing block and change the quantity: the hash jumps and the chain breaks from that point. Now confirm goods receipt; the smart contract rejects the payment. Revalidate the chain and try again, or set the quantity below 800 kg to see which condition fails. The use cases panel describes traceability, certificate verification and disintermediation. “Restore original” returns everything to the starting state.

Frequently asked questions

How does blockchain work in supply chains?
Each station writes a block with its data, such as quantity, date and certificate, plus the hash of the previous block. This forms a chain in which any later change stands out because the hashes no longer match. The origin of a product can thus be traced without gaps.
Why is a blockchain hard to alter?
Changing data in a block changes its hash, so every following block points to a wrong predecessor. Hiding this would mean recomputing all later blocks. In a distributed network that has to be done against the majority of participants, which makes it very costly.
What is a smart contract?
A smart contract is a program stored on the blockchain that runs an action automatically once defined conditions are met. In a supply chain this might be a payment to the supplier as soon as goods receipt is confirmed.
Which hash function does the app use?
For illustration the app uses a small FNV hash over a single chain. Real blockchains use cryptographic hash functions such as SHA-256 and a distributed network.

Subject: Logistics & Supply Chain

More from Logistics & Supply Chain

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps