You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
We want the SDK to be as easy as possible to use. This means also taking a good look at the current API of AFJ and see if we can make improvements. Especially the addition of all new protocols requires taking a good look at the API.
Example from the proposal (we definitely don't want to use this, but to get the conversation started)
TODO
Determine what modules the public API will consist of
connections
credentials
proofs
routing
did
wallet (import/export)
ledger? (maybe belongs more as part of another module)
Example from the proposal (we definitely don't want to use this, but to get the conversation started)
@TimoGlastra Do you mean that we don't want to use exactly this or that we want to use something different? I kind of assumed that we maybe won't use exactly this but something like that :)
This is just something we threw together really quickly for the proposal (and is largely based on the current implementation). I just don't want to take it as a starting point, preventing better or simpler API designs.
Each part of config/step in initialization should be possible to handle directly by developer
API by feature/role?
Currently, the API is defined by modules, which is good. But when I work with an agent, I usually use the agent in just one role at a given place of the codebase. Then it could be convenient to call agent.holder.acceptCredential, or, with module agent.holder.credentials.acceptCredential. This idea is based on the idea of feature-driven API rather than domain-driven API.
JSON API
As a Developer, I want to use just JSON objects when I'm calling an agent's public API and not use exported classes from the framework so that I minimize dependencies to the framework in my code and don't need to understand the framework's classes structures and APIs.
I don't see using exported classes from the framework as a critical problem. It was just one of my initial goals to use just JSON because of simplicity, so I'm adding it here.
I also wanted to add links to other project I think can be good source of inspiration:
Context
We want the SDK to be as easy as possible to use. This means also taking a good look at the current API of AFJ and see if we can make improvements. Especially the addition of all new protocols requires taking a good look at the API.
Example from the proposal (we definitely don't want to use this, but to get the conversation started)
TODO
The text was updated successfully, but these errors were encountered: