create_multiparty_fixed_rotation_key
Engine.create_multiparty_fixed_rotation_key(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
- fixed_rotation_keys: an array of FixedRotationKeys
 
- level: optional
- Creates the key with a reduced size to contain only the specified multiplication levels.
 
 
 
- Output
 
from desilofhe import Engine
engine = Engine()
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
)