# # 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 dataset import sample import merkle import types #------------------------------------------------------------------------------- proc buildSlotTreeFull( slotCfg: SlotConfig ): (seq[MerkleTree], MerkleTree) = let ncells = slotCfg.nCells let nblocks = ncells div cellsPerBlock assert( nblocks * cellsPerBlock == ncells ) let blocks : seq[Block] = collect( newSeq, (for i in 0..