Mavryk_crypto_dal.Parameters_check
Number of bytes fitting in a Scalar.t. Since scalars are integer modulo r~2^255, we restrict ourselves to 248-bit integers (31 bytes).
The page size is a power of two and thus not a multiple of scalar_bytes_amount
, hence the + 1 to account for the remainder of the division.
for a given size
(in bytes), return the length of the corresponding domain
slot_as_polynomial_length ~slot_size ~page_size
returns the length of the polynomial of maximal degree representing a slot of size slot_size
with slot_size / page_size
pages (page_size must divides slot_size). The returned length thus depends on the number of pages.