@carrot-foundation/schemas 0.5.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +24 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -101
- package/dist/index.d.ts +107 -101
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +4 -4
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +5 -5
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +17 -18
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +6 -5
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +34 -17
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +7 -7
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +18 -18
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +4 -4
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.example.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +7 -7
- package/schemas/schema-hashes.json +10 -10
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/collection/collection.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "fb878d368df937ac422ef163bb0b261d8f97cd3525dc232fda128fbd0116c154",
|
|
5
5
|
"type": "Collection",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -236,6 +236,6 @@
|
|
|
236
236
|
"additionalProperties": false,
|
|
237
237
|
"title": "Collection IPFS Record",
|
|
238
238
|
"description": "Collection metadata stored in IPFS, extending the base schema with collection-specific fields used to group and organize credit purchases and retirements in Carrot's ecosystem",
|
|
239
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
240
|
-
"version": "0.
|
|
239
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/collection/collection.schema.json",
|
|
240
|
+
"version": "1.0.0"
|
|
241
241
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit/credit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "376766cbbb9d3cb87a29eb223776fd97ef3a95ba849c0c77b2ad22daec7510b5",
|
|
5
5
|
"type": "Credit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -257,6 +257,6 @@
|
|
|
257
257
|
"additionalProperties": false,
|
|
258
258
|
"title": "Credit IPFS Record",
|
|
259
259
|
"description": "Credit token metadata stored in IPFS, extending the base schema with ERC20-specific details",
|
|
260
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
261
|
-
"version": "0.
|
|
260
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit/credit.schema.json",
|
|
261
|
+
"version": "1.0.0"
|
|
262
262
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "baf3544f11c71c86c2187af967635ccf1ffdddd70cb14365f44d08a32bc3d1f7",
|
|
5
5
|
"type": "CreditPurchaseReceipt",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"created_at": "2025-02-03T12:45:30.000Z",
|
|
21
21
|
"external_id": "f1a2b3c4-d5e6-4789-9012-34567890abcd",
|
|
22
22
|
"external_url": "https://explore.carrot.eco/document/f1a2b3c4-d5e6-4789-9012-34567890abcd",
|
|
23
|
-
"audit_data_hash": "
|
|
23
|
+
"audit_data_hash": "7c06a05937239797c8f8dedf99fe59d799fd54577bff6c887bdffdb94958d7c3",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"purchased_at": "2025-02-03T12:45:30.000Z"
|
|
91
91
|
},
|
|
92
92
|
"buyer": {
|
|
93
|
-
"
|
|
93
|
+
"id_hash": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
94
94
|
"wallet_address": "0x1234567890abcdef1234567890abcdef12345678",
|
|
95
95
|
"identity": {
|
|
96
96
|
"name": "EcoTech Solutions Inc.",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -227,23 +227,22 @@
|
|
|
227
227
|
"buyer": {
|
|
228
228
|
"type": "object",
|
|
229
229
|
"properties": {
|
|
230
|
-
"
|
|
230
|
+
"id_hash": {
|
|
231
231
|
"type": "string",
|
|
232
|
-
"pattern": "^
|
|
233
|
-
"title": "Buyer
|
|
234
|
-
"description": "
|
|
232
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
233
|
+
"title": "Buyer ID Hash",
|
|
234
|
+
"description": "Anonymized pseudonymous identifier linking this buyer to off-chain records via a keyed hash",
|
|
235
235
|
"examples": [
|
|
236
|
-
"
|
|
236
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
237
237
|
]
|
|
238
238
|
},
|
|
239
|
-
"
|
|
240
|
-
"title": "Buyer
|
|
241
|
-
"description": "
|
|
239
|
+
"wallet_address": {
|
|
240
|
+
"title": "Buyer Wallet Address",
|
|
241
|
+
"description": "Ethereum address receiving the credits",
|
|
242
242
|
"type": "string",
|
|
243
|
-
"
|
|
244
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
243
|
+
"pattern": "^0x[a-f0-9]{40}$",
|
|
245
244
|
"examples": [
|
|
246
|
-
"
|
|
245
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
247
246
|
]
|
|
248
247
|
},
|
|
249
248
|
"identity": {
|
|
@@ -287,11 +286,11 @@
|
|
|
287
286
|
}
|
|
288
287
|
},
|
|
289
288
|
"required": [
|
|
290
|
-
"
|
|
289
|
+
"id_hash"
|
|
291
290
|
],
|
|
292
291
|
"additionalProperties": false,
|
|
293
292
|
"title": "Buyer",
|
|
294
|
-
"description": "Buyer information including
|
|
293
|
+
"description": "Buyer information including hashed identifier, optional wallet address, and optional identity"
|
|
295
294
|
},
|
|
296
295
|
"collections": {
|
|
297
296
|
"minItems": 1,
|
|
@@ -779,7 +778,7 @@
|
|
|
779
778
|
},
|
|
780
779
|
"audit_data_hash": {
|
|
781
780
|
"type": "string",
|
|
782
|
-
"pattern": "^[
|
|
781
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
783
782
|
"title": "Audit Data Hash",
|
|
784
783
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
785
784
|
"examples": [
|
|
@@ -1315,6 +1314,6 @@
|
|
|
1315
1314
|
"additionalProperties": false,
|
|
1316
1315
|
"title": "CreditPurchaseReceipt NFT IPFS Record",
|
|
1317
1316
|
"description": "Complete CreditPurchaseReceipt NFT IPFS record including purchase summary, buyer details, credit breakdowns, certificate allocations, and NFT display attributes",
|
|
1318
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1319
|
-
"version": "0.
|
|
1317
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json",
|
|
1318
|
+
"version": "1.0.0"
|
|
1320
1319
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "343a22f6bd51a89b8a6ca83c5136938a2bd3e3c1b42645d05216476085d28d06",
|
|
5
5
|
"type": "CreditRetirementReceipt",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"retired_at": "2025-02-03T12:45:30.000Z"
|
|
84
84
|
},
|
|
85
85
|
"beneficiary": {
|
|
86
|
-
"
|
|
86
|
+
"id_hash": "2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c",
|
|
87
87
|
"identity": {
|
|
88
88
|
"name": "Climate Action Corp",
|
|
89
89
|
"external_id": "d4e5f6a7-b8c9-4e23-8c67-890123def012",
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"credit_holder": {
|
|
94
|
+
"id_hash": "3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d",
|
|
94
95
|
"wallet_address": "0x1234567890abcdef1234567890abcdef12345678"
|
|
95
96
|
},
|
|
96
97
|
"collections": [
|
|
@@ -230,5 +231,5 @@
|
|
|
230
231
|
"smart_contract_address": "0x742d35cc6634c0532925a3b8d8b5c2d4c7f8e1a9"
|
|
231
232
|
}
|
|
232
233
|
},
|
|
233
|
-
"audit_data_hash": "
|
|
234
|
+
"audit_data_hash": "c3a15edddd68e15a5bfaa82ce6be5c131d433b23858e8511f1724fe75c3fde5e"
|
|
234
235
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -214,14 +214,22 @@
|
|
|
214
214
|
"beneficiary": {
|
|
215
215
|
"type": "object",
|
|
216
216
|
"properties": {
|
|
217
|
-
"
|
|
217
|
+
"id_hash": {
|
|
218
218
|
"type": "string",
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"description": "UUID identifying the beneficiary of the retirement within the Carrot platform",
|
|
219
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
220
|
+
"title": "Beneficiary ID Hash",
|
|
221
|
+
"description": "Anonymized pseudonymous identifier linking this beneficiary to off-chain records via a keyed hash",
|
|
223
222
|
"examples": [
|
|
224
|
-
"
|
|
223
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"wallet_address": {
|
|
227
|
+
"title": "Beneficiary Wallet Address",
|
|
228
|
+
"description": "Ethereum address associated with the beneficiary, when available",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"pattern": "^0x[a-f0-9]{40}$",
|
|
231
|
+
"examples": [
|
|
232
|
+
"0x1234567890abcdef1234567890abcdef12345678"
|
|
225
233
|
]
|
|
226
234
|
},
|
|
227
235
|
"identity": {
|
|
@@ -265,20 +273,29 @@
|
|
|
265
273
|
}
|
|
266
274
|
},
|
|
267
275
|
"required": [
|
|
268
|
-
"
|
|
276
|
+
"id_hash"
|
|
269
277
|
],
|
|
270
278
|
"additionalProperties": false,
|
|
271
279
|
"title": "Beneficiary",
|
|
272
|
-
"description": "Beneficiary receiving the retirement benefit"
|
|
280
|
+
"description": "Beneficiary receiving the retirement benefit, identified by a hashed identifier with optional wallet address and identity"
|
|
273
281
|
},
|
|
274
282
|
"credit_holder": {
|
|
275
283
|
"type": "object",
|
|
276
284
|
"properties": {
|
|
277
|
-
"
|
|
285
|
+
"id_hash": {
|
|
278
286
|
"type": "string",
|
|
279
|
-
"pattern": "^
|
|
287
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
288
|
+
"title": "Credit Holder ID Hash",
|
|
289
|
+
"description": "Anonymized pseudonymous identifier linking this credit holder to off-chain records via a keyed hash",
|
|
290
|
+
"examples": [
|
|
291
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"wallet_address": {
|
|
280
295
|
"title": "Credit Holder Wallet Address",
|
|
281
296
|
"description": "Ethereum address of the wallet that held and surrendered the credits",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"pattern": "^0x[a-f0-9]{40}$",
|
|
282
299
|
"examples": [
|
|
283
300
|
"0x1234567890abcdef1234567890abcdef12345678"
|
|
284
301
|
]
|
|
@@ -324,11 +341,11 @@
|
|
|
324
341
|
}
|
|
325
342
|
},
|
|
326
343
|
"required": [
|
|
327
|
-
"
|
|
344
|
+
"id_hash"
|
|
328
345
|
],
|
|
329
346
|
"additionalProperties": false,
|
|
330
347
|
"title": "Credit Holder",
|
|
331
|
-
"description": "Credit holder wallet and optional identity
|
|
348
|
+
"description": "Credit holder information including hashed identifier, optional wallet address, and optional identity"
|
|
332
349
|
},
|
|
333
350
|
"collections": {
|
|
334
351
|
"minItems": 1,
|
|
@@ -870,7 +887,7 @@
|
|
|
870
887
|
},
|
|
871
888
|
"audit_data_hash": {
|
|
872
889
|
"type": "string",
|
|
873
|
-
"pattern": "^[
|
|
890
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
874
891
|
"title": "Audit Data Hash",
|
|
875
892
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
876
893
|
"examples": [
|
|
@@ -1433,6 +1450,6 @@
|
|
|
1433
1450
|
"additionalProperties": false,
|
|
1434
1451
|
"title": "CreditRetirementReceipt NFT IPFS Record",
|
|
1435
1452
|
"description": "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details (identity optional), credit breakdowns, certificate allocations, and NFT display attributes",
|
|
1436
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1437
|
-
"version": "0.
|
|
1453
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json",
|
|
1454
|
+
"version": "1.0.0"
|
|
1438
1455
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "e105d033ada2f243313d9da8a9d7517b8f562a47ba78df510ea8613299eb5b50",
|
|
5
5
|
"type": "GasID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"created_at": "2024-12-08T11:32:47.000Z",
|
|
21
21
|
"external_id": "d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
|
|
22
22
|
"external_url": "https://explore.carrot.eco/document/d2a7f8e4-9c61-4e35-b8f2-a5c9e7d1b4f6",
|
|
23
|
-
"audit_data_hash": "
|
|
23
|
+
"audit_data_hash": "e468e164e4c95a2ef36c4afd78362b172564d5b7b8e671db2d8b5dccdaf737c3",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"properties": {
|
|
523
523
|
"id_hash": {
|
|
524
524
|
"type": "string",
|
|
525
|
-
"pattern": "^[
|
|
525
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
526
526
|
"title": "Location ID Hash",
|
|
527
527
|
"description": "SHA-256 hash anonymizing the real location identifier for privacy",
|
|
528
528
|
"examples": [
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
},
|
|
566
566
|
"responsible_participant_id_hash": {
|
|
567
567
|
"type": "string",
|
|
568
|
-
"pattern": "^[
|
|
568
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
569
569
|
"title": "Responsible Participant ID Hash",
|
|
570
570
|
"description": "SHA-256 hash identifying the participant responsible for operations at this location",
|
|
571
571
|
"examples": [
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
},
|
|
737
737
|
"audit_data_hash": {
|
|
738
738
|
"type": "string",
|
|
739
|
-
"pattern": "^[
|
|
739
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
740
740
|
"title": "Audit Data Hash",
|
|
741
741
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
742
742
|
"examples": [
|
|
@@ -1522,6 +1522,6 @@
|
|
|
1522
1522
|
"additionalProperties": false,
|
|
1523
1523
|
"title": "GasID NFT IPFS Record",
|
|
1524
1524
|
"description": "Complete GasID NFT IPFS record including prevented emissions calculation, source waste provenance, methodology reference, and NFT display attributes",
|
|
1525
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1526
|
-
"version": "0.
|
|
1525
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/gas-id/gas-id.schema.json",
|
|
1526
|
+
"version": "1.0.0"
|
|
1527
1527
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "83c6cb2ac7a54c7d7830c7fd8a3953cd6e96f1a656a54e22928ea5530f229bf4",
|
|
5
5
|
"type": "MassID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"display_type": "date"
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"audit_data_hash": "
|
|
111
|
+
"audit_data_hash": "87d1373493fa9871572587d9180b77f69277b5e8a37894f857bf86072fa4015f",
|
|
112
112
|
"data": {
|
|
113
113
|
"waste_properties": {
|
|
114
114
|
"type": "Organic",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
"properties": {
|
|
257
257
|
"id_hash": {
|
|
258
258
|
"type": "string",
|
|
259
|
-
"pattern": "^[
|
|
259
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
260
260
|
"title": "Location ID Hash",
|
|
261
261
|
"description": "SHA-256 hash anonymizing the real location identifier for privacy",
|
|
262
262
|
"examples": [
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
},
|
|
300
300
|
"responsible_participant_id_hash": {
|
|
301
301
|
"type": "string",
|
|
302
|
-
"pattern": "^[
|
|
302
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
303
303
|
"title": "Responsible Participant ID Hash",
|
|
304
304
|
"description": "SHA-256 hash identifying the participant responsible for operations at this location",
|
|
305
305
|
"examples": [
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"properties": {
|
|
366
366
|
"id_hash": {
|
|
367
367
|
"type": "string",
|
|
368
|
-
"pattern": "^[
|
|
368
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
369
369
|
"title": "Participant ID Hash",
|
|
370
370
|
"description": "SHA-256 hash anonymizing the real participant identifier for privacy",
|
|
371
371
|
"examples": [
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
},
|
|
442
442
|
"participant_id_hash": {
|
|
443
443
|
"type": "string",
|
|
444
|
-
"pattern": "^[
|
|
444
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
445
445
|
"title": "Participant ID Hash",
|
|
446
446
|
"description": "SHA-256 hash anonymizing a participant identity — used to link records without exposing personal data",
|
|
447
447
|
"examples": [
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
},
|
|
451
451
|
"location_id_hash": {
|
|
452
452
|
"type": "string",
|
|
453
|
-
"pattern": "^[
|
|
453
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
454
454
|
"title": "Location ID Hash",
|
|
455
455
|
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
456
456
|
"examples": [
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
},
|
|
542
542
|
"participant_id_hash": {
|
|
543
543
|
"type": "string",
|
|
544
|
-
"pattern": "^[
|
|
544
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
545
545
|
"title": "Participant ID Hash",
|
|
546
546
|
"description": "SHA-256 hash anonymizing a participant identity — used to link records without exposing personal data",
|
|
547
547
|
"examples": [
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
},
|
|
551
551
|
"location_id_hash": {
|
|
552
552
|
"type": "string",
|
|
553
|
-
"pattern": "^[
|
|
553
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
554
554
|
"title": "Location ID Hash",
|
|
555
555
|
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
556
556
|
"examples": [
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
},
|
|
717
717
|
"participant_id_hash": {
|
|
718
718
|
"type": "string",
|
|
719
|
-
"pattern": "^[
|
|
719
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
720
720
|
"title": "Participant ID Hash",
|
|
721
721
|
"description": "SHA-256 hash anonymizing a participant identity — used to link records without exposing personal data",
|
|
722
722
|
"examples": [
|
|
@@ -725,7 +725,7 @@
|
|
|
725
725
|
},
|
|
726
726
|
"location_id_hash": {
|
|
727
727
|
"type": "string",
|
|
728
|
-
"pattern": "^[
|
|
728
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
729
729
|
"title": "Location ID Hash",
|
|
730
730
|
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
731
731
|
"examples": [
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
},
|
|
779
779
|
"participant_id_hash": {
|
|
780
780
|
"type": "string",
|
|
781
|
-
"pattern": "^[
|
|
781
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
782
782
|
"title": "Participant ID Hash",
|
|
783
783
|
"description": "SHA-256 hash anonymizing a participant identity — used to link records without exposing personal data",
|
|
784
784
|
"examples": [
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
},
|
|
788
788
|
"location_id_hash": {
|
|
789
789
|
"type": "string",
|
|
790
|
-
"pattern": "^[
|
|
790
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
791
791
|
"title": "Location ID Hash",
|
|
792
792
|
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
793
793
|
"examples": [
|
|
@@ -866,7 +866,7 @@
|
|
|
866
866
|
},
|
|
867
867
|
"participant_id_hash": {
|
|
868
868
|
"type": "string",
|
|
869
|
-
"pattern": "^[
|
|
869
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
870
870
|
"title": "Participant ID Hash",
|
|
871
871
|
"description": "SHA-256 hash anonymizing a participant identity — used to link records without exposing personal data",
|
|
872
872
|
"examples": [
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
},
|
|
876
876
|
"location_id_hash": {
|
|
877
877
|
"type": "string",
|
|
878
|
-
"pattern": "^[
|
|
878
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
879
879
|
"title": "Location ID Hash",
|
|
880
880
|
"description": "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`",
|
|
881
881
|
"examples": [
|
|
@@ -984,7 +984,7 @@
|
|
|
984
984
|
},
|
|
985
985
|
"audit_data_hash": {
|
|
986
986
|
"type": "string",
|
|
987
|
-
"pattern": "^[
|
|
987
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
988
988
|
"title": "Audit Data Hash",
|
|
989
989
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
990
990
|
"examples": [
|
|
@@ -1911,6 +1911,6 @@
|
|
|
1911
1911
|
"additionalProperties": false,
|
|
1912
1912
|
"title": "MassID NFT IPFS Record",
|
|
1913
1913
|
"description": "Complete MassID NFT IPFS record including waste classification, chain-of-custody lifecycle events, geographic locations, supply-chain participants, and NFT display attributes",
|
|
1914
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1915
|
-
"version": "0.
|
|
1914
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/mass-id/mass-id.schema.json",
|
|
1915
|
+
"version": "1.0.0"
|
|
1916
1916
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "cf096c292fc53b287132d75f2103cf347b3025740cd94f796dfc5105e226a1de",
|
|
5
5
|
"type": "MassID Audit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|