create_bootstrap_key
Engine.create_bootstrap_key(secret_key, stage_count)
- Creates a bootstrap key for bootstrapping. Requires a secret key. The bootstrap key is internally composed of fixed rotation keys for bootstrapping.
- Input
- SecretKey
- stage_count: optional
- Specifies the number of levels used in coefficient to the slot function and the slot to coefficient function of bootstrapping algorithm. The default value is 3, and recommended values are from 3 to 5. The larger the stage count, the faster the bootstrapping, but the lower the level of the final result.
- Output
from desilofhe import Engine
engine = Engine(for_bootstrap=True)
secret_key = engine.create_secret_key()
bootstrap_key = engine.create_bootstrap_key(secret_key)
stage_count_5_bootstrap_key = engine.create_bootstrap_key(secret_key, stage_count=5)