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

C3 Main Block Specification

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

The main blockchain of C3 consists of a collection of various state blocks as well as some meta information

{
  "blockHash": "{hash}",
  "blockNumber": "0x0", // block numbers are zero-indexed
  "blockTime": "0x1", // unix timestamp
  "imageHash": "0xc672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a", // note: this is the image hash of nil
  "stateBlocksMerkleHash": "{hash}" // merkle tree root hash of the state blocks included in this block
  "previousBlockHash": "{hash}",
  "nonce": "0x1",
  "difficulty": "0x4",
  "minerAddress": "{publicAddress}", // the hexEncoded public key bytes of the miner
  "sig": {
    "r": "{hexString}",
    "s": "{hexString}",
  } // sig is the signed blockHash; signed with the miner's private key
}
Clone this wiki locally