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

fix: add validation to verification method and Issuer in VC #48

Conversation

mustafasalfiti
Copy link
Contributor

we had a problem that a VC proof will be valid even if the first part of the verificationMethod inside the proof is not equal to the Issuer did and that should not be the case

in this PR we have added an extra layer of validation to check if the first part of the verificationMethod equal to the issuer of the VC

as well there is an extra test to check the correction of the code.

@mustafasalfiti
Copy link
Contributor Author

#50

Copy link
Contributor

@DominikPinsel DominikPinsel left a comment

Choose a reason for hiding this comment

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

Looks good :) Sorry for the late review

@DominikPinsel
Copy link
Contributor

@borisrizov-zf Can we merge this? :)

@borisrizov-zf
Copy link
Contributor

@DominikPinsel gotta push out the Maven Central release first, otherwise we'll get a version mismatch between tractus-x 0.0.17 and the catenax-ng 0.0.17

@borisrizov-zf
Copy link
Contributor

@mustafasalfiti please rebase and we can merge.

@borisrizov-zf
Copy link
Contributor

@mustafasalfiti I forgot, please add an entry in the CHANGELOG.md

@mustafasalfiti mustafasalfiti force-pushed the fix/verificationMethod-validation branch from 3673fb1 to 935143d Compare November 30, 2023 18:53
CHANGELOG.md Outdated Show resolved Hide resolved
@borisrizov-zf
Copy link
Contributor

You'll have to run mvn spotless:apply as the pipeline is rejecting your formatting.

@mustafasalfiti mustafasalfiti force-pushed the fix/verificationMethod-validation branch 2 times, most recently from b6cc373 to ce1cdcb Compare December 1, 2023 14:29
@mustafasalfiti mustafasalfiti force-pushed the fix/verificationMethod-validation branch from ce1cdcb to ffdb0e2 Compare December 1, 2023 14:36
@borisrizov-zf borisrizov-zf merged commit 63b7364 into eclipse-tractusx:main Dec 1, 2023
3 checks passed
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.

3 participants