Skip to main content

decentriq_platform.archv2

Sub-modules

  • decentriq_platform.archv2.secret
  • decentriq_platform.archv2.session

Classes

Secret

Secret(
secret: bytes,
state: decentriq_dcr_compiler._schemas.secret_store_entry_state.SecretStoreEntryState,
)

Secret(secret: bytes, state: decentriq_dcr_compiler._schemas.secret_store_entry_state.SecretStoreEntryState)

SessionV2

SessionV2(
client: Client,
connection: Connection,
)

Class for managing the communication with an enclave.

Session instances should not be instantiated directly but rather be created using a Client object using decentriq_platform.Client.create_session_v2.

create_secret

def create_secret(
self,
secret: Secret,
)> str

Store a secret in the user's own enclave-protected secret store

get_secret

def get_secret(
self,
secret_id: str,
)> Tuple[decentriq_platform.archv2.secret.Secret, int]

remove_secret

def remove_secret(
self,
secret_id: str,
expected_cas_index: int,
)> bool

send_authenticated_request

def send_authenticated_request(
self,
authenticated_request: AuthenticatedRequest,
)> gcg_pb2.AuthenticatedResponse

send_secret_store_request

def send_secret_store_request(
self,
request: SecretStoreRequest,
)> secret_store_pb2.SecretStoreResponse

update_secret_acl

def update_secret_acl(
self,
secret_id: str,
new_acl: v0.SecretStoreEntryAcl,
expected_cas_index: int,
)> bool

Update a secret ACL