import std/sequtils import std/sugar import std/strutils import pkg/poseidon2 import pkg/constantine/math/arithmetic import pkg/constantine/math/io/io_bigints import pkg/constantine/math/io/io_fields import pkg/codex/merkletree import pkg/codex/slots import pkg/codex/slots/types import pkg/codex/utils/json export types func fromCircomData*[H](cellData: seq[byte]): seq[H] = var pos = 0 cellElms: seq[Bn254Fr] while pos < cellData.len: var step = 32 offset = min(pos + step, cellData.len) data = cellData[pos..