create_multiparty_conjugation_key
Engine.create_multiparty_conjugation_key(conjugation_keys, level)
- 개인 켤레화 키의 어레이를 인자로 받아서 다자간 연산의 켤레화에 사용되는 공용 켤레화 키를 생성합니다.
- 인풋
- conjugation_keys: ConjugationKey의 어레이를 받습니다.
- level: optional
- 지정된 경우에는 해당 최대 곱셈 횟수에 맞춰 사이즈를 줄인 키를 생성합니다.
- 아웃풋
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)
conjugation_key1 = engine.create_individual_conjugation_key(secret_key1, public_key)
conjugation_key2 = engine.create_individual_conjugation_key(secret_key2, public_key)
conjugation_key = engine.create_multiparty_conjugation_key([conjugation_key1, conjugation_key2])
level_3_conjugation_key = engine.create_multiparty_conjugation_key([conjugation_key1, conjugation_key2], level=3)