-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat(ledger): smart schema and credential definition registration #900
feat(ledger): smart schema and credential definition registration #900
Conversation
Codecov Report
@@ Coverage Diff @@
## 0.3.0-pre #900 +/- ##
=============================================
+ Coverage 86.97% 87.09% +0.12%
=============================================
Files 532 536 +4
Lines 12965 13050 +85
Branches 2229 2244 +15
=============================================
+ Hits 11276 11366 +90
+ Misses 1593 1588 -5
Partials 96 96
Continue to review full report at Codecov.
|
Still need to add tests for new functionality. Old stuff works |
78c3fc7
to
df4f9fd
Compare
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
…er service still wip Signed-off-by: Moriarty <[email protected]>
TODO: add tests for new functionality Signed-off-by: Moriarty <[email protected]>
df4f9fd
to
81e39fd
Compare
Signed-off-by: Moriarty <[email protected]>
…ead of throwing an error Signed-off-by: Moriarty <[email protected]>
todo: * move this logic to ledger module Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
…chema-and-creds todo: * move findBy methods to ledgerModule and out of the anonCreds impls Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
Note to self @morrieinmaas & @blu3beri & @TimoGlastra still need to add tests. |
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
…chema-and-creds Signed-off-by: Moriarty <[email protected]>
fe0c8d9
to
e463253
Compare
@TimoGlastra @blu3beri would be great to get som efeedback before I add the tests - thanks in advance |
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.
This is great @morrieinmaas! Left some nits but mostly around naming. Overall implementation looks good.
packages/core/src/modules/indy/repository/AnonCredsCredentialDefinitionRecord.ts
Outdated
Show resolved
Hide resolved
packages/core/src/modules/indy/repository/AnonCredsCredentialDefinitionRepository.ts
Outdated
Show resolved
Hide resolved
packages/core/src/modules/indy/repository/AnonCredsSchemaRecord.ts
Outdated
Show resolved
Hide resolved
…chema-and-creds code review feedback Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
…hemas Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
50a99d1
to
ee7389d
Compare
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.
This looks good to me @morrieinmaas. I think integrating the get schema/cred def and adding methods to get all created schema/cred def records would be a nice addition, but something we can add in a future pr without breaking changes.
As discussed yesterday only thing we should add is storing the associated ledger in the record. I'll try to add some more details later today on possible approaches
I'm going to Request Changes, mostly to prevent it from accidently being merged, but current code is approved
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
@TimoGlastra Thanks for the feedback. Should be addressed. |
Signed-off-by: Moriarty <[email protected]>
|
Signed-off-by: Moriarty <[email protected]>
2332b3b
to
231e681
Compare
FIXME: test deriveProof -> should derive proof successfully fails due to inability to convert key in node-bbs-signatures library Signed-off-by: Moriarty <[email protected]>
packages/core/src/modules/vc/__tests__/W3cCredentialService.test.ts
Outdated
Show resolved
Hide resolved
packages/core/src/modules/indy/repository/AnonCredsCredentialDefinitionRecord.ts
Outdated
Show resolved
Hide resolved
packages/core/src/modules/indy/repository/AnonCredsCredentialDefinitionRepository.ts
Outdated
Show resolved
Hide resolved
packages/core/src/modules/indy/repository/AnonCredsSchemaRecord.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Moriarty <[email protected]>
@TimoGlastra - changes addressed |
…art-schema-and-creds
packages/core/src/modules/indy/repository/AnonCredsCredentialDefinitionRepository.ts
Outdated
Show resolved
Hide resolved
packages/core/src/modules/indy/repository/AnonCredsCredentialDefinitionRepository.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Moriarty <[email protected]>
@TimoGlastra can this be merged then? |
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
Signed-off-by: Moriarty <[email protected]>
…enwallet-foundation#900) Signed-off-by: Moriarty <[email protected]> Signed-off-by: Ariel Gentile <[email protected]>
Signed-off-by: Moriarty [email protected]
closes #859