Skip to main content

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.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

amdSnp : Field attestation.AttestationSpecification.amdSnp

awsNitro : Field attestation.AttestationSpecification.awsNitro

intelDcap : Field attestation.AttestationSpecification.intelDcap

intelDcapMrsigner : Field attestation.AttestationSpecification.intelDcapMrsigner

intelEpid : Field attestation.AttestationSpecification.intelEpid

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, 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.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

version : Field data_room.ComputeNodeProtocol.version

DataNoncePubkey

DataNoncePubkey(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

data : Field delta_enclave_api.DataNoncePubkey.data

nonce : Field delta_enclave_api.DataNoncePubkey.nonce

pubkey : Field delta_enclave_api.DataNoncePubkey.pubkey

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.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

dcap : Field attestation.Fatquote.dcap

dcapMrsigner : Field attestation.Fatquote.dcapMrsigner

epid : Field attestation.Fatquote.epid

nitro : Field attestation.Fatquote.nitro

snp : Field attestation.Fatquote.snp

GcgRequest

GcgRequest(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

casAuxiliaryStateRequest : Field gcg.GcgRequest.casAuxiliaryStateRequest

createConfigurationCommitRequest : Field gcg.GcgRequest.createConfigurationCommitRequest

createDataRoomRequest : Field gcg.GcgRequest.createDataRoomRequest

endorsementRequest : Field gcg.GcgRequest.endorsementRequest

executeComputeRequest : Field gcg.GcgRequest.executeComputeRequest

executeDevelopmentComputeRequest : Field gcg.GcgRequest.executeDevelopmentComputeRequest

generateMergeApprovalSignatureRequest : Field gcg.GcgRequest.generateMergeApprovalSignatureRequest

getResultsRequest : Field gcg.GcgRequest.getResultsRequest

getResultsSizeRequest : Field gcg.GcgRequest.getResultsSizeRequest

jobStatusRequest : Field gcg.GcgRequest.jobStatusRequest

mergeConfigurationCommitRequest : Field gcg.GcgRequest.mergeConfigurationCommitRequest

publishDatasetToDataRoomRequest : Field gcg.GcgRequest.publishDatasetToDataRoomRequest

readAuxiliaryStateRequest : Field gcg.GcgRequest.readAuxiliaryStateRequest

removePublishedDatasetRequest : Field gcg.GcgRequest.removePublishedDatasetRequest

retrieveAuditLogRequest : Field gcg.GcgRequest.retrieveAuditLogRequest

retrieveConfigurationCommitApproversRequest : Field gcg.GcgRequest.retrieveConfigurationCommitApproversRequest

retrieveConfigurationCommitRequest : Field gcg.GcgRequest.retrieveConfigurationCommitRequest

retrieveCurrentDataRoomConfigurationRequest : Field gcg.GcgRequest.retrieveCurrentDataRoomConfigurationRequest

retrieveDataRoomRequest : Field gcg.GcgRequest.retrieveDataRoomRequest

retrieveDataRoomStatusRequest : Field gcg.GcgRequest.retrieveDataRoomStatusRequest

retrievePublishedDatasetsRequest : Field gcg.GcgRequest.retrievePublishedDatasetsRequest

retrieveUsedAirlockQuotaRequest : Field gcg.GcgRequest.retrieveUsedAirlockQuotaRequest

updateDataRoomStatusRequest : Field gcg.GcgRequest.updateDataRoomStatusRequest

userAuth : Field gcg.GcgRequest.userAuth

GcgRequestV2

GcgRequestV2(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

authenticated : Field gcg.GcgRequestV2.authenticated

unauthenticated : Field gcg.GcgRequestV2.unauthenticated

GcgResponse

GcgResponse(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

casAuxiliaryStateResponse : Field gcg.GcgResponse.casAuxiliaryStateResponse

createConfigurationCommitResponse : Field gcg.GcgResponse.createConfigurationCommitResponse

createDataRoomResponse : Field gcg.GcgResponse.createDataRoomResponse

endorsementResponse : Field gcg.GcgResponse.endorsementResponse

executeComputeResponse : Field gcg.GcgResponse.executeComputeResponse

failure : Field gcg.GcgResponse.failure

generateMergeApprovalSignatureResponse : Field gcg.GcgResponse.generateMergeApprovalSignatureResponse

getResultsResponseChunk : Field gcg.GcgResponse.getResultsResponseChunk

getResultsResponseFooter : Field gcg.GcgResponse.getResultsResponseFooter

getResultsSizeResponse : Field gcg.GcgResponse.getResultsSizeResponse

jobStatusResponse : Field gcg.GcgResponse.jobStatusResponse

mergeConfigurationCommitResponse : Field gcg.GcgResponse.mergeConfigurationCommitResponse

publishDatasetToDataRoomResponse : Field gcg.GcgResponse.publishDatasetToDataRoomResponse

readAuxiliaryStateResponse : Field gcg.GcgResponse.readAuxiliaryStateResponse

removePublishedDatasetResponse : Field gcg.GcgResponse.removePublishedDatasetResponse

retrieveAuditLogResponse : Field gcg.GcgResponse.retrieveAuditLogResponse

retrieveConfigurationCommitApproversResponse : Field gcg.GcgResponse.retrieveConfigurationCommitApproversResponse

retrieveConfigurationCommitResponse : Field gcg.GcgResponse.retrieveConfigurationCommitResponse

retrieveCurrentDataRoomConfigurationResponse : Field gcg.GcgResponse.retrieveCurrentDataRoomConfigurationResponse

retrieveDataRoomResponse : Field gcg.GcgResponse.retrieveDataRoomResponse

retrieveDataRoomStatusResponse : Field gcg.GcgResponse.retrieveDataRoomStatusResponse

retrievePublishedDatasetsResponse : Field gcg.GcgResponse.retrievePublishedDatasetsResponse

retrieveUsedAirlockQuotaResponse : Field gcg.GcgResponse.retrieveUsedAirlockQuotaResponse

updateDataRoomStatusResponse : Field gcg.GcgResponse.updateDataRoomStatusResponse

GcgResponseV2

GcgResponseV2(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

failure : Field gcg.GcgResponseV2.failure

success : Field gcg.GcgResponseV2.success

Pki

Pki(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

certChainPem : Field gcg.Pki.certChainPem

idMac : Field gcg.Pki.idMac

signature : Field gcg.Pki.signature

Request

Request(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

deltaRequest : Field delta_enclave_api.Request.deltaRequest

deltaRequestV2 : Field delta_enclave_api.Request.deltaRequestV2

extensionMessage : Field delta_enclave_api.Request.extensionMessage

Response

Response(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

successfulResponse : Field delta_enclave_api.Response.successfulResponse

unsuccessfulResponse : Field delta_enclave_api.Response.unsuccessfulResponse

UserAuth

UserAuth(
*args,
**kwargs,
)

A ProtocolMessage

Ancestors (in MRO)

  • google.protobuf.pyext._message.CMessage
  • google.protobuf.message.Message Instance variables

enclaveEndorsements : Field gcg.UserAuth.enclaveEndorsements

pki : Field gcg.UserAuth.pki