Skip to content

Commit f0b3c64

Browse files
committed
add content-addressed storage vocab
Signed-off-by: Troy Ronda <[email protected]>
1 parent ff7ff52 commit f0b3c64

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

contexts/orb-v1.jsonld

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@
4040
"id": "@id",
4141
"type": "@type"
4242
}
43+
},
44+
"ContentAddressedStorage": {
45+
"@id": "https://trustbloc.dev/ns/orb#ContentAddressedStorage",
46+
"@context": {
47+
"@version": 1.1,
48+
"@protected": true,
49+
50+
"id": "@id",
51+
"type": "@type",
52+
53+
"orb": "https://trustbloc.dev/ns/orb#",
54+
55+
"cid": "orb:contentIdentifier"
56+
}
4357
}
4458
}
4559
}

index.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,9 @@ <h4>AnchorCredential</h4>
778778
],
779779
"published": "2021-01-27T09:30:10Z",
780780
"target": {
781-
"type": "Cas",
782-
"id": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
781+
"id": "https://sally.example.com/cas/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
782+
"type": "ContentAddressedStorage",
783+
"cid": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
783784
},
784785
"object": {
785786
"@context": [
@@ -977,8 +978,9 @@ <h4>Create Activity</h4>
977978
"id": "http://sally.example.com/transactions/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
978979
"type": "AnchorCredentialReference",
979980
"target": {
980-
"type": "Cas",
981-
"id": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
981+
"id": "https://sally.example.com/cas/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
982+
"type": "ContentAddressedStorage",
983+
"cid": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
982984
}
983985
}
984986
}
@@ -1008,8 +1010,9 @@ <h4>Create Activity</h4>
10081010
],
10091011
"published": "2021-01-27T09:30:10Z",
10101012
"target": {
1011-
"type": "Cas",
1012-
"id": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
1013+
"id": "https://sally.example.com/cas/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
1014+
"type": "ContentAddressedStorage",
1015+
"cid": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
10131016
},
10141017
"object": {
10151018
"@context": [
@@ -1080,8 +1083,9 @@ <h4>Announce Activity</h4>
10801083
"id": "http://sally.example.com/transactions/bafkreihwsnuregceqh263vgdathcprnbvatyat6h6mu7ipjhhodcdbyhoy",
10811084
"type": "AnchorCredentialReference",
10821085
"target": {
1083-
"type": "Cas",
1084-
"id": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
1086+
"id": "https://sally.example.com/cas/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
1087+
"type": "ContentAddressedStorage",
1088+
"cid": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
10851089
}
10861090
}
10871091
]
@@ -1120,8 +1124,9 @@ <h4>Announce Activity</h4>
11201124
"id": "http://sally.example.com/transactions/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
11211125
"type": "AnchorCredentialReference",
11221126
"target": {
1123-
"type": "Cas",
1124-
"id": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
1127+
"id": "https://sally.example.com/cas/bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y",
1128+
"type": "ContentAddressedStorage",
1129+
"cid": "bafkreiatkubvbkdidscmqynkyls3iqawdqvthi7e6mbky2amuw3inxsi3y"
11251130
},
11261131
"object": {
11271132
"@context": [
@@ -1157,10 +1162,6 @@ <h4>Announce Activity</h4>
11571162
<p>
11581163
On success, HTTP status code 200 is returned.
11591164
</p>
1160-
1161-
<p class="issue" title="Target type">
1162-
We should review the above examples for the appropriate target type.
1163-
</p>
11641165
</section>
11651166

11661167
<section class="normative">

0 commit comments

Comments
 (0)