-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from arnoweiss/feat/add-data-ex-gov
Add Data Exchange Governance Credential and Policy
- Loading branch information
Showing
12 changed files
with
108 additions
and
18 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
cx/credentials/samples/dataexchange.governance.credential.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://w3id.org/catenax/credentials/v1.0.0" | ||
], | ||
"id": "1f36af58-0fc0-4b24-9b1c-e37d59668089", | ||
"type": [ | ||
"VerifiableCredential", | ||
"DataExchangeGovernanceCredential" | ||
], | ||
"issuer": "did:web:com.example.issuer", | ||
"issuanceDate": "2021-06-16T18:56:59Z", | ||
"expirationDate": "2022-06-16T18:56:59Z", | ||
"credentialSubject": | ||
{ | ||
"id": "did:web:com.example.participant", | ||
"holderIdentifier": "BPNL000000001", | ||
"group": "UseCaseFramework", | ||
"useCase": "DataExchangeGovernance", | ||
"contractTemplate": "https://catena-x.net/en/catena-x-introduce-implement/governance-framework-for-data-space-operations", | ||
"contractVersion": "a.b" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
cx/credentials/schema/credentials/dataexchange.governance.credential.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$id": "https://w3id.org/catenax/schemas/v1.0.0/dataexchange.governance.credential.schema.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "DataExchangeGovernanceCredential", | ||
"description": "Data Exchange Governance Credential Schema", | ||
"type": "object", | ||
"properties": { | ||
"credentialSubject": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"description": "The Web DID of the holder", | ||
"$ref": "./types.schema.json#/definitions/web-did" | ||
}, | ||
"holderIdentifier": { | ||
"description": "The Business Partner Number of the holder", | ||
"type": "string" | ||
}, | ||
"useCase": { | ||
"description": "The linked use case - in this case Data Exchange Governance Framework agreement is valid for all Catena-X use cases", | ||
"type": "string" | ||
}, | ||
"contractTemplate": { | ||
"description": "A link to the framework agreement type that was signed by the holder", | ||
"$ref": "./types.schema.json#/definitions/endpoint" | ||
}, | ||
"contractVersion": { | ||
"description": "The version of the framework agreement that was signed by the holder. format: x.y", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"holderIdentifier", | ||
"contractTemplate", | ||
"contractVersion" | ||
] | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
cx/credentials/tests/credentials/dataexchangegovernance-secp256k1-pubkey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"kty":"EC","use":"sig","crv":"secp256k1","x":"3EbyIFWR7uFsSMw2uDjXB-E1WI1VOI222tn3qBj5bJo","y":"u6VEz_zZX1VcV5u-XloahfYTDF-bmZjVJiJmPnDL9Ho"} |
1 change: 1 addition & 0 deletions
1
cx/credentials/tests/credentials/dataexchangegovernance-secp256k1.jwt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJraWQiOiJkaWQ6d2ViOmRpbS1zdGF0aWMtcWEuZGlzLWNsb3VkLXFhLmNmYXBwcy5ldTEyLmhhbmEub25kZW1hbmQuY29tOmRpbS1ob3N0ZWQ6MjEwMjZkYzQtMmIzNS00M2VkLWIwOTAtYjEzMDdjNjNiZGUxOmNhdGVuYS14LW9wY28taXNzdWVyI2tleXMtODUyZmQ2NzktZjQ3MC00ZTYxLWFkOTItZDVkZTEzYWI0N2QyIiwiYWxnIjoiRVMyNTZLIiwidHlwIjoiSldUIn0.eyJpYXQiOjE3MTk0ODcxNTksImV4cCI6MTcxOTY1OTk1MywidmMiOnsiaWQiOiJhNDViOTA1ZGI5NGNmMWNkNmQwNjI0NTViMDU2YzcxNzZhMjFmYjgyNzk0NjJjMzI2ODBhYjQxYiIsInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiLCJEYXRhRXhjaGFuZ2VHb3Zlcm5hbmNlQ3JlZGVudGlhbCJdLCJpc3N1ZXIiOiJkaWQ6d2ViOmRpbS1zdGF0aWMtcWEuZGlzLWNsb3VkLXFhLmNmYXBwcy5ldTEyLmhhbmEub25kZW1hbmQuY29tOmRpbS1ob3N0ZWQ6MjEwMjZkYzQtMmIzNS00M2VkLWIwOTAtYjEzMDdjNjNiZGUxOmNhdGVuYS14LW9wY28taXNzdWVyIiwiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwiaXNzdWFuY2VEYXRlIjoiMjAyNC0wNi0yN1QxMToxOToxOS40ODZaIiwiZXhwaXJhdGlvbkRhdGUiOiIyMDI0LTA2LTI5VDExOjE5OjEzLjEzMFoiLCJjcmVkZW50aWFsU2NoZW1hIjp7ImlkIjoiaH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1cmVyIiwidXNlQ2FzZSI6IkRhdGFFeGNoYW5nZUdvdmVybmFuY2UiLCJjb250cmFjdFZlcnNpb24iOiIxLjAiLCJjb250cmFjdFRlbXBsYXRlIjoiaHR0cHM6Ly9jYXRlbmEteC5uZXQvZW4vY2F0ZW5hLXgtaW50cm9kdWNlLWltcGxlbWVudC9nb3Zlcm5hbmNlLWZyYW1ld29yay1mb3ItZGF0YS1zcGFjZS1vcGVyYXRpb25zIiwiaG9sZGVySWRlbnRpZmllciI6IkJQTkwwMDAwMDAwMDEifX0sImlzcyI6ImRpZDp3ZWI6ZGltLXN0YXRpYy1xYS5kaXMtY2xvdWQtcWEuY2ZhcHBzLmV1MTIuaGFuYS5vbmRlbWFuZC5jb206ZGltLWhvc3RlZDoyMTAyNmRjNC0yYjM1LTQzZWQtYjA5MC1iMTMwN2M2M2JkZTE6Y2F0ZW5hLXgtb3Bjby1pc3N1ZXIiLCJzdWIiOiJkaWQ6d2ViOmRpbS1zdGF0aWMtcWEuZGlzLWNsb3VkLXFhLmNmYXBwcy5ldTEyLmhhbmEub25kZW1hbmQuY29tOmRpbS1ob3N0ZWQ6MDQ0OTY1MTktOTY1Ny00ZWIzLWE3NTQtZGQ5MjkzNjRiYzcxOmNhci1tYW51ZmFjdHVyZXIiLCJqdGkiOiJhNDViOTA1ZGI5NGNmMWNkNmQwNjI0NTViMDU2YzcxNzZhMjFmYjgyNzk0NjJjMzI2ODBhYjQxYiIsIm5iZiI6MTcxOTQ4NzE1OX0.bQeHDhGDEsGvAY_wpoWxu1GRQxckKv8T7ddicpnB2q0leS_zU5AobhivY-eUX0fI79OX6H5Cfj0khjIFRl8TyA |
1 change: 1 addition & 0 deletions
1
cx/credentials/tests/presentations/dataexchange-governance-presentation-pubkey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"kty":"EC","use":"sig","crv":"secp256k1","x":"A8gkcK6CZ_GGpswBW9GVqW2B4gwfJLCxDf_O1kJvZh8","y":"GbIwlCtsU6EH28bgiKwkdos8xoL2MZ23tB10k0alihk"} |
1 change: 1 addition & 0 deletions
1
cx/credentials/tests/presentations/dataexchange-governance-presentation.jwt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJraWQiOiJkaWQ6d2ViOmRpbS1zdGF0aWMtcWEuZGlzLWNsb3VkLXFhLmNmYXBwcy5ldTEyLmhhbmEub25kZW1hbmQuY29tOmRpbS1ob3N0ZWQ6MDQ0OTY1MTktOTY1Ny00ZWIzLWE3NTQtZGQ5MjkzNjRiYzcxOmNhci1tYW51ZmFjdHVyZXIja2V5cy1lOTMwMWFjZC0zMjMxLTQ4YTgtYmE5Zi1lY2E3ZWE5YWNkNDEiLCJhbGciOiJFUzI1NksiLCJ0eXAiOiJKV1QifQ.eyJ2cCI6eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvMjAxOC9jcmVkZW50aWFscy92MSJdLCJ0eXBlIjpbIlZlcmlmaWFibGVQcmVzZW50YXRpb24iXSwidmVyaWZpYWJsZUNyZWRlbnRpYWwiOlsiZXlKcmFXUWlPaUprYVdRNmQyVmlPbVJwYlMxemRHRjBhV010Y1dFdVpHbHpMV05zYjNWa0xYRmhMbU5tWVhCd2N5NWxkVEV5TG1oaGJtRXViMjVrWlcxaGJtUXVZMjl0T21ScGJTMW9iM04wWldRNk1qRXdNalprWXpRdE1tSXpOUzAwTTJWa0xXSXdPVEF0WWpFek1EZGpOak5pWkdVeE9tTmhkR1Z1WVMxNExXOXdZMjh0YVhOemRXVnlJMnRsZVhNdE9EVXlabVEyTnprdFpqUTNNQzAwWlRZeExXRmtPVEl0WkRWa1pURXpZV0kwTjJReUlp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VptRmpkSFZ5WlhJaUxDSnFkR2tpT2lKaE5EVmlPVEExWkdJNU5HTm1NV05rTm1Rd05qSTBOVFZpTURVMll6Y3hOelpoTWpGbVlqZ3lOemswTmpKak16STJPREJoWWpReFlpSXNJbTVpWmlJNk1UY3hPVFE0TnpFMU9YMC5iUWVIRGhHREVzR3ZBWV93cG9XeHUxR1JReGNrS3Y4VDdkZGljcG5CMnEwbGVTX3pVNUFvYmhpdlktZVVYMGZJNzlPWDZINUNmajBraGpJRlJsOFR5QSJdfSwiYXVkIjpudWxsLCJub25jZSI6IjBjNzViYzFhLWQ5NWItNGYwNi1hYWU2LTEzMjNjYWE0MjRmNyIsImp0aSI6IjkyYWE0MDVjZDNhYzAzMjJlYzIxMDBhOWNhMjlhZGNjN2Q0ZjgyY2M5M2VjNTcxNzYzYWY5ZmIwIiwiaXNzIjoiZGlkOndlYjpkaW0tc3RhdGljLXFhLmRpcy1jbG91ZC1xYS5jZmFwcHMuZXUxMi5oYW5hLm9uZGVtYW5kLmNvbTpkaW0taG9zdGVkOjA0NDk2NTE5LTk2NTctNGViMy1hNzU0LWRkOTI5MzY0YmM3MTpjYXItbWFudWZhY3R1cmVyIn0.HcKUtedB9AdXy_7NsAkwMSkwUZ-8xz87maqIDuZbO0m1kRILlnHFKTLti3mPt7uNijEp5nEfCT6UxkyothbmHQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters