import ../contracts/requests import std/bitops import std/sugar import pkg/constantine/math/arithmetic import pkg/poseidon2/types import pkg/poseidon2 import misc type DSFieldElement* = F DSCellIndex* = uint64 const # Size of a cell. # A cell is a sample of storage-data selected for proving. CellSize* = u256(2048) func extractLowBits*[n: static int](A: BigInt[n], k: int): uint64 = assert(k > 0 and k <= 64) var r: uint64 = 0 for i in 0..