create_multiparty_fixed_rotation_key
Engine.create_multiparty_fixed_rotation_key(individual_fixed_rotation_keys, level)- Creates a common fixed rotation key used for fixed rotation in multiparty computation. Requires an array of individual fixed_rotation keys as input.
- Input:
- individual_fixed_rotation_keys:
list[FixedRotationKey] - level:
int, optional- Creates the key with a reduced size to contain only the specified multiplication levels.
- individual_fixed_rotation_keys:
- Output:
FixedRotationKey
Warning
- The matrix form does not support this operation.
from desilofhe import Engine
engine = Engine(multiparty=True)
secret_key1 = engine.create_secret_key()
secret_key2 = engine.create_secret_key()
public_key_a = engine.create_public_key_a()
public_key_b1 = engine.create_public_key_b(secret_key1, public_key_a)
public_key_b2 = engine.create_public_key_b(secret_key2, public_key_a)
public_key = engine.create_multiparty_public_key(
[public_key_b1, public_key_b2], public_key_a
)
fixed_rotation_key1 = engine.create_individual_fixed_rotation_key(
secret_key1, public_key, delta=1
)
fixed_rotation_key2 = engine.create_individual_fixed_rotation_key(
secret_key2, public_key, delta=1
)
fixed_rotation_key = engine.create_multiparty_fixed_rotation_key(
[fixed_rotation_key1, fixed_rotation_key2]
)
level_3_fixed_rotation_key = engine.create_multiparty_fixed_rotation_key(
[fixed_rotation_key1, fixed_rotation_key2], level=3
)