📦 Block

The basic piece of a Blockchain

The basic content of a block consists on minimal information about when (timestamp) the block was created, who created it (by) and the content of the block (body).

block = {
  prevHash: "Previous block's hash",
  height: "Previous block's height",
  version: "2", // block version, currently 2
  data: "Block content",
  timestamp: "Block time",
  scope: "Scope for the block",
  by: "User or entity that created the block",
};

The prevHash and height refers to the previous block's hash, this is required to ensure the order of the chain is preserved and the new block is the correct one.

Each scope is an isolated space with it's own hash and height sequence.

Last updated