-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(anoncreds)!: combine anoncreds packages #1723
refactor(anoncreds)!: combine anoncreds packages #1723
Conversation
Signed-off-by: Timo Glastra <timo@animo.id>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will certainly simplify agent setup. There are a few things that maybe can be improved or simplified later on, like the injection symbols usage (not sure if it's worth to keep using them if we'll support a single implementation) and the test structure, but I think it is perfectly fine for now.
@@ -40,6 +42,11 @@ export class AnonCredsModule implements Module { | |||
dependencyManager.registerSingleton(AnonCredsLinkSecretRepository) | |||
dependencyManager.registerSingleton(AnonCredsRevocationRegistryDefinitionRepository) | |||
dependencyManager.registerSingleton(AnonCredsRevocationRegistryDefinitionPrivateRepository) | |||
|
|||
// TODO: should we allow to override the service? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be useful, but we'll still being importing anoncreds-rs native library, so it would be still inconvenient if we really want to use other library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but a model could exist where we make passing anoncreds
optional and you provide your own services implementation. You'll only depend on the HL/anoncreds-shared package in this case which doesn't include the heavy AnonCreds-rs
Signed-off-by: Timo Glastra <timo@animo.id>
Combines the two anoncreds packages into
@credo-ts/anoncreds
to hopefully simplify setup a bit