mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-24 04:08:00 -05:00
3.0 KiB
3.0 KiB
module concrete.compiler.public_arguments
PublicArguments.
class PublicArguments
PublicArguments holds encrypted and plain arguments, as well as public materials.
An encrypted computation may require both encrypted and plain arguments, PublicArguments holds both types, but also other public materials, such as public keys, which are required for private computation.
method __init__
__init__(public_arguments: PublicArguments)
Wrap the native Cpp object.
Args:
public_arguments(_PublicArguments): object to wrap
Raises:
TypeError: if public_arguments is not of type _PublicArguments
method deserialize
deserialize(
client_parameters: ClientParameters,
serialized_args: bytes
) → PublicArguments
Unserialize PublicArguments from bytes of serialized_args.
Args:
client_parameters(ClientParameters): client parameters of the compiled circuitserialized_args(bytes): previously serialized PublicArguments
Raises:
TypeError: if client_parameters is not of type ClientParametersTypeError: if serialized_args is not of type bytes
Returns:
PublicArguments: deserialized object
method new
new(client_parameters: ClientParameters, values: List[Value]) → PublicArguments
Create public arguments from individual values.
method serialize
serialize() → bytes
Serialize the PublicArguments.
Returns:
bytes: serialized object