Hashing a block

Before a block can be finalized, meaning creating the block and its header structure, designated participants (sometimes called miners, forgers, or endorsers) in the peer-to-peer network need to approve the transactions, for example, by solving a mathematical problem in the case of Bitcoin. This answer, an arbitrary integer called a nonce, is then distributed to other participants that validate the answer. To understand the nonce, let's look at the following example. Let's say that we have a JSON payload of a transport order:

{    "transportOrder": {        "shippingDate": "2017-7-31T18:00:34.011Z",        "originWarehouse": 12,        "destStore": 3,        "products": [{                "eanCode": "8806088280486",                "productName": "Samsung UE40K5600", "productCode": "UE40K5600AWXXN", ...

Get Blockchain across Oracle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.