mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
In the JS ShortintParametersName, users could make typo in the variant used e.g: `ShortintParametersName.PARAM_MESSAGE_2_CARRY128` In JS this returns `undefined` which is then later casted to an int and it becomes 0, leading to match the first variant We modify the input to receive an `Option<ShortintParametersName>` as it seems to allow us to catch the `undefined` and return a proper error