verifiably-wsock-secrets-provider

Secrets provider that communicates with trusted execution environments over web sockets.


Keywords
python, web-socket, credentials
License
Apache-2.0
Install
pip install verifiably-wsock-secrets-provider==0.0.7

Documentation

Web socket secrets provider

This library enables an easy setup for a secret provider trough wsock. This secrets provider was developed to be used with a vFunction.

Installation

To install this library run:

pip install verifiably_wsock_secrets_provider

Setup

To create the server, just provide your secrets and start the communication trough wsock.

from verifiably_wsock_secrets_provider import credentials_provider

credentials = {
    "account1":{
        "accountId": "1234",
        "token": "0000"
    }
}


expected_pcrs = {
    "0":"0000"
}

secretProvider = credentials_provider.SecretsProvider(credentials, expected_pcrs)

secretProvider.start()