write

Engine.write_bootstrap_key(bootstrap_key, file_path)
지정된 경로에 부트스트랩 키를 저장합니다.
  • 인풋:
    • BootstrapKey
    • file_path: str 혹은 pathlib.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, "/opt/desilo/bootstrap_key")

상대 경로

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, "bootstrap_key")