# # generate the input data for the proof # see `json.nim` to export it in Snarkjs-compatible format # import sugar import std/sequtils import blocks import slot import sample import merkle import types #------------------------------------------------------------------------------- proc generateProofInput*( cfg: SlotConfig, entropy: Entropy ): SlotProofInput = let ncells = cfg.nCells let nblocks = ncells div cellsPerBlock assert( nblocks * cellsPerBlock == ncells ) let blocks : seq[Block] = collect( newSeq, (for i in 0..