Skip to content

Latest commit

 

History

History
76 lines (37 loc) · 2.12 KB

concrete.compiler.simulated_value_decrypter.md

File metadata and controls

76 lines (37 loc) · 2.12 KB

module concrete.compiler.simulated_value_decrypter

SimulatedValueDecrypter.


class SimulatedValueDecrypter

A helper class to decrypt Values.

method __init__

__init__(value_decrypter: SimulatedValueDecrypter)

Wrap the native C++ object.

Args: value_decrypter (_SimulatedValueDecrypter): object to wrap

Raises: TypeError: if value_decrypter is not of type _SimulatedValueDecrypter


method decrypt

decrypt(position: int, value: Value) → Union[int, ndarray]

Decrypt value.

Args: position (int): position of the argument within the circuit

value (Value): value to decrypt

Returns: Union[int, np.ndarray]: decrypted value


method new

new(client_parameters: ClientParameters, circuit_name: str = 'main')

Create a value decrypter.