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

chore: Additional validation when creating disclosed claims (verifier) #3522

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented Feb 9, 2023

Additional validation when processing disclosures to assemble disclosed claims:

  • If there is more than one place where the digest is included, the Verifier MUST reject the Presentation.
  • If the claim name already exists at the same level, the Verifier MUST reject the Presentation.
  • If the claim value contains an object with an _sd key (at the top level or nested deeper), the Verifier MUST reject the Presentation.

Closes #3519

Additional validation when processing disclosures to assemble disclosed claims:

- If there is more than one place where the digest is included, the Verifier MUST reject the Presentation.
- If the claim name already exists at the same level, the Verifier MUST reject the Presentation.
- If the claim value contains an object with an _sd key (at the top level or nested deeper), the Verifier MUST reject the Presentation.

Closes hyperledger-archives#3519

Signed-off-by: Sandra Vrtikapa <[email protected]>
@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #3522 (2fcf4a9) into main (a22f53f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3522   +/-   ##
=======================================
  Coverage   87.71%   87.71%           
=======================================
  Files         351      351           
  Lines       48301    48332   +31     
=======================================
+ Hits        42365    42396   +31     
  Misses       4398     4398           
  Partials     1538     1538           
Impacted Files Coverage Δ
pkg/doc/sdjwt/common/common.go 93.47% <100.00%> (+0.97%) ⬆️
pkg/doc/sdjwt/issuer/issuer.go 91.95% <100.00%> (-0.33%) ⬇️

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

@fqutishat fqutishat merged commit c509c1e into hyperledger-archives:main Feb 10, 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.

SD-JWT: Additional verification when creating disclosed claims (Verifier)
2 participants