import std/sequtils import std/sugar import std/strutils import std/options import pkg/poseidon2 import pkg/poseidon2/io 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*(_: type Poseidon2Hash, cellData: seq[byte]): seq[Poseidon2Hash] = var pos = 0 cellElms: seq[Bn254Fr] while pos < cellData.len: var step = 32 offset = min(pos + step, cellData.len) data = cellData[pos..