Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
tests
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
tests
Merge requests
!37
Add tests for VP proofs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add tests for VP proofs
3-check-vc-proofs-when-making-vp-proof
into
main
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
Georgi Michev
requested to merge
3-check-vc-proofs-when-making-vp-proof
into
main
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Expand
The tests should catch an error if any of the VC in the VP has been tampered.
Closes
#3 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
45ebc150
1 commit,
1 year ago
3 files
+
588
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/main/resources/REST/json/Presentation.json
+
299
−
0
Options
@@ -79,6 +79,80 @@
}]
}
},
"for_proof_with_proofs"
:
{
"issuer"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"key"
:
"key1"
,
"namespace"
:
"transit"
,
"presentation"
:
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://w3id.org/security/suites/jws-2020/v1"
],
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"type"
:
[
"VerifiablePresentation"
],
"verifiableCredential"
:
[
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"allow"
:
true
,
"array"
:
{
"txt1"
:
"1"
,
"txt2"
:
"2"
},
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"num"
:
123
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:13:03.38201499Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEUCIFEQ_8NbyAyZGsq9wou6lBF9qBz8001ViR48Igtwsa6VAiEApUcE9AVMT-n18JQ4xBsHcFgmdzOX9PIXgqSmpdC98b8"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
},
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"age_over"
:
18
,
"allow"
:
true
,
"citizenship"
:
"France"
,
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:16:51.645723638Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEQCIGxdwsdZ9DGRfUQS1S61baeEIlr6IVehGiaX1oIfFldKAiBUGJEA0ArOR7tVd6MIY4hTJLs4VEnWzJExIvNnt_0qPg"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
}
]
}
},
"for_proof_without_ID"
:
{
"issuer"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"key"
:
"key1"
,
@@ -687,5 +761,230 @@
}
]
}
},
"credential_tampered_verification_method"
:
{
"issuer"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"key"
:
"key1"
,
"namespace"
:
"transit"
,
"presentation"
:
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://w3id.org/security/suites/jws-2020/v1"
],
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"type"
:
[
"VerifiablePresentation"
],
"verifiableCredential"
:
[
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"allow"
:
true
,
"array"
:
{
"txt1"
:
"1"
,
"txt2"
:
"2"
},
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"num"
:
123
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:13:03.38201499Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEUCIFEQ_8NbyAyZGsq9wou6lBF9qBz8001ViR48Igtwsa6VAiEApUcE9AVMT-n18JQ4xBsHcFgmdzOX9PIXgqSmpdC98b8"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
},
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"age_over"
:
18
,
"allow"
:
true
,
"citizenship"
:
"France"
,
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:16:51.645723638Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEQCIGxdwsdZ9DGRfUQS1S61baeEIlr6IVehGiaX1oIfFldKAiBUGJEA0ArOR7tVd6MIY4hTJLs4VEnWzJExIvNnt_0qPg"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
}
]
}
},
"credential_tampered_created"
:
{
"issuer"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"key"
:
"key1"
,
"namespace"
:
"transit"
,
"presentation"
:
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://w3id.org/security/suites/jws-2020/v1"
],
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"type"
:
[
"VerifiablePresentation"
],
"verifiableCredential"
:
[
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"allow"
:
true
,
"array"
:
{
"txt1"
:
"1"
,
"txt2"
:
"2"
},
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"num"
:
123
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2022-04-11T08:13:03.38201499Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEUCIFEQ_8NbyAyZGsq9wou6lBF9qBz8001ViR48Igtwsa6VAiEApUcE9AVMT-n18JQ4xBsHcFgmdzOX9PIXgqSmpdC98b8"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
},
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"age_over"
:
18
,
"allow"
:
true
,
"citizenship"
:
"France"
,
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:16:51.645723638Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEQCIGxdwsdZ9DGRfUQS1S61baeEIlr6IVehGiaX1oIfFldKAiBUGJEA0ArOR7tVd6MIY4hTJLs4VEnWzJExIvNnt_0qPg"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
}
]
}
},
"credential_tampered_credentialSubject"
:
{
"issuer"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"key"
:
"key1"
,
"namespace"
:
"transit"
,
"presentation"
:
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://w3id.org/security/suites/jws-2020/v1"
],
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"type"
:
[
"VerifiablePresentation"
],
"verifiableCredential"
:
[
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"allow"
:
true
,
"array"
:
{
"txt1"
:
"1"
,
"txt2"
:
"2"
},
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"num"
:
123
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:13:03.38201499Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEUCIFEQ_8NbyAyZGsq9wou6lBF9qBz8001ViR48Igtwsa6VAiEApUcE9AVMT-n18JQ4xBsHcFgmdzOX9PIXgqSmpdC98b8"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
},
{
"@context"
:
[
"https://www.w3.org/2018/credentials/v1"
,
"https://www.w3.org/2018/credentials/examples/v1"
,
"https://www.schema.org"
],
"credentialSubject"
:
{
"age_over"
:
48
,
"allow"
:
true
,
"citizenship"
:
"France"
,
"id"
:
"did:web:gaiax.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
},
"id"
:
"http://example.edu/credentials/3732"
,
"issuanceDate"
:
"2010-01-01T00:00:00Z"
,
"issuer"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation"
,
"proof"
:
{
"created"
:
"2023-04-11T08:16:51.645723638Z"
,
"jws"
:
"eyJhbGciOiJKc29uV2ViU2lnbmF0dXJlMjAyMCIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..MEQCIGxdwsdZ9DGRfUQS1S61baeEIlr6IVehGiaX1oIfFldKAiBUGJEA0ArOR7tVd6MIY4hTJLs4VEnWzJExIvNnt_0qPg"
,
"proofPurpose"
:
"assertionMethod"
,
"type"
:
"JsonWebSignature2020"
,
"verificationMethod"
:
"did:web:ssi-dev.vereign.com:tsa:policy:policy:example:returnDID:1.0:evaluation#key1"
},
"type"
:
[
"VerifiableCredential"
,
"UniversityDegreeCredential"
]
}
]
}
}
}
\ No newline at end of file
Loading