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.
__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
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
new(client_parameters: ClientParameters, values: List[Value]) → PublicArguments
Create public arguments from individual values.
serialize() → bytes
Serialize the PublicArguments.
Returns:
bytes
: serialized object