decentriq_platform.connection
Classes
AttestationSpecification
AttestationSpecification(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
Connection
Connection(
driver_attestation_specification: attestation_pb2.AttestationSpecification,
api: decentriq_platform.api.Api,
graphql_api: decentriq_platform.graphql.GqlClient,
unsafe_disable_known_root_ca_check: bool = False,
max_retries: int = 5,
)
Class that wraps a Channel and re-creates the enclave connection in case of exceptions
send_compilable_request
def send_compilable_request(
self,
compile_request: Callable[[~CompilerRequest, decentriq_platform.channel.Channel], bytes],
request: ~CompilerRequest,
decompile_response: Callable[[List[bytes]], ~CompilerResponse],
protocol: int,
) ‑> ~CompilerResponse
send_request
def send_request(
self,
request: gcg_pb2.GcgRequest,
protocol: int,
auth: decentriq_platform.authentication.Auth,
) ‑> List[gcg_pb2.GcgResponse]
send_request_raw
def send_request_raw(
self,
request: bytes,
protocol: int,
) ‑> List[bytes]
send_request_v2
def send_request_v2(
self,
request: gcg_pb2.GcgRequestV2,
) ‑> gcg_pb2.GcgResponseV2
GcgRequest
GcgRequest(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
GcgRequestV2
GcgRequestV2(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
GcgResponse
GcgResponse(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
GcgResponseV2
GcgResponseV2(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message