write
Engine.write_public_key_b(public_key_b, file_path)- Saves the public key b to the specified path.
- Input:
- PublicKeyB
- file_path: str or 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(multiparty=True)
public_key_a = engine.create_public_key_a()
public_key_b = engine.create_public_key_b(secret_key, public_key_a)
engine.write_public_key_b(public_key_b, "/opt/desilo/public_key_b")
Using a relative path