Spark on-chain data

Created byJulian Gruber
Created time
Last edited byJulian Gruber
Last edited time
Tags

What to store on chain

We write one update per day to the smart contract.

Commitments

  • Commitment = CID: 59 bytes string (or byte array)
  • CID can be addressed by
    • Array index
      • uint8: 256 days
      • uint16: 179 years
      • uint32: enough
    • Map key (date YYYYMMDD)

Raw data