Skip to content
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: add present proof v2 #979

Merged

Conversation

NB-MikeRichardson
Copy link
Contributor

@NB-MikeRichardson NB-MikeRichardson commented Aug 9, 2022

This is essentially a three-way merge of

feat/ppv2
0.3.0-pre
TimoGlastra/refactor/generalize-proofs

BREAKING CHANGE: the present proof module has been extended to support both v1 and v2 of protocol. See Migrating from AFJ 0.2.x to 0.3.0 for a detailed migration instructions.

NB-PrasadKatkar and others added 30 commits December 14, 2021 18:27
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB Prasad Katkar <prasad@northernblock.io>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
Signed-off-by: NB-Karim <karim.northernblock@gmail.com>
@TimoGlastra TimoGlastra changed the title refactor/ppv2 generic proofs feat: add present proof v2 Aug 11, 2022
@TimoGlastra
Copy link
Contributor

@NB-MikeRichardson it seems one test is failing, could you take a look at it?

packages/core/src/modules/proofs/ProofsApi.ts Outdated Show resolved Hide resolved
packages/core/src/modules/proofs/ProofsModule.ts Outdated Show resolved Hide resolved
packages/core/src/modules/proofs/ProofsModule.ts Outdated Show resolved Hide resolved
packages/core/src/modules/proofs/ProofsModule.ts Outdated Show resolved Hide resolved
packages/core/src/modules/proofs/ProofsModule.ts Outdated Show resolved Hide resolved
packages/core/src/modules/proofs/formats/ProofFormat.ts Outdated Show resolved Hide resolved
packages/core/src/modules/proofs/models/ModuleOptions.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@genaris genaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just added some minor comments regarding RevocationNotificationService that I think belongs to Credential Module.

It would be nice if we can integrate here the changes introduced in #972 but if it's too much trouble we can merge it afterwards.

Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
@codecov-commenter
Copy link

codecov-commenter commented Aug 15, 2022

Codecov Report

Merging #979 (2be36f4) into 0.3.0-pre (a457773) will decrease coverage by 0.09%.
The diff coverage is 86.94%.

@@              Coverage Diff              @@
##           0.3.0-pre     #979      +/-   ##
=============================================
- Coverage      87.64%   87.55%   -0.10%     
=============================================
  Files            574      602      +28     
  Lines          13539    14549    +1010     
  Branches        2194     2350     +156     
=============================================
+ Hits           11866    12738     +872     
- Misses          1669     1806     +137     
- Partials           4        5       +1     
Impacted Files Coverage Δ
...les/credentials/formats/CredentialFormatService.ts 100.00% <ø> (ø)
...ore/src/modules/indy/services/IndyHolderService.ts 72.72% <ø> (ø)
...src/modules/indy/services/IndyRevocationService.ts 58.33% <ø> (ø)
packages/core/src/modules/proofs/ProofEvents.ts 100.00% <ø> (ø)
...odules/proofs/formats/indy/models/PredicateType.ts 100.00% <ø> (ø)
...proofs/formats/indy/models/RetrievedCredentials.ts 100.00% <ø> (ø)
...e/src/modules/proofs/models/ProofAutoAcceptType.ts 100.00% <ø> (ø)
.../modules/proofs/protocol/v1/models/PartialProof.ts 91.66% <ø> (ø)
...odules/proofs/protocol/v1/models/ProofAttribute.ts 72.72% <ø> (ø)
...odules/proofs/protocol/v1/models/RequestedProof.ts 81.81% <ø> (ø)
... and 72 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

NB-MikeRichardson and others added 3 commits August 15, 2022 09:32
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
@NB-MikeRichardson
Copy link
Contributor Author

I haven't merged in #972 because that PR is not yet in 0.3.0-pre.

I am happy to merge that it in in due course: I would say let's get this stuff in first as people are waiting on it.

Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
NB-MikeRichardson and others added 3 commits August 15, 2022 10:26
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>
Signed-off-by: Timo Glastra <timo@animo.id>
@TimoGlastra
Copy link
Contributor

It would be nice if we can integrate here the changes introduced in #972 but if it's too much trouble we can merge it afterwards.

Yes I think it would be easier to merge afterwards. I'll merge this PR and we can then update with main (hasn't been done in a while).

@TimoGlastra
Copy link
Contributor

Did someone add sonarcloud?

Signed-off-by: Timo Glastra <timo@animo.id>
@sonarcloud
Copy link

sonarcloud bot commented Aug 17, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 34 Security Hotspots
Code Smell A 387 Code Smells

No Coverage information No Coverage information
13.4% 13.4% Duplication

@TimoGlastra
Copy link
Contributor

Merging as CI for node 14 passes (still the BBS issue)

@TimoGlastra TimoGlastra merged commit aeff6f1 into openwallet-foundation:0.3.0-pre Aug 17, 2022
TimoGlastra pushed a commit that referenced this pull request Aug 26, 2022
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>

Co-authored-by: NB Prasad Katkar <prasad@northernblock.io>
Co-authored-by: Karim Stekelenburg <karim@animo.id>
TimoGlastra pushed a commit that referenced this pull request Aug 26, 2022
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>

Co-authored-by: NB Prasad Katkar <prasad@northernblock.io>
Co-authored-by: Karim Stekelenburg <karim@animo.id>
TimoGlastra pushed a commit that referenced this pull request Aug 26, 2022
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>

Co-authored-by: NB Prasad Katkar <prasad@northernblock.io>
Co-authored-by: Karim Stekelenburg <karim@animo.id>
genaris pushed a commit to 2060-io/aries-framework-javascript that referenced this pull request Sep 16, 2022
Signed-off-by: Mike Richardson <mike.richardson@ontario.ca>

Co-authored-by: NB Prasad Katkar <prasad@northernblock.io>
Co-authored-by: Karim Stekelenburg <karim@animo.id>
Signed-off-by: Ariel Gentile <gentilester@gmail.com>
@NB-MikeRichardson NB-MikeRichardson deleted the refactor/mjrppv2 branch September 28, 2022 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants