I am trying to implement an algorithm that uses ciphertexts with small values, therefore I am using a value of scale \Delta=30 (dcrtBits = 59, firstMod = 30).
My issue is that, when I try to perform EvalBootstrap, the output values of the ciphertext are always equal to 0. This only happens when firstMod = 30, if I use firstMod = 60 it works.
Am I missing something? I did not study the implementation of Bootstrapping in OpenFHE.
It looks like you are not using firstMod and dcrtBits correctly. The scaling factor is given by dcrtBits. So it should be set to 30 (note that I do not recommend setting it to lower than 40 for the scenarios with bootstrapping as the precision will be very low). firstMod should be >= dcrtBits determines the maximum magnitude, e.g., if it is 10 bits larger, the message size can be up to 1024 or so.