Skip to content

Commit

Permalink
Merge pull request #145 from OpSecId/pstlouis/png-provide-credential-…
Browse files Browse the repository at this point in the history
…examples

PNG provide credential examples
  • Loading branch information
krobinsonca authored Jul 12, 2024
2 parents 3702760 + a3bd5bd commit 53531d5
Show file tree
Hide file tree
Showing 8 changed files with 528 additions and 220 deletions.
66 changes: 43 additions & 23 deletions applications/tenure-branch/did.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,45 @@
{
"@context": ["https://w3.org/ns/did/v1", "https://w3id.org/security/v2"],
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"verificationMethod": [
{
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#verkey",
"controller": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"type": "Ed25519VerificationKey2018",
"publicKeyBase58": "H4s5sznjWKwK2cc5A8swZQNoY8uZUVzFvUN8DdQvqaGm"
"@context": [
"https://w3.org/ns/did/v1",
"https://w3id.org/security/jwk/v1",
"https://w3id.org/security/multikey/v1"
],
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"verificationMethod": [
{
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#multikey",
"type": "Ed25519VerificationKey2020",
"controller": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"publicKeyMultibase": "z6MkvX88UF3AqsRn97SmqhqnQVvoMiBQtPEccVH43uNwko49"
},
{
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#verkey",
"type": "Ed25519VerificationKey2018",
"controller": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"publicKeyBase58": "H4s5sznjWKwK2cc5A8swZQNoY8uZUVzFvUN8DdQvqaGm"
},
{
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#jwk",
"type": "JsonWebKey",
"controller": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "7rhdEZRZZ9tAuAL7iww7kYywyCmDV25RGHwyJ2NznmY"
}
],
"authentication": [
"did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#verkey"
],
"assertionMethod": [
"did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#verkey"
],
"service": [
{
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#linked-domain",
"type": "LinkedDomain",
"serviceEndpoint": "https://www2.gov.bc.ca/gov/content/governments/organizational-structure/ministries-organizations/ministries/energy-mines-and-petroleum-resources"
}
]
}
}
],
"authentication": [
"did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#multikey"
],
"assertionMethod": [
"did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#multikey"
],
"service": [
{
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#linked-domain",
"type": "LinkedDomain",
"serviceEndpoint": "https://bcgov.github.io/bc-vcpedia/applications/tenure-branch/governance"
}
]
}
100 changes: 100 additions & 0 deletions credentials/bc-petroleum-and-natural-gas-title/context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"@context": {
"@protected": true,


"governance": "https://bcgov.github.io/bc-vcpedia/credentials/bc-petroleum-and-natural-gas-title/vocabulary#",

"url": "https://schema.org/url",

"BCPetroleumNaturalGasTitleCredential": "governance",
"Director": "governance:Director",
"Law": "https://www.bclaws.gov.bc.ca/",

"LegalEntity": {
"@id": "governance:LegalEntity",
"@context": {
"@protected": true,

"id": "@id",
"type": "@type",
"legalName": "https://schema.org/legalName",
"identifier": "https://schema.org/identifier"
}
},
"PetroleumNaturalGasTitle": {
"@id": "governance:PetroleumNaturalGasTitle",
"@context": {
"@protected": true,

"id": "@id",
"type": "@type",

"area": "governance:area",
"term": "governance:term",
"caveats": "governance:caveats",
"titleType": "governance:titleType",
"titleNumber": "governance:titleNumber",
"originType": "governance:originType",
"originNumber": "governance:originNumber"
}
},

"Tract": {
"@id": "governance:Tract",
"@context": {
"@protected": true,

"id": "@id",
"type": "@type",

"zones": "governance:tractLocations",
"notes": "governance:tractNotes",
"rights": {
"@id": "governance:tractRights",
"@context": {
"@protected": true,
"inclusion": "governance:rightInclusion"
}
}
}
},

"Well": {
"@id": "governance:Well",
"@context": {
"@protected": true,

"id": "@id",
"type": "@type",

"surfaceLocation": "governance:surfaceLocation"
}
},

"TitleHolder": {
"@id": "governance:TitleHolder",
"@context": {
"@protected": true,

"id": "@id",
"type": "@type",

"interest": "governance:interest"
}
},

"DrillingPermit": "governance:Permit",
"PetroleumLease": "governance:Lease",
"NaturalGasLease": "governance:Lease",
"PetroleumAndNaturalGasLease": "governance:Lease",

"Lessee": "governance:Lessee",
"Licensee": "governance:Licensee",
"Permittee": "governance:Permittee",

"Petroleum": "governance:Petroleum",
"NaturalGas": "governance:NaturalGas"

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"verifiableCredential": {
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2",
"https://untp.traceability.site/core/dcc/v0.jsonld",
"https://untp.traceability.site/bcgov/png/v0.jsonld",
"https://w3id.org/security/data-integrity/v2",
"https://w3id.org/security/suites/ed25519-2020/v1"
],
"id": "https://bcgov.github.io/bc-vcpedia/credentials/bc-petroleum-and-natural-gas-title/examples/draft-embeded-signature.jsonld",
"type": [
"ExampleCredential",
"VerifiableCredential",
"DigitalConformityCredential",
"BCPetroleum&NaturalGasTitleCredential"
],
"issuer": {
"type": [
"Director"
],
"id": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch",
"url": "https://www2.gov.bc.ca/gov/content/industry/natural-gas-oil/petroleum-natural-gas-tenure",
"name": "BC Director of Petroleum Lands",
"description": "Director means an officer or employee of the ministry who is designated as the Director of Petroleum Lands by the minister"
},
"credentialSubject": [
{
"type": [
"ConformityAttestation"
],
"issuedTo": {
"type": [
"LegalEntity",
"TitleHolder",
"Lessee"
],
"id": "https://orgbook.gov.bc.ca/entity/A0131571",
"legalName": "PACIFIC CANBRIAM ENERGY LIMITED",
"interest": 100,
"identifier": "A0131571"
},
"scope": {
"type": [
"ConformityAssessmentScheme"
],
"name": "B.C. Petroleum & Natural Gas Title - DRAFT",
"url": "https://bcgov.github.io/bc-vcpedia/credentials/bc-petroleum-and-natural-gas-title/governance.html"
},
"assessments": [
{
"type": [
"ConformityAssessment",
"Petroleum&NaturalGasTitle",
"NaturalGasLease"
],
"referenceRegulation": {
"type": [
"Regulation",
"Law"
],
"url": "https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/00_96361_01",
"name": "Petroleum and Natural Gas Act"
},
"conformityTopic": "GovernanceCompliance",
"compliance": true,
"assessedProducts": [
{
"type": [
"NaturalGas",
"Tract"
],
"zones": [
"NTS 094-B-09 BLK A UNITS 34 35 44 45"
],
"rights": [
{
"inclusion": true,
"description": "FROM BASE OF 38002 PARDONET-BALDONNEL ZONE TO BASE OF 34002 ARTEX-HALFWAY-DOIG ZONE"
}
],
"notes": [
"38002 PARDONET-BALDONNEL ZONE DEFINED IN THE INTERVAL 4752.4'-5001.2' ON THE GAMMA RAY NEUTRON LOG OF THE WELL W.A. 238 C-53-D/94-B-09",
"34002 ARTEX-HALFWAY-DOIG ZONE DEFINED IN THE INTERVAL 5970.7'-6952.7' ON THE GAMMA RAY NEUTRON LOG OF THE WELL W.A. 238 C-53-D/94-B-09"
]
},
{
"type": [
"NaturalGas",
"Tract"
],
"zones": [
"NTS 094-B-09 BLK A UNITS 24 25"
],
"rights": [
{
"inclusion": true,
"description": "IN 34002 ARTEX-HALFWAY-DOIG ZONE"
}
],
"notes": [
"34002 ARTEX-HALFWAY-DOIG ZONE DEFINED IN THE INTERVAL 5970.7'-6952.7' ON THE GAMMA RAY NEUTRON LOG OF THE WELL W.A. 238 C-53-D/94-B-09"
]
}
],
"assessedFacilities": [
{
"type": [
"Well"
],
"name": "PACIFIC CANBRIAM",
"surfaceLocation": "KOBES A- 003-A/094-B-09"
}
],
"area": 428,
"term": 5,
"titleType": "NaturalGasLease",
"titleNumber": 746,
"originType": "NaturalGasLease",
"originNumber": 33014,
"caveats": []
}
]
}
],
"description": "The majority of subsurface petroleum and natural gas (PNG) resources in British Columbia (B.C.) are owned by the Province. By entering into a tenure agreement with the Province, private industry can develop these resources. Tenure agreements are the mechanism used by the Province to give rights to petroleum and natural gas resources through issuance of Petroleum and Natural Gas Titles.",
"name": "B.C. Petroleum & Natural Gas Title - DRAFT",
"proof": {
"type": "Ed25519Signature2020",
"verificationMethod": "did:web:bcgov.github.io:bc-vcpedia:applications:tenure-branch#multikey",
"created": "2024-07-11T18:49:43+00:00",
"proofPurpose": "assertionMethod",
"proofValue": "z5wDEif5uBk8feHkXCdvHp6PZT4MZYb1Bx5ZFT1NPbxTynYaGtuQcPUtS71NZyhEJ6CTn2pp6tovXYWVnsvtKFvd3"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"type": ["EnvelopedVerifiableCredential", "ExampleCredential"],
"id": "data:application/vc+jwt;eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJFZERTQSIsICJraWQiOiAiZGlkOndlYjpiY2dvdi5naXRodWIuaW86YmMtdmNwZWRpYTphcHBsaWNhdGlvbnM6dGVudXJlLWJyYW5jaCNqd2sifQ.eyJAY29udGV4dCI6IFsiaHR0cHM6Ly93d3cudzMub3JnL25zL2NyZWRlbnRpYWxzL3YyIiwgImh0dHBzOi8vd3d3LnczLm9yZy9ucy9jcmVkZW50aWFscy9leGFtcGxlcy92MiIsICJodHRwczovL3VudHAudHJhY2VhYmlsaXR5LnNpdGUvY29yZS9kY2MvdjAuanNvbmxkIiwgImh0dHBzOi8vdW50cC50cmFjZWFiaWxpdHkuc2l0ZS9iY2dvdi9wbmcvdjAuanNvbmxkIl0sICJpZCI6ICJodHRwczovL2JjZ292LmdpdGh1Yi5pby9iYy12Y3BlZGlhL2NyZWRlbnRp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