Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

C3 State Block Specification

Adam Hanna edited this page Jul 10, 2018 · 30 revisions

State blocks are blocks associated with an image hash. The corresponding "chain of state blocks" can be seen as itself a blockchain associated with an image hash.

State Block

{
  "blockHash": "{hash}",
  "blockNumber": "0x0", // blocks are zero-indexed
  "blockTime": "0x1", // unix timestamp
  "imageHash": "{hash}",
  "txHash": "{hash}", // hash of the transaction that was applied to current the previous state (Sn-1)
  "prevBlockHash": "{hash}",
  "statePrevDiffHash": "{hash}", // hash of the diff of Sn to the previous state (Sn-1)
  "stateHash": "{hash}" // hash of Sn
}

Discussion

Data storage

You'll note that we only include the hashes for data including the tx's, state, state diffs, etc. This is because the data themselves will be stored in the storage layer (IPFS et al) of the blockchain.