2018-11-01 11:04:59 +01:00
|
|
|
{
|
|
|
|
"@context": "https://w3id.org/future-method/v1",
|
2018-11-05 10:01:58 +01:00
|
|
|
"id": "did:op:08a429b8529856d59867503f8056903a680935a76950bb9649785cc97869a43d",
|
2018-11-01 11:04:59 +01:00
|
|
|
"publicKey": [
|
|
|
|
{
|
|
|
|
"id": "did:op:123456789abcdefghi#keys-1",
|
|
|
|
"type": "RsaVerificationKey2018",
|
|
|
|
"owner": "did:op:123456789abcdefghi",
|
|
|
|
"publicKeyPem": "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "did:op:123456789abcdefghi#keys-2",
|
|
|
|
"type": "Ed25519VerificationKey2018",
|
|
|
|
"owner": "did:op:123456789abcdefghi",
|
|
|
|
"publicKeyBase58": "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "did:op:123456789abcdefghi#keys-3",
|
|
|
|
"type": "RsaPublicKeyExchangeKey2018",
|
|
|
|
"owner": "did:op:123456789abcdefghi",
|
|
|
|
"publicKeyPem": "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"authentication": [
|
|
|
|
{
|
|
|
|
"type": "RsaSignatureAuthentication2018",
|
|
|
|
"publicKey": "did:op:123456789abcdefghi#keys-1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ieee2410Authentication2018",
|
|
|
|
"publicKey": "did:op:123456789abcdefghi#keys-2"
|
|
|
|
}
|
|
|
|
],
|
2018-11-05 10:01:58 +01:00
|
|
|
"proof": {
|
|
|
|
"type": "UUIDSignature",
|
|
|
|
"created": "2016-02-08T16:02:20Z",
|
|
|
|
"creator": "did:example:8uQhQMGzWxR8vw5P3UWH1ja",
|
|
|
|
"signatureValue": "QNB13Y7Q9...1tzjn4w=="
|
|
|
|
},
|
2018-11-01 11:04:59 +01:00
|
|
|
"service": [
|
|
|
|
{
|
2019-08-16 14:12:31 +02:00
|
|
|
"type": "access",
|
2019-08-16 16:12:42 +02:00
|
|
|
"index": 0,
|
2018-11-05 10:01:58 +01:00
|
|
|
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${pubKey}&serviceId={serviceId}&url={url}",
|
|
|
|
"templateId": "044852b2a670ade5407e78fb2863c51000000000000000000000000000000000",
|
2020-01-29 13:34:12 +01:00
|
|
|
"attributes": {
|
|
|
|
"main": {
|
|
|
|
"name": "dataAssetAccessServiceAgreement",
|
|
|
|
"creator": "0x36A7f3383A63279cDaF4DfC0F3ABc07d90252C6b",
|
|
|
|
"datePublished": "2019-11-15T14:11:23Z",
|
|
|
|
"price": "",
|
|
|
|
"timeout": 36000
|
|
|
|
},
|
|
|
|
"serviceAgreementTemplate": {
|
|
|
|
"contractName": "EscrowAccessSecretStoreTemplate",
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "AgreementCreated",
|
|
|
|
"actorType": "consumer",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "escrowAccessSecretStoreTemplate",
|
|
|
|
"functionName": "fulfillLockRewardCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"fulfillmentOrder": [
|
|
|
|
"lockReward.fulfill",
|
|
|
|
"accessSecretStore.fulfill",
|
|
|
|
"escrowReward.fulfill"
|
|
|
|
],
|
|
|
|
"conditionDependency": {
|
|
|
|
"lockReward": [],
|
|
|
|
"accessSecretStore": [],
|
|
|
|
"escrowReward": ["lockReward", "accessSecretStore"]
|
2018-11-05 10:01:58 +01:00
|
|
|
},
|
2020-01-29 13:34:12 +01:00
|
|
|
"conditions": [
|
|
|
|
{
|
|
|
|
"name": "lockReward",
|
|
|
|
"timelock": 0,
|
|
|
|
"timeout": 0,
|
|
|
|
"contractName": "LockRewardCondition",
|
|
|
|
"functionName": "fulfill",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "_rewardAddress",
|
|
|
|
"type": "address",
|
|
|
|
"value": "0x36A7f3383A63279cDaF4DfC0F3ABc07d90252C6b"
|
|
|
|
},
|
2018-11-05 10:01:58 +01:00
|
|
|
{
|
2020-01-29 13:34:12 +01:00
|
|
|
"name": "_amount",
|
|
|
|
"type": "uint256",
|
|
|
|
"value": "0"
|
2018-11-05 10:01:58 +01:00
|
|
|
}
|
2020-01-29 13:34:12 +01:00
|
|
|
],
|
|
|
|
"events": [
|
2018-11-05 10:01:58 +01:00
|
|
|
{
|
2020-01-29 13:34:12 +01:00
|
|
|
"name": "Fulfilled",
|
|
|
|
"actorType": "publisher",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "lockRewardCondition",
|
|
|
|
"functionName": "fulfillAccessSecretStoreCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
2018-11-05 10:01:58 +01:00
|
|
|
}
|
|
|
|
]
|
2020-01-29 13:34:12 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "accessSecretStore",
|
|
|
|
"timelock": 0,
|
|
|
|
"timeout": 0,
|
|
|
|
"contractName": "AccessSecretStoreCondition",
|
|
|
|
"functionName": "fulfill",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "_documentId",
|
|
|
|
"type": "bytes32",
|
|
|
|
"value": "c678e7e5963d4fdc99afea49ac221d4d4177790f30204417823319d4d35f851f"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_grantee",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"events": [
|
2018-11-05 10:01:58 +01:00
|
|
|
{
|
2020-01-29 13:34:12 +01:00
|
|
|
"name": "Fulfilled",
|
|
|
|
"actorType": "publisher",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "accessSecretStore",
|
|
|
|
"functionName": "fulfillEscrowRewardCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "TimedOut",
|
|
|
|
"actorType": "consumer",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "accessSecretStore",
|
|
|
|
"functionName": "fulfillEscrowRewardCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
2018-11-05 10:01:58 +01:00
|
|
|
}
|
|
|
|
]
|
2020-01-29 13:34:12 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "escrowReward",
|
|
|
|
"timelock": 0,
|
|
|
|
"timeout": 0,
|
|
|
|
"contractName": "EscrowReward",
|
|
|
|
"functionName": "fulfill",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "_amount",
|
|
|
|
"type": "uint256",
|
|
|
|
"value": "0"
|
|
|
|
},
|
2018-11-05 10:01:58 +01:00
|
|
|
{
|
2020-01-29 13:34:12 +01:00
|
|
|
"name": "_receiver",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_sender",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_lockCondition",
|
|
|
|
"type": "bytes32",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_releaseCondition",
|
|
|
|
"type": "bytes32",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "Fulfilled",
|
|
|
|
"actorType": "publisher",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "escrowRewardCondition",
|
|
|
|
"functionName": "verifyRewardTokens",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
2018-11-05 10:01:58 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2020-01-29 13:34:12 +01:00
|
|
|
]
|
2018-11-05 10:01:58 +01:00
|
|
|
}
|
2020-01-29 13:34:12 +01:00
|
|
|
}
|
2018-11-01 11:04:59 +01:00
|
|
|
},
|
|
|
|
{
|
2019-08-16 14:12:31 +02:00
|
|
|
"type": "compute",
|
2019-08-16 16:12:42 +02:00
|
|
|
"index": 1,
|
2020-01-31 13:09:37 +01:00
|
|
|
"serviceEndpoint": "http://localhost:8030/api/v1/brizo/services/compute",
|
2020-01-27 19:14:12 +01:00
|
|
|
"templateId": "",
|
2020-01-22 12:47:56 +01:00
|
|
|
"attributes": {
|
|
|
|
"main": {
|
2020-01-27 19:14:12 +01:00
|
|
|
"name": "dataAssetComputingServiceAgreement",
|
2020-01-31 13:09:37 +01:00
|
|
|
"creator": "0x36A7f3383A63279cDaF4DfC0F3ABc07d90252C6b",
|
2020-01-22 12:47:56 +01:00
|
|
|
"datePublished": "2019-04-09T19:02:11Z",
|
|
|
|
"price": "10",
|
|
|
|
"timeout": 86400,
|
|
|
|
"provider": {
|
|
|
|
"type": "Azure",
|
|
|
|
"description": "",
|
|
|
|
"environment": {
|
|
|
|
"cluster": {
|
|
|
|
"type": "Kubernetes",
|
|
|
|
"url": "http://10.0.0.17/xxx"
|
|
|
|
},
|
|
|
|
"supportedContainers": [
|
|
|
|
{
|
|
|
|
"image": "tensorflow/tensorflow",
|
|
|
|
"tag": "latest",
|
|
|
|
"checksum": "sha256:cb57ecfa6ebbefd8ffc7f75c0f00e57a7fa739578a429b6f72a0df19315deadc"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"image": "tensorflow/tensorflow",
|
|
|
|
"tag": "latest",
|
|
|
|
"checksum": "sha256:cb57ecfa6ebbefd8ffc7f75c0f00e57a7fa739578a429b6f72a0df19315deadc"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"supportedServers": [
|
|
|
|
{
|
|
|
|
"serverId": "1",
|
|
|
|
"serverType": "xlsize",
|
|
|
|
"price": "50",
|
|
|
|
"cpu": "16",
|
|
|
|
"gpu": "0",
|
|
|
|
"memory": "128gb",
|
|
|
|
"disk": "160gb",
|
|
|
|
"maxExecutionTime": 86400
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"serverId": "2",
|
|
|
|
"serverType": "medium",
|
|
|
|
"price": "10",
|
|
|
|
"cpu": "2",
|
|
|
|
"gpu": "0",
|
|
|
|
"memory": "8gb",
|
|
|
|
"disk": "80gb",
|
|
|
|
"maxExecutionTime": 86400
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2020-01-27 19:14:12 +01:00
|
|
|
},
|
|
|
|
"additionalInformation": {},
|
|
|
|
"serviceAgreementTemplate": {
|
|
|
|
"contractName": "EscrowComputeExecutionTemplate",
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "AgreementCreated",
|
|
|
|
"actorType": "consumer",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "serviceExecutionTemplate",
|
|
|
|
"functionName": "fulfillLockRewardCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"fulfillmentOrder": [
|
|
|
|
"lockReward.fulfill",
|
|
|
|
"serviceExecution.fulfill",
|
|
|
|
"escrowReward.fulfill"
|
|
|
|
],
|
|
|
|
"conditionDependency": {
|
|
|
|
"lockReward": [],
|
|
|
|
"serviceExecution": [],
|
|
|
|
"releaseReward": ["lockReward", "serviceExecution"]
|
|
|
|
},
|
|
|
|
"conditions": [
|
|
|
|
{
|
|
|
|
"name": "lockReward",
|
|
|
|
"timelock": 0,
|
|
|
|
"timeout": 0,
|
|
|
|
"contractName": "LockRewardCondition",
|
|
|
|
"functionName": "fulfill",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "_rewardAddress",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_amount",
|
|
|
|
"type": "uint256",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "Fulfilled",
|
|
|
|
"actorType": "publisher",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "lockRewardCondition",
|
|
|
|
"functionName": "fulfillServiceExecutionCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "serviceExecution",
|
|
|
|
"timelock": 0,
|
|
|
|
"timeout": 0,
|
|
|
|
"contractName": "ComputeExecutionCondition",
|
|
|
|
"functionName": "fulfill",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "_documentId",
|
|
|
|
"type": "bytes32",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_grantee",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "Fulfilled",
|
|
|
|
"actorType": "publisher",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "serviceExecution",
|
|
|
|
"functionName": "fulfillServiceExecutionCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "TimedOut",
|
|
|
|
"actorType": "consumer",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "serviceExec",
|
|
|
|
"functionName": "fulfillServiceExecutionCondition",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "escrowReward",
|
|
|
|
"timelock": 0,
|
|
|
|
"timeout": 0,
|
|
|
|
"contractName": "EscrowReward",
|
|
|
|
"functionName": "fulfill",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "_amount",
|
|
|
|
"type": "uint256",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_receiver",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_sender",
|
|
|
|
"type": "address",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_lockCondition",
|
|
|
|
"type": "bytes32",
|
|
|
|
"value": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "_releaseCondition",
|
|
|
|
"type": "bytes32",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"events": [
|
|
|
|
{
|
|
|
|
"name": "Fulfilled",
|
|
|
|
"actorType": "publisher",
|
|
|
|
"handler": {
|
|
|
|
"moduleName": "escrowRewardCondition",
|
|
|
|
"functionName": "verifyRewardTokens",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2020-01-22 12:47:56 +01:00
|
|
|
}
|
|
|
|
}
|
2018-11-01 11:04:59 +01:00
|
|
|
},
|
|
|
|
{
|
2019-08-16 14:12:31 +02:00
|
|
|
"type": "metadata",
|
2019-08-16 16:12:42 +02:00
|
|
|
"index": 2,
|
2018-11-01 11:04:59 +01:00
|
|
|
"serviceEndpoint": "http://myaquarius.org/api/v1/provider/assets/metadata/{did}",
|
2019-08-16 16:12:42 +02:00
|
|
|
"attributes": {
|
|
|
|
"main": {
|
2018-11-01 11:04:59 +01:00
|
|
|
"name": "UK Weather information 2011",
|
|
|
|
"type": "dataset",
|
|
|
|
"dateCreated": "2012-10-10T17:00:000Z",
|
|
|
|
"author": "Met Office",
|
|
|
|
"license": "CC-BY",
|
2020-01-29 13:34:12 +01:00
|
|
|
"price": "1000000000000000000",
|
2019-04-29 14:35:42 +02:00
|
|
|
"files": [
|
|
|
|
{
|
2019-08-15 13:23:56 +02:00
|
|
|
"index": 0,
|
|
|
|
"url": "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
|
|
|
"checksum": "085340abffh21495345af97c6b0e761",
|
2019-11-12 13:24:36 +01:00
|
|
|
"contentLength": "12324"
|
2019-04-29 14:35:42 +02:00
|
|
|
},
|
|
|
|
{
|
2019-08-15 13:23:56 +02:00
|
|
|
"url": "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip"
|
2019-04-29 14:35:42 +02:00
|
|
|
}
|
2019-08-15 13:23:56 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"curation": {
|
|
|
|
"rating": 0.93,
|
|
|
|
"numVotes": 123,
|
|
|
|
"schema": "Binary Voting"
|
|
|
|
},
|
|
|
|
"additionalInformation": {
|
|
|
|
"description": "Weather information of UK including temperature and humidity",
|
|
|
|
"copyrightHolder": "Met Office",
|
|
|
|
"workExample": "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
2018-11-01 11:04:59 +01:00
|
|
|
"links": [
|
|
|
|
{
|
2018-11-05 10:01:58 +01:00
|
|
|
"name": "Sample of Asset Data",
|
|
|
|
"type": "sample",
|
|
|
|
"url": "https://foo.com/sample.csv"
|
2018-11-01 11:04:59 +01:00
|
|
|
},
|
|
|
|
{
|
2018-11-05 10:01:58 +01:00
|
|
|
"name": "Data Format Definition",
|
|
|
|
"type": "format",
|
|
|
|
"AssetID": "4d517500da0acb0d65a716f61330969334630363ce4a6a9d39691026ac7908ea"
|
2018-11-01 11:04:59 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"inLanguage": "en",
|
2019-04-29 14:35:42 +02:00
|
|
|
"categories": ["Economy", "Data Science"],
|
|
|
|
"tags": ["weather", "uk", "2011", "temperature", "humidity"],
|
|
|
|
"updateFrequency": "yearly",
|
2018-11-01 11:04:59 +01:00
|
|
|
"structuredMarkup": [
|
|
|
|
{
|
|
|
|
"uri": "http://skos.um.es/unescothes/C01194/jsonld",
|
|
|
|
"mediaType": "application/ld+json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"uri": "http://skos.um.es/unescothes/C01194/turtle",
|
|
|
|
"mediaType": "text/turtle"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-04-29 14:35:42 +02:00
|
|
|
}
|