serialize

Engine.serialize_fixed_rotation_key(fixed_rotation_key)
Serializes a fixed rotation key.
  • Input:
    • FixedRotationKey
  • Output:
    • bytearray

Examples

from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
fixed_rotation_key = engine.create_fixed_rotation_key(secret_key, delta=1)
serialized_fixed_rotation_key = engine.serialize_fixed_rotation_key(
    fixed_rotation_key
)