decentriq_platform.channel
Functions
datanoncepubkey_to_message
def datanoncepubkey_to_message(
encrypted_data: bytes,
nonce: bytes,
pubkey: bytes,
) ‑> delta_enclave_api_pb2.DataNoncePubkey
message_to_datanoncepubkey
def message_to_datanoncepubkey(
message: bytes,
) ‑> Tuple[bytes, bytes, bytes]
Classes
AttestationSpecification
AttestationSpecification(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
Channel
Channel(
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,
)
Class for managing the communication with an enclave.
send_compilable_request
def send_compilable_request(
self,
compile_request: Callable[[~CompilerRequest, typing_extensions.Self], 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]
Low-level method for sending a raw GcgRequest
to the enclave.
Use this method if any of the convenience methods (such as run_computation
) don't perform
the exact task you want.
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
ComputeNodeProtocol
ComputeNodeProtocol(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
DataNoncePubkey
DataNoncePubkey(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
EnclaveError
EnclaveError(
*args,
**kwargs,
)
Common base class for all non-exit exceptions.
Ancestors (in MRO)
- builtins.Exception
- builtins.BaseException
Fatquote
Fatquote(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
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
Pki
Pki(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
Request
Request(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
Response
Response(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message
UserAuth
UserAuth(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google._upb._message.Message
- google.protobuf.message.Message