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