import ../contracts/requests import ../blocktype as bt import ../merkletree import std/bitops import std/sugar import pkg/chronicles import pkg/questionable import pkg/questionable/results import pkg/constantine/math/arithmetic import pkg/poseidon2/types import pkg/poseidon2 import misc const # Size of a cell. # A cell is a sample of storage-data selected for proving. CellSize* = 2048.uint64 type DSFieldElement* = F DSCellIndex* = uint64 DSCell* = seq[byte] 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..