Skip to content

Commit

Permalink
added all mavennet credentials and tests passing (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhraisha authored May 2, 2020
1 parent 387bbfe commit 94a3bd7
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 0 deletions.
35 changes: 35 additions & 0 deletions plugfest-2020/vendors/mavennet/credentials/BillOfLading.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://schema.org/",
"https://mavennet.github.io/contexts/bill-of-lading-v1.0.jsonld"
],
"id": "http://neo-flow.com/credentials/e94a16cb-35b2-4301-9fb6-7af3d8fe7b81",
"type": ["VerifiableCredential", "BillOfLadingCredential"],
"name": "Bill of Lading",
"description": "Detailed shipment document provided by the carrier to the receiver of products.",
"issuer": "did:v1:test:nym:z6MkfG5HTrBXzsAP8AbayNpG3ZaoyM4PCqNPrdWQRSpHDV6J",
"issuanceDate": "2020-04-09T21:13:13Z",
"credentialSubject": {
"productIdentifier": "3a185b8f-078a-4646-8343-76a45c2856a5",
"bolNumber": "BOL000104976",
"carrier": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"recipient": "did:v1:test:nym:z6MknQLHcwKwopce5ji1Ftsurn8mNL58wTxZB238uEMsegUj",
"transportType": "Pipeline",
"originAddress": {
"address": "Quebec, CAN",
"latitude": "52.9399",
"longitude": "73.5491"
},
"deliveryAddress": {
"address": "Chicago, USA",
"latitude": "41.8781",
"longitude": "87.6298"
},
"valuePerItem": "46",
"totalOrderValue": "126500",
"freightChargeTerms": "Freight Prepaid",
"expectedDeliveryDates": "12-APR-2020",
"comments": ""
}
}
97 changes: 97 additions & 0 deletions plugfest-2020/vendors/mavennet/credentials/CrudeInspection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://schema.org/",
"https://mavennet.github.io/contexts/crude-inspection-v1.0.jsonld"
],
"id": "http://neo-flow.com/credentials/dd0fbb48-7071-11ea-bc55-0242ac130003",
"type": ["VerifiableCredential", "CrudeInspectionCredential"],
"name": "Heavy Sour Dilbit Inspection Report",
"description": "Inspection details of Heavy Sour Dilbit.",
"issuer": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"issuanceDate": "2020-04-09T21:12:48Z",
"credentialSubject": {
"producer": "did:v1:test:nym:z6MkfG5HTrBXzsAP8AbayNpG3ZaoyM4PCqNPrdWQRSpHDV6J",
"certifier": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"category": "Western Canadian Select",
"hsCode": "270900",
"identifier": "3a185b8f-078a-4646-8343-76a45c2856a5",
"name": "Heavy Sour Dilbit Inspection Report",
"description": "Inspection details of Heavy Sour Dilbit",
"volume": "10000",
"address": {
"address": "Edmonton, CAN",
"latitude": "53.5461",
"longitude": "113.4938"
},
"productionDate": "2020-03-30T07:23:14.206Z",
"predecessorOf": "c98f2452-ab18-4cbe-bf89-635fb8ae7f33",
"successorOf": "",
"physicalSpecs": {
"uom": "barrel",
"minimumQuantity": "1000",
"apiGravity": 21,
"viscosityAt10C": "302",
"viscosityAt20C": "157",
"viscosityAt30C": "89.6",
"viscosityAt40C": "55.3",
"viscosityAt45C": "44.4",
"pourPoint": "-30",
"vapourPressure": "51.7",
"density": "928",
"naphtha": "",
"distillateAt350To650F": "",
"gasOilAt650To980F": "",
"residAt980F": "41",
"deemedButane": "1.9",
"tan": "1.05",
"ron": "",
"mon": "",
"boilingPoint": "",
"freezingPoint": "",
"criticalTemperature": "",
"criticalPressure": "",
"autoIgnitionTemperatureInAirAt1atm": "",
"solubilityInTrichloroethylene": "",
"penetrationAt25C100g5sec": "",
"softeningPoint": "",
"ductilityAt25C": "",
"olefin": "",
"color": "",
"odor": "",
"grossCalorificValueAt15C": "",
"netCalorificValueAt15C": "",
"airRequiredForCombustion": "",
"copperCorrosionAt38CFor1Hour": ""
},
"chemicalSpecs": {
"microCarbonResidue": "9.68",
"aromaticsTotalBTEX": "0.23",
"sedimentAndWater": "188",
"liquidPhaseH2S": "",
"mercury": "",
"oxygenates": "",
"filterableSolids": "",
"phosphorousVolatile": "",
"mediumChainTriglycerides": "",
"benzene": "",
"particulates": "",
"organicChlorides": "",
"nickel": "54",
"vanadium": "132.5",
"water": "",
"molecularWeight": "",
"sulphur": "3.66",
"naphthenes": "",
"chloride": "",
"arsenic": "",
"lead": "",
"ethene": "",
"propane": "",
"isoButane": "",
"nButane": "",
"hydrocarbonsHeavier": "",
"unsaturatedHydrocarbons": ""
}
}
}
38 changes: 38 additions & 0 deletions plugfest-2020/vendors/mavennet/credentials/QPInBond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://schema.org/",
"https://mavennet.github.io/contexts/qp-in-bond-v1.0.jsonld"
],
"id": "http://neo-flow.com/credentials/3aee17e7-8c50-4551-a8b4-9bc129c106e8",
"type": ["VerifiableCredential", "QPInbondCredential"],
"name": "QP Inbond",
"description": "Permit document for import/export of shipments that have not been cleared by US Customs.",
"issuer": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"issuanceDate": "2020-04-09T21:13:43Z",
"credentialSubject": {
"productIdentifier": "3a185b8f-078a-4646-8343-76a45c2856a5",
"inBondNumber": "123456789",
"inBondType": "IT (61)",
"portOfEntry": "Superior, WI, USA",
"carrier": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"irsNumber": "12345678-01",
"transportType": "Pipeline",
"recipient": "did:v1:test:nym:z6MknQLHcwKwopce5ji1Ftsurn8mNL58wTxZB238uEMsegUj",
"originAddress": {
"address": "Quebec, CAN",
"latitude": "52.9399",
"longitude": "73.5491"
},
"deliveryAddress": {
"address": "Chicago, USA",
"latitude": "41.8781",
"longitude": "87.6298"
},
"bolNumber": "BOL000104976",
"valuePerItem": "46",
"totalOrderValue": "126500",
"expectedDeliveryDates": "12-APR-2020",
"comments": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://example.gov/credentials/3732",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": {
"id": "did:web:vc.transmute.world"
},
"issuanceDate": "2020-03-10T04:24:12.164Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://schema.org/",
"https://mavennet.github.io/contexts/crude-inspection-v1.0.jsonld"
],
"id": "http://neo-flow.com/credentials/dd0fbb48-7071-11ea-bc55-0242ac130003",
"type": [
"VerifiableCredential",
"CrudeInspectionCredential"
],
"name": "Heavy Sour Dilbit Inspection Report",
"description": "Inspection details of Heavy Sour Dilbit.",
"issuer": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"issuanceDate": "2020-04-09T21:12:48Z",
"credentialSubject": {
"producer": "did:v1:test:nym:z6MkfG5HTrBXzsAP8AbayNpG3ZaoyM4PCqNPrdWQRSpHDV6J",
"certifier": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"category": "Western Canadian Select",
"hsCode": "270900",
"identifier": "3a185b8f-078a-4646-8343-76a45c2856a5",
"name": "Heavy Sour Dilbit Inspection Report",
"description": "Inspection details of Heavy Sour Dilbit",
"volume": "10000",
"address": {
"address": "Edmonton, CAN",
"latitude": "53.5461",
"longitude": "113.4938"
},
"productionDate": "2020-03-30T07:23:14.206Z",
"predecessorOf": "c98f2452-ab18-4cbe-bf89-635fb8ae7f33",
"successorOf": "",
"physicalSpecs": {
"uom": "barrel",
"minimumQuantity": "1000",
"apiGravity": 21,
"viscosityAt10C": "302",
"viscosityAt20C": "157",
"viscosityAt30C": "89.6",
"viscosityAt40C": "55.3",
"viscosityAt45C": "44.4",
"pourPoint": "-30",
"vapourPressure": "51.7",
"density": "928",
"naphtha": "",
"distillateAt350To650F": "",
"gasOilAt650To980F": "",
"residAt980F": "41",
"deemedButane": "1.9",
"tan": "1.05",
"ron": "",
"mon": "",
"boilingPoint": "",
"freezingPoint": "",
"criticalTemperature": "",
"criticalPressure": "",
"autoIgnitionTemperatureInAirAt1atm": "",
"solubilityInTrichloroethylene": "",
"penetrationAt25C100g5sec": "",
"softeningPoint": "",
"ductilityAt25C": "",
"olefin": "",
"color": "",
"odor": "",
"grossCalorificValueAt15C": "",
"netCalorificValueAt15C": "",
"airRequiredForCombustion": "",
"copperCorrosionAt38CFor1Hour": ""
},
"chemicalSpecs": {
"microCarbonResidue": "9.68",
"aromaticsTotalBTEX": "0.23",
"sedimentAndWater": "188",
"liquidPhaseH2S": "",
"mercury": "",
"oxygenates": "",
"filterableSolids": "",
"phosphorousVolatile": "",
"mediumChainTriglycerides": "",
"benzene": "",
"particulates": "",
"organicChlorides": "",
"nickel": "54",
"vanadium": "132.5",
"water": "",
"molecularWeight": "",
"sulphur": "3.66",
"naphthenes": "",
"chloride": "",
"arsenic": "",
"lead": "",
"ethene": "",
"propane": "",
"isoButane": "",
"nButane": "",
"hydrocarbonsHeavier": "",
"unsaturatedHydrocarbons": ""
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2020-04-09T21:13:00Z",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..ICpAlw1L0GaqtBmwgeyohBeJc5Y7b7NeQp6u7quck8fOb1m7aWiISBDg9kL5cXZdDwbfDvxxeEv2A-2xbzf_Bg",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k#z6MkiukuAuQAE8ozxvmahnQGzApvtW7KT5XXKfojjwbdEomY"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://schema.org/",
"https://mavennet.github.io/contexts/qp-in-bond-v1.0.jsonld"
],
"id": "http://neo-flow.com/credentials/3aee17e7-8c50-4551-a8b4-9bc129c106e8",
"type": [
"VerifiableCredential",
"QPInbondCredential"
],
"name": "QP Inbond",
"description": "Permit document for import/export of shipments that have not been cleared by US Customs.",
"issuer": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"issuanceDate": "2020-04-09T21:13:43Z",
"credentialSubject": {
"productIdentifier": "3a185b8f-078a-4646-8343-76a45c2856a5",
"inBondNumber": "123456789",
"inBondType": "IT (61)",
"portOfEntry": "Superior, WI, USA",
"carrier": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k",
"irsNumber": "12345678-01",
"transportType": "Pipeline",
"recipient": "did:v1:test:nym:z6MknQLHcwKwopce5ji1Ftsurn8mNL58wTxZB238uEMsegUj",
"originAddress": {
"address": "Quebec, CAN",
"latitude": "52.9399",
"longitude": "73.5491"
},
"deliveryAddress": {
"address": "Chicago, USA",
"latitude": "41.8781",
"longitude": "87.6298"
},
"bolNumber": "BOL000104976",
"valuePerItem": "46",
"totalOrderValue": "126500",
"expectedDeliveryDates": "12-APR-2020",
"comments": ""
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2020-04-09T21:13:55Z",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..fO8cjS1k5RTCUjg1UunT2MsJtqd8qFPC51-tLCYpUFRShNdRjfXvUjGL5irHDzYAKANYc5e9BNvOMel22af6DA",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:v1:test:nym:z6MkhdmzFu659ZJ4XKj31vtEDmjvsi5yDZG5L7Caz63oP39k#z6MkiukuAuQAE8ozxvmahnQGzApvtW7KT5XXKfojjwbdEomY"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://example.gov/credentials/3732",
"type": ["VerifiableCredential", "UniversityDegreeCredential"],
"issuer": "did:key:z6MkiTsvjrrPNDZ1rrg9QDEYCFWCmEswT6U2cEkScb7edQ9b",
"issuanceDate": "2020-03-10T04:24:12.164Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2020-04-02T03:50:55Z",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..rXSiaExXYzhcF3ClgQqHGrA6_B5g0lAwi4nqUr0Lfg16t2CvwkkUNc8YaGtuAJ_EuyiQkNo8RXH_36LH9iqHAw",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:key:z6MkiTsvjrrPNDZ1rrg9QDEYCFWCmEswT6U2cEkScb7edQ9b#z6MkiTsvjrrPNDZ1rrg9QDEYCFWCmEswT6U2cEkScb7edQ9b"
}
}
Loading

0 comments on commit 94a3bd7

Please sign in to comment.