jolocom / jolocom-sdk

A tool kit for integration with SSI
Apache License 2.0
31 stars 9 forks source link

Credentials API on SDK/Agent #98

Closed mnzaki closed 3 years ago

mnzaki commented 3 years ago

This adds CredentialKeeper and CredentialIssuer classes, and instances of them on the sdk and agent. They can be used as sdk.credentials.get, create/issue, query, delete, and also similarly on the agent On the agent, the credentials scope is limited to those whose subject is the agent (need to also add support for checking for issuer!)

This supersedes and includes changes from #93 but refactored to use ObjectKeeper

There's a circular dependency on https://github.com/jolocom/sdk-storage-typeorm/pull/19