Function lbcrypto::SelectLayers

Function Documentation

std::vector<uint32_t> lbcrypto::SelectLayers(uint32_t logSlots, uint32_t budget = 4)

Computes parameters to ensure the encoding and decoding computations take exactly the specified number of levels. More specifically, it returns a vector than contains layers (the number of layers to collapse in one level), rows (how many such levels), rem (the number of layers remaining to be collapsed in one level)

Parameters
  • logSlots – the base 2 logarithm of the number of slots.

  • budget – the allocated level budget for the computation.