write

Engine.write_bootstrap_key(bootstrap_key, filename)
Saves the bootstrap key to the specified path.
  • Input:
    • BootstrapKey
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • None

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(for_bootstrap=True)
secret_key = engine.create_secret_key()
bootstrap_key = engine.create_bootstrap_key(secret_key)
engine.write(bootstrap_key, "/opt/desilo/bootstrap_key")

Using a relative path

from desilofhe import Engine

engine = Engine(for_bootstrap=True)
secret_key = engine.create_secret_key()
bootstrap_key = engine.create_bootstrap_key(secret_key)
engine.write(bootstrap_key, "bootstrap_key")