write
Engine.write_small_bootstrap_key(small_bootstrap_key, file_path)- Saves the small bootstrap key to the specified path.
- Input:
SmallBootstrapKey- file_path:
str | pathlib.Path- Can be an absolute or relative path.
- Output:
None
Warning
- The matrix form does not yet support this operation.
Examples
Using an absolute path
from desilofhe import Engine
engine = Engine(bootstrap=True)
secret_key = engine.create_secret_key()
small_bootstrap_key = engine.create_small_bootstrap_key(secret_key)
engine.write_small_bootstrap_key(
small_bootstrap_key, "/opt/desilo/small_bootstrap_key"
)
Using a relative path