Metaparts
Journal index
Editorial independence

Metaparts is an independent educational publication operated by DİNCER MEDYA STÜDYOSU ANONİM ŞİRKETİ. It has no affiliation, partnership, endorsement, sponsorship, or representative relationship with NIST, Hyperledger Fabric, Ethereum, or the other projects cited here.

Foundations

Blockchain Security Guide for Beginners

Author
RIZA ARSLAN
Published
Reading time
10 min

A laboratory records that it transferred an instrument on Tuesday. The research station that received it records Wednesday. Could both dates be correct? The distinction matters in blockchain security because a network records only the evidence submitted to it. Following the dispatch note, the station’s acknowledgment, and the accepted ledger entry shows which question each date can answer.

Consider a mobile spectrometer, an instrument that measures light, identified here as R17. The laboratory and the station keep their own inventories. They also maintain a joint register of custody. This is a worked example. The register’s rules are specified below so that each conclusion can be checked against them.

What does the register actually record?

A ledger records statements about an object. The spectrometer stays in a carrying case. Its ledger entry contains a serial identifier, the organization responsible for it, and the reference to its most recent handover. Opening the case answers a question about the instrument’s physical whereabouts. Reading the entry answers a question about recorded responsibility. Those answers often agree, but each comes from a different observation.

A transaction is an instruction submitted to change the register. A block groups instructions in an order that participants can check. A node is a computer running the network software. A validating node applies the network’s rules to decide whether it can accept a block. This lets an organization check a history that it received from another participant. The checks and the conditions under which participants can agree vary by network. National Institute of Standards and Technology, Blockchain Technology Overview.

The joint register has two useful views. Its current state answers “Who is responsible for R17 now?” Its history answers “How did responsibility pass to that organization?” A printed inventory that shows only the current value loses the intermediate steps. A transaction list that omits the rules for interpreting each entry leaves a reader to guess which steps took effect. Hyperledger Fabric explicitly distinguishes the current state from the chain of transactions that produced it. Hyperledger Fabric, Ledger.

How does a reader recognize the exact handover document?

A handover can refer to a document by its digest, a value calculated from the document’s bytes with a named hash function. A reader with a candidate document can run the same calculation and compare the full results. This works even if two copies have different filenames. Conversely, two files named “handover” can contain different bytes.

Here is a small comparison with a reproducible result. In UTF-8, the text R17 occupies three bytes. Its SHA-256 digest begins with b8c94a38f7c8. Adding one line-feed byte after the 7 produces four bytes and a digest beginning with d94328d9c352. Both versions can look like a single line of text in an editor. These short prefixes illustrate the difference. The register would store and compare the full digest.

A useful handover record therefore identifies the hash function and exactly what was measured. A digest of a PDF covers the PDF file, including information that may be invisible on the printed page. A digest of the text extracted from that PDF covers the result of extraction. If the laboratory measured the former and the station measured the latter, the comparison has no common input. Establishing the input resolves that discrepancy before anyone interprets it as a change in the document’s meaning.

Hashes also link blocks. A reference in a later block commits it to a particular predecessor. A change to the predecessor’s bytes alters the reference a reader would calculate. Detecting that change is a local calculation. Choosing between two internally consistent candidate histories requires the network’s agreement rules.

Can a reader check one entry without holding the entire block?

Some block formats combine transaction identifiers in pairs, hash each pair, and repeat until a single value remains. The result, called a Merkle root, summarizes an ordered set of entries. For a tree with four entries, a reader checking the first entry needs the second entry’s hash and the combined hash for the third and fourth entries. With their positions and the network’s hashing rules, the reader can reproduce the root and compare it with the one in the block header. Block structure reference, Merkle trees.

That small proof answers a narrow question efficiently. It connects a particular entry to a particular header. The reader still needs a basis for accepting that header as part of the network’s history. The proof also says nothing about the latest custodian. A later entry could have transferred R17 again. Evidence that a handover appeared in a block and evidence of who holds the instrument today belong in different rows of an inventory report.

Who had authority to record the handover?

A signature lets a verifier check that particular data were signed under a particular key. The collection’s policy supplies the missing institutional fact. It designates which signing identities may speak for the laboratory and which may acknowledge receipt for the station. A person’s name printed at the bottom of a document does not by itself establish that designation.

Suppose the register accepts a completed transfer only when both organizations endorse it. The laboratory can issue a dispatch note alone. The station can record an arrival in its local inventory alone. Under the joint policy, neither action is sufficient to transfer responsibility in the shared register. This arrangement makes each institution answerable for a distinct observation. It also means a temporary absence at one office can delay a valid handover.

Authority can change while older signatures remain mathematically verifiable. If a new instrument custodian takes office on Thursday, evaluating Tuesday’s entry requires knowing the policy and identity assignments that applied on Tuesday. Looking up today’s custodian and comparing names would answer a different question. Fabric calls the requirement specifying which organizations must endorse a transaction an endorsement policy. In Fabric, peers endorse the proposed result of executing an instruction. The station’s signed acknowledgment of physical receipt is a separate piece of evidence that an application can require. Hyperledger Fabric, Endorsement Policies.

Why can two well-formed changes give different results?

Order matters whenever a change depends on an earlier value. Imagine that R17 is assigned to the laboratory at revision 6. Two clerks read that revision. One prepares a transfer to the station. The other corrects the instrument’s storage location within the laboratory. Both clerks have appropriate roles. Both documents are complete.

  1. At preparation. Each proposal refers to revision 6. Evaluated separately against that starting point, each could succeed.
  2. At ordering. The proposed transfer comes first. Its required endorsements are present, and revision 6 still matches. The register applies the transfer and records revision 7.
  3. At validation of the correction. The correction still relies on revision 6. Applying it now would carry an observation about the laboratory’s storage location into a record assigned to the station. The version check prevents the correction from changing the current state.

Fabric illustrates an important detail of this sequence. A peer can commit a block containing an instruction marked invalid. The invalid instruction remains available for inspection, and its proposed changes do not update the current state. A report counting all instructions in a block could therefore count two items here. A report counting successful changes to R17 would count one. Both totals can be accurately calculated, but only the second answers the inventory question. Hyperledger Fabric, Transaction Flow.

When is there a settled order to read?

“Submitted” means an instruction was sent. “Included” identifies a block containing it. “Finalized” describes a settlement condition under the network’s consensus rules. A transaction reference can exist before the network has included the instruction. A receipt associated with a block supplies more information, including the particular block observed. Reading the execution result remains a separate step.

On Ethereum, validators vote on checkpoints. Under its proof-of-stake rules, sufficient agreement can finalize a checkpoint and the history leading to it. In an open network this agreement depends on protocol-defined voting weight. Counting the number of computer screens displaying the same block tells a reader little about that condition. The Fabric handover above uses a different transaction and ordering model. Ethereum’s checkpoint terminology belongs to the Ethereum example. Ethereum, Proof-of-Stake and Finality.

For a historical comparison, the useful reference is the network and the particular block, together with its settlement status when the observation was made. Height is a block’s position in a chain. Two candidate blocks can occupy the same height before their competing histories are resolved. A block hash distinguishes those candidates. A statement such as “R17 was assigned to the station when we consulted the register” is much easier to examine when the reader knows which history and position the statement describes.

Who can read the evidence, and will it still be available?

Agreement about a record, access to its contents, and the ability to retrieve a copy are three separate properties. The joint register might make custody visible to every member while sharing the detailed calibration sheet only between the laboratory and the station. Another member could then see that a reference was recorded and still lack the sheet needed to inspect the measurements.

Fabric’s private data collections are a concrete design for this division. Selected organizations receive the private data. Other peers on the same channel can retain a hash as part of their ledger. A member later given the original data can compare them with the recorded hash. The hash alone cannot recreate a lost calibration sheet. Nor does recording a hash automatically keep a predictable value confidential. A short value drawn from a small set offers little secrecy simply because its digest is published. Hyperledger Fabric, Private Data.

Availability matters even when every past entry is intact. A reader may possess Tuesday’s register and be able to verify it while Wednesday’s handover remains unrecorded because a required endorser is unavailable. The reader has a sound answer to a historical question and incomplete evidence about present custody. Reporting the last observed revision makes that distinction visible.

How should the two dates be explained?

Return to the original disagreement. On Tuesday the laboratory signed the dispatch note. On Wednesday the station inspected the serial plate and acknowledged receipt. Later that day the joint register accepted the change of custodian. The first date describes departure, the second describes arrival, and the ledger fixes the order of accepted instructions. None of these observations requires treating the block’s timestamp as the time a person opened the case.

Now suppose the station discovers that the joint entry refers to the carrying case’s inventory number. A correction can identify the earlier entry, supply the instrument’s serial number, and record who authorized the amendment. An inventory compiled after the correction should use the amended value. An account of what the station knew on Wednesday should retain the earlier reference. Overwriting the original entry in an exported spreadsheet would erase the very fact that explains why the two reports differ.

A defensible custody statement can now be quite short. The named institutions authorized a change for R17 under the applicable rule. The change took effect at an identifiable point in their shared register. A retained handover document matches the recorded digest. The serial-plate inspection supplies the physical link between that document and the instrument. Each sentence has evidence of its own, and another reader can identify exactly which sentence needs revisiting if new evidence appears.