create_hadamard_multiplication_key
GLEngine.create_hadamard_multiplication_key(secret_key, level)
- 비밀 키를 인자로 받아서 아다마르 곱셈에 사용되는 아다마르 곱셈 키를 생성합니다.
- 인풋
- GLSecretKey
- level: optional
- 지정된 경우에는 해당 최대 곱셈 횟수에 맞춰 사이즈를 줄인 키를 생성합니다.
- 아웃풋
- GLHadamardMultiplicationKey
from desilofhe import GLEngine
engine = GLEngine()
secret_key = engine.create_secret_key()
hadamard_multiplication_key = engine.create_hadamard_multiplication_key(
secret_key
)
level_3_hadamard_multiplication_key = engine.create_hadamard_multiplication_key(
secret_key, level=3
)