8000 Fix security issues by soroush-y · Pull Request #116 · affinidi/affinidi-ssi-dart · GitHub
[go: up one dir, main page]

Skip to content
8000

Fix security issues - #116

Open
soroush-y wants to merge 2 commits into
mainfrom
fix-security-issues
Open

soroush-y wants to merge 2 commits into
mainfrom
fix-security-issues

Conversation

@soroush-y
Copy link
Copy Markdown
Contributor

No description provided.

@soroush-y
soroush-y marked this pull request as ready for review June 11, 2025 13:49
@soroush-y
soroush-y requested a review from a team as a code owner June 11, 2025 13:49
@soroush-y
soroush-y requested a review from sureshaff June 12, 2025 07:52

// Validate proofPurpose is present to prevent misuse
// See: https://www.w3.org/TR/vc-data-integrity/#proofs
if (proof['proofPurpose'] == null) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please follow the algorithm defined here for the validation -> https://www.w3.org/TR/vc-data-integrity/#verify-proof

If expectedProofPurpose was given, and it does not match proof.proofPurpose, an error MUST be raised and SHOULD convey an error type of [PROOF_VERIFICATION_ERROR](https://www.w3.org/TR/vc-data-integrity/#PROOF_VERIFICATION_ERROR).

@sureshaff
Copy link
Copy Markdown

This branch has not been deployed

No deployments
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

0