Last active
May 14, 2020 03:57
-
-
Save santteegt/7b9f3edccbae146c6bdef9ee32ab5443 to your computer and use it in GitHub Desktop.
Sample Asset to be published on Aquarius
This file contains hidden or 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
| { | |
| "@context": "https://w3id.org/did/v1", | |
| "id": "did:op:89f7f4dd113f486484c53f962d98f9da7f0769efee5245e39e74c734938fe02b", | |
| "publicKey": [ | |
| { | |
| "id": "did:op:89f7f4dd113f486484c53f962d98f9da7f0769efee5245e39e74c734938fe02b", | |
| "type": "EthereumECDSAKey", | |
| "owner": "0xc6853698E47a664E96545C24772ca9434BE9A80E" | |
| } | |
| ], | |
| "authentication": [ | |
| { | |
| "type": "RsaSignatureAuthentication2018", | |
| "publicKey": "did:op:89f7f4dd113f486484c53f962d98f9da7f0769efee5245e39e74c734938fe02b" | |
| } | |
| ], | |
| "service": [ | |
| { | |
| "type": "authorization", | |
| "service": "SecretStore", | |
| "serviceEndpoint": "https://secret-store.nile.dev-ocean.com", | |
| "attributes": { | |
| "main": {} | |
| }, | |
| "index": 0 | |
| }, | |
| { | |
| "type": "metadata", | |
| "serviceEndpoint": "https://aquarius.nile.dev-ocean.com/api/v1/aquarius/assets/ddo/did:op:89f7f4dd113f486484c53f962d98f9da7f0769efee5245e39e74c734938fe02b", | |
| "attributes": { | |
| "curation": { | |
| "rating": 0, | |
| "numVotes": 0 | |
| }, | |
| "additionalInformation": { | |
| "categories": [ | |
| "image" | |
| ], | |
| "copyrightHolder": "Ethel Durgan", | |
| "description": "EXAMPLE ONLY", | |
| "inLanguage": "en", | |
| "links": [ | |
| { | |
| "name": "example model", | |
| "url": "https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM" | |
| }, | |
| { | |
| "name": "example code", | |
| "type": "example code", | |
| "url": "https://github.com/slothkong/CNN_classification_10_monkey_species" | |
| }, | |
| { | |
| "name": "n5151.jpg", | |
| "type": "discovery", | |
| "url": "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg" | |
| }, | |
| { | |
| "name": "sample.zip", | |
| "type": "sample", | |
| "url": "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip" | |
| } | |
| ], | |
| "tags": [ | |
| "image data", | |
| "classification", | |
| "animals" | |
| ], | |
| "workExample": "image path, id, label" | |
| }, | |
| "main": { | |
| "author": "MyLittleOcean", | |
| "dateCreated": "2020-05-14T03:43:17.860Z", | |
| "files": [ | |
| { | |
| "checksum": "2bf9d229d110d1976cdf85e9f3256c7f", | |
| "checksumType": "MD5", | |
| "compression": "zip", | |
| "contentLength": "12057507", | |
| "contentType": "application/zip", | |
| "encoding": "UTF-8", | |
| "index": 0 | |
| }, | |
| { | |
| "checksum": "354d19c0733c47ef3a6cce5b633116b0", | |
| "checksumType": "MD5", | |
| "contentLength": "928", | |
| "contentType": "text/txt", | |
| "index": 1, | |
| "resourceId": "test" | |
| } | |
| ], | |
| "license": "CC0: Public Domain", | |
| "name": "Wisoky - Mosciski dataset", | |
| "price": "1000000000000000000", | |
| "type": "dataset" | |
| }, | |
| "encryptedFiles": "0xd0f552d4d92dd2df5dc9927aebc6c2e0058bd47401a705898f80d1a4fe91ca5166848f5f1c46922971d20a6eba38cc0a6626fde6c161599d4fab771a91c0bc712bf2f506d84de7e0310ad6a14ab5b1cd6d9b0ab098484a3a93e2897fbf1579c072dfea58151d1bd0d6249d83d6193408f55723391c65518cb692d90da019428ab389c319993cce91f4e91f8f9ffc4de808ade84a179e5933f4f989b79c8f041c0c4713671151e1a288b3d0957196cf5df9f6d857eadfee1f3bd71032dd6f4605c8145702115a9c6eb37f7877a06a407a588a7f48734441a31e316a35bd0467d93a46fec35f50a725e0624832d8ec43bdf44f21918be2db02b40ddc955c7e0b462955b9132cb7c189b3bab9a870c4a160b905fac777d09f23553a2394574e624294e327f0fcbef77cc484cd50b3a56fbb0c14c57f23e3aa1a62a71faa54060d3046baf95015c38a730152ae1f786a9324762070629b1c23c4f707a7d8462e2c227d3c16410b1a69b5b0d53f9cca2bb2ff2f83a5dbc4e502b0a7b6dd8fee581ad061bebfcce687a7acda55a40859c4f1e5d76bf8871c648090479d0d8f6c7c2088780d6965e795928fcb1eb62571c80307fc7a706db1b6e6db1f9d080d44c4c95d28cda9174643b934ce1f1a00461d6dc6adc44cbabd4ac6775b8061e02d1c2dc1f9ae3bed95a038e3f8ba6f0c08b2b309420c16b305a1d582784484cc13977697f8cf8a350f5449ff93bb89d82c49e76c9e81c50e8a16e6901cb6bb338d6b5f3f4f7c719e7b1e1378bdda4f" | |
| }, | |
| "index": 1 | |
| }, | |
| { | |
| "type": "access", | |
| "index": 2, | |
| "serviceEndpoint": "https://brizo.nile.dev-ocean.com/api/v1/brizo/services/consume", | |
| "templateId": "0xff52b4c00ceacf1cfd7296af9569da77db4e9ae9b3d42a3022516b9c1adca8de", | |
| "attributes": { | |
| "main": { | |
| "creator": "0xc6853698E47a664E96545C24772ca9434BE9A80E", | |
| "price": "1000000000000000000", | |
| "timeout": 3600, | |
| "name": "dataAssetAccessServiceAgreement" | |
| }, | |
| "serviceAgreementTemplate": { | |
| "contractName": "EscrowAccessSecretStoreTemplate", | |
| "events": [ | |
| { | |
| "name": "AgreementActorAdded", | |
| "actorType": "provider", | |
| "handler": { | |
| "moduleName": "", | |
| "functionName": "fulfillLockRewardCondition", | |
| "version": "0.1" | |
| } | |
| } | |
| ], | |
| "fulfillmentOrder": [ | |
| "lockReward.fulfill", | |
| "accessSecretStore.fulfill", | |
| "escrowReward.fulfill" | |
| ], | |
| "conditionDependency": { | |
| "lockReward": [], | |
| "accessSecretStore": [], | |
| "escrowReward": [ | |
| "lockReward", | |
| "accessSecretStore" | |
| ] | |
| }, | |
| "conditions": [ | |
| { | |
| "name": "lockReward", | |
| "timelock": 0, | |
| "timeout": 0, | |
| "contractName": "LockRewardCondition", | |
| "functionName": "fulfill", | |
| "parameters": [ | |
| { | |
| "name": "_rewardAddress", | |
| "type": "address", | |
| "value": "0xc6853698E47a664E96545C24772ca9434BE9A80E" | |
| }, | |
| { | |
| "name": "_amount", | |
| "type": "uint256", | |
| "value": "1000000000000000000" | |
| } | |
| ], | |
| "events": [ | |
| { | |
| "name": "Fulfilled", | |
| "actorType": "provider", | |
| "handler": { | |
| "moduleName": "lockRewardCondition", | |
| "functionName": "fulfillAccessSecretStoreCondition", | |
| "version": "0.1" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "accessSecretStore", | |
| "timelock": 0, | |
| "timeout": 0, | |
| "contractName": "AccessSecretStoreCondition", | |
| "functionName": "fulfill", | |
| "parameters": [ | |
| { | |
| "name": "_documentId", | |
| "type": "bytes32", | |
| "value": "89f7f4dd113f486484c53f962d98f9da7f0769efee5245e39e74c734938fe02b" | |
| }, | |
| { | |
| "name": "_grantee", | |
| "type": "address", | |
| "value": "" | |
| } | |
| ], | |
| "events": [ | |
| { | |
| "name": "Fulfilled", | |
| "actorType": "provider", | |
| "handler": { | |
| "moduleName": "accessSecretStore", | |
| "functionName": "fulfillEscrowRewardCondition", | |
| "version": "0.1" | |
| } | |
| }, | |
| { | |
| "name": "TimedOut", | |
| "actorType": "consumer", | |
| "handler": { | |
| "moduleName": "accessSecretStore", | |
| "functionName": "refundReward", | |
| "version": "0.1" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "name": "escrowReward", | |
| "timelock": 0, | |
| "timeout": 0, | |
| "contractName": "EscrowReward", | |
| "functionName": "fulfill", | |
| "parameters": [ | |
| { | |
| "name": "_amount", | |
| "type": "uint256", | |
| "value": "1000000000000000000" | |
| }, | |
| { | |
| "name": "_receiver", | |
| "type": "address", | |
| "value": "" | |
| }, | |
| { | |
| "name": "_sender", | |
| "type": "address", | |
| "value": "" | |
| }, | |
| { | |
| "name": "_lockCondition", | |
| "type": "bytes32", | |
| "value": "" | |
| }, | |
| { | |
| "name": "_releaseCondition", | |
| "type": "bytes32", | |
| "value": "" | |
| } | |
| ], | |
| "events": [ | |
| { | |
| "name": "Fulfilled", | |
| "actorType": "provider", | |
| "handler": { | |
| "moduleName": "escrowRewardCondition", | |
| "functionName": "verifyRewardTokens", | |
| "version": "0.1" | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "created": "2020-05-14T03:43:39Z", | |
| "proof": { | |
| "created": "2020-05-14T03:43:39Z", | |
| "creator": "0xc6853698E47a664E96545C24772ca9434BE9A80E", | |
| "type": "DDOIntegritySignature", | |
| "signatureValue": "0xa4cc1757e98a7321531e6a46a2712eec1de2a40d4abac8226553be2a564d4656393ee909dc900d47e21e874c4a77be8063955e91ccc7e16be702c2d596c656da1b" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment