Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

refactor: cleanup messy code in pEx implementation #3598

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

Moopli
Copy link
Contributor

@Moopli Moopli commented Jun 8, 2023

  • pEx implementation no longer needs to replace Credential ID temporarily
  • assorted cleanup

@Moopli Moopli requested a review from vkubiv June 8, 2023 13:47
@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #3598 (4778663) into main (0445e96) will increase coverage by 0.01%.
The diff coverage is 92.50%.

@@            Coverage Diff             @@
##             main    #3598      +/-   ##
==========================================
+ Coverage   86.75%   86.77%   +0.01%     
==========================================
  Files         355      355              
  Lines       48680    48713      +33     
==========================================
+ Hits        42231    42269      +38     
+ Misses       4886     4882       -4     
+ Partials     1563     1562       -1     
Impacted Files Coverage Δ
component/models/presexch/definition.go 85.04% <92.50%> (+0.51%) ⬆️

... and 2 files with indirect coverage changes

- pEx implementation no longer needs to replace Credential ID
  temporarily
- assorted cleanup

Signed-off-by: Filip Burlacu <Filip.Burlacu@gendigital.com>
if !req.isLenApplicable(len(set[k])) {
for desc, cID := range set[k] {
exclude[desc+cID] = struct{}{}
for _, descriptors := range satisfiedDescriptors {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something I noticed here: this code expects a single VC (and its BBS derived creds) to satisfy the correct number of input descriptors for a submission requirement that has nested submission requirements. As far as I know, this isn't quite right: the parent submission requirement should validate the number of satisfied nested submission requirements (not the number of input descriptors), and it shouldn't require that they be satisfied by a single credential.

@Moopli Moopli changed the title wip: pEx refactoring refactor: cleanup messy code in pEx implementation Jun 12, 2023
@Moopli Moopli marked this pull request as ready for review June 12, 2023 14:07
@sudeshrshetty sudeshrshetty merged commit e841db5 into hyperledger-archives:main Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants