@@ -1232,33 +1232,36 @@ <h3>The DID Document CEL Specification</h3>
1232
1232
}]
1233
1233
}, {
1234
1234
"event": {
1235
- "type": "update",
1236
- "data": {
1237
- "@context": "https://www.w3.org/ns/did/v1.1",
1238
- "id": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv",
1239
- "verificationMethod": [{
1240
- "id": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-1",
1241
- "type": "Multikey",
1242
- "controller": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv",
1243
- "publicKeyMultibase": "zDnaerx9CtbPJ1q36T5Ln5wYt3MQYeGRG5ehnPAmxcf5mDZpv"
1244
- }, {
1245
- "id": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2",
1246
- "type": "Multikey",
1247
- "controller": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv",
1248
- "publicKeyMultibase": "z6Mkf5rGMoatrSj1f4CyvuHBeXJELe9RPdzo2PKGNCKVtZxP"
1249
- }],
1250
- "authentication": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-1"],
1251
- "assertionMethod": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2"],
1252
- "capabilityDelegation": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2"],
1253
- "capabilityInvocation": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2"]
1254
- < span class ="comment "> // this proof confirms that the controller approves of the DID Document update</ span >
1255
- "proof": {
1256
- "type": "DataIntegrityProof",
1257
- "cryptosuite": "ecdsa-jcs-2019",
1258
- "created": "2024-11-30T17:03:42Z",
1259
- "verificationMethod": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-1",
1260
- "proofPurpose": "assertionMethod",
1261
- "proofValue": "z5obCSsrQxuFJdq6PrUMCtqY< span class ="comment "> ...</ span > 93gBHqGDBtQLPFxpZxzwVWgHYrXxoV"
1235
+ "previousEvent": "uEkoYyQ6YVtUmER8pN24wLZcLK9EBguM5WZlbAgfXBDuQiA"
1236
+ "operation": {
1237
+ "type": "update",
1238
+ "data": {
1239
+ "@context": "https://www.w3.org/ns/did/v1.1",
1240
+ "id": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv",
1241
+ "verificationMethod": [{
1242
+ "id": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-1",
1243
+ "type": "Multikey",
1244
+ "controller": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv",
1245
+ "publicKeyMultibase": "zDnaerx9CtbPJ1q36T5Ln5wYt3MQYeGRG5ehnPAmxcf5mDZpv"
1246
+ }, {
1247
+ "id": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2",
1248
+ "type": "Multikey",
1249
+ "controller": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv",
1250
+ "publicKeyMultibase": "z6Mkf5rGMoatrSj1f4CyvuHBeXJELe9RPdzo2PKGNCKVtZxP"
1251
+ }],
1252
+ "authentication": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-1"],
1253
+ "assertionMethod": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2"],
1254
+ "capabilityDelegation": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2"],
1255
+ "capabilityInvocation": ["did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-2"]
1256
+ < span class ="comment "> // this proof confirms that the controller approves of the DID Document update</ span >
1257
+ "proof": {
1258
+ "type": "DataIntegrityProof",
1259
+ "cryptosuite": "ecdsa-jcs-2019",
1260
+ "created": "2024-11-30T17:03:42Z",
1261
+ "verificationMethod": "did:example:zQmQoeG7u6XBtdXoek5p3aPoTjaSRemHAKrMcY2Hcjpe3jv#key-1",
1262
+ "proofPurpose": "assertionMethod",
1263
+ "proofValue": "z5obCSsrQxuFJdq6PrUMCtqY< span class ="comment "> ...</ span > 93gBHqGDBtQLPFxpZxzwVWgHYrXxoV"
1264
+ }
1262
1265
}
1263
1266
}
1264
1267
},
@@ -1311,89 +1314,98 @@ <h3>The ActivityPub CEL Specification</h3>
1311
1314
without the need for centralized time-stamping services for either network.
1312
1315
</ p >
1313
1316
1314
- < pre class ="example nohighlight " title ="Example of a ActivityPub Post that was edited ">
1315
- [{
1316
- "event": {
1317
- "type": "create",
1318
- "data": {
1319
- "@context": "https://www.w3.org/ns/activitystreams",
1320
- "type": "create",
1321
- "id": "https://personal.example/mallory/87374",
1322
- "actor": "https://personal.example/mallory",
1323
- "object": {
1324
- "id": "https://website.example/mallory/note/72",
1325
- "type": "Note",
1326
- "attributedTo": "https://personal.example/mallory",
1327
- "content": "I'll be there at 5pm",
1328
- "published": "2025-02-10T15:04:55Z",
1329
- "to": ["https://example.org/~john/"],
1330
- "cc": ["https://website.example/~erik/followers",
1331
- "https://www.w3.org/ns/activitystreams#Public"]
1317
+ < pre class ="example nohighlight " title ="Example of an ActivityPub Note that was edited ">
1318
+ {
1319
+ "log": [{
1320
+ "event": {
1321
+ "operation": {
1322
+ "type": "create",
1323
+ "data": {
1324
+ "@context": "https://www.w3.org/ns/activitystreams",
1325
+ "type": "Create",
1326
+ "id": "https://personal.example/mallory/87374",
1327
+ "actor": "https://personal.example/mallory",
1328
+ "object": {
1329
+ "id": "https://website.example/mallory/note/72",
1330
+ "type": "Note",
1331
+ "attributedTo": "https://personal.example/mallory",
1332
+ "content": "I'll be there at 5pm",
1333
+ "published": "2025-02-10T15:04:55Z",
1334
+ "to": ["https://example.org/~john/"],
1335
+ "cc": ["https://website.example/~erik/followers",
1336
+ "https://www.w3.org/ns/activitystreams#Public"]
1337
+ },
1338
+ "published": "2025-02-10T15:04:55Z",
1339
+ "to": ["https://example.org/~john/"],
1340
+ "cc": ["https://website.example/~erik/followers",
1341
+ "https://www.w3.org/ns/activitystreams#Public"]
1342
+ "proof": {
1343
+ "type": "DataIntegrityProof",
1344
+ "cryptosuite": "ecdsa-jcs-2019",
1345
+ "created": "2025-02-10T15:04:55Z",
1346
+ "verificationMethod": "https://personal.example/mallory#key-1",
1347
+ "proofPurpose": "assertionMethod",
1348
+ "proofValue": "z5obCSsrQxuFJdq6PrUMCtqY< span class ="comment "> ...</ span > 93gBHqGDBtQLPFxpZxzwVWgHYrXxoV"
1349
+ }
1350
+ },
1332
1351
},
1333
- "published": "2025-02-10T15:04:55Z",
1334
- "to": ["https://example.org/~john/"],
1335
- "cc": ["https://website.example/~erik/followers",
1336
- "https://www.w3.org/ns/activitystreams#Public"]
1337
1352
},
1338
- },
1339
- "proof ": [{
1340
- "type ": "DataIntegrityProof ",
1341
- "cryptosuite ": "ecdsa-jcs-2019 ",
1342
- "created ": "2025-02-10T15:04:55Z ",
1343
- "verificationMethod ": "https://personal.example/mallory#key-1 ",
1344
- "proofPurpose ": "assertionMethod",
1345
- "proofValue": "z5obCSsrQxuFJdq6PrUMCtqY < span class =" comment " > ... </ span > 93gBHqGDBtQLPFxpZxzwVWgHYrXxoV"
1346
- }, {
1347
- "type ": "DataIntegrityProof ",
1348
- "cryptosuite ": "ecdsa-jcs-2019 ",
1349
- "created ": "2025-02-10T15:05:02Z ",
1350
- "verificationMethod ": "https://redsocial.example/attestations#key-5W ",
1351
- "proofPurpose ": "assertionMethod",
1352
- "proofValue": "zJdq6PrUMCtqY5obCSsrQxuF < span class =" comment " > ... </ span > tQLPFxpZxzwVWgHYrXxoV93gBHqGDB"
1353
+ "proof": [{
1354
+ "type ": "DataIntegrityProof",
1355
+ "cryptosuite ": "ecdsa-jcs-2019 ",
1356
+ "created ": "2025-02-10T15:05:02Z ",
1357
+ "verificationMethod ": "https://redsocial.example/attestations#key-5W ",
1358
+ "proofPurpose ": "assertionMethod ",
1359
+ "proofValue ": "zJdq6PrUMCtqY5obCSsrQxuF < span class =" comment " > ... </ span > tQLPFxpZxzwVWgHYrXxoV93gBHqGDB"
1360
+ }, {
1361
+ "type": "DataIntegrityProof",
1362
+ "cryptosuite ": "ecdsa-jcs-2019 ",
1363
+ "created ": "2025-02-10T15:05:08Z ",
1364
+ "verificationMethod ": "https://bluesocial.example/witnesses#key-Z2 ",
1365
+ "proofPurpose ": "assertionMethod ",
1366
+ "proofValue ": "ztqY5obCSsrQxuFJdq6PrUMC < span class =" comment " > ... </ span > zwVWgHYrXxoV93gBHqGDBtQLPFxpZx"
1367
+ }]
1353
1368
}, {
1354
- "type": "DataIntegrityProof",
1355
- "cryptosuite": "ecdsa-jcs-2019",
1356
- "created": "2025-02-10T15:05:08Z",
1357
- "verificationMethod": "https://bluesocial.example/witnesses#key-Z2",
1358
- "proofPurpose": "assertionMethod",
1359
- "proofValue": "ztqY5obCSsrQxuFJdq6PrUMC< span class ="comment "> ...</ span > zwVWgHYrXxoV93gBHqGDBtQLPFxpZx"
1360
- }]
1361
- }, {
1362
- "event": {
1363
- "type": "update",
1364
- "data": {
1365
- "@context": "https://www.w3.org/ns/activitystreams",
1366
- "type": "update",
1367
- "object": {
1368
- "id": "https://website.example/mallory/note/72",
1369
- "content": "I'll be there at 6pm",
1370
- "published": "2025-02-10T15:07:15Z",
1371
- }
1369
+ "event": {
1370
+ "previousEvent": "uEfXBDuQiAkoYyQ6YVtUmER8pN24wLZcLK9EBguM5WZlbAg"
1371
+ "operation": {
1372
+ "type": "update",
1373
+ "data": {
1374
+ "@context": "https://www.w3.org/ns/activitystreams",
1375
+ "type": "Update",
1376
+ "object": {
1377
+ "id": "https://website.example/mallory/note/72",
1378
+ "content": "I'll be there at 6pm",
1379
+ "published": "2025-02-10T15:07:15Z",
1380
+ }
1381
+ "proof": {
1382
+ "type": "DataIntegrityProof",
1383
+ "cryptosuite": "ecdsa-jcs-2019",
1384
+ "created": "2025-02-10T15:07:15Z",
1385
+ "verificationMethod": "https://personal.example/mallory#key-1",
1386
+ "proofPurpose": "assertionMethod",
1387
+ "proofValue": "z5obCSsrQxuFJdq6PrUMCtqY< span class ="comment "> ...</ span > 93gBHqGDBtQLPFxpZxzwVWgHYrXxoV"
1388
+ }
1389
+ },
1390
+ },
1372
1391
},
1373
- },
1374
- "proof": [{
1375
- "type": "DataIntegrityProof",
1376
- "cryptosuite": "ecdsa-jcs-2019",
1377
- "created": "2025-02-10T15:07:15Z",
1378
- "verificationMethod": "https://personal.example/mallory#key-1",
1379
- "proofPurpose": "assertionMethod",
1380
- "proofValue": "z5obCSsrQxuFJdq6PrUMCtqY< span class ="comment "> ...</ span > 93gBHqGDBtQLPFxpZxzwVWgHYrXxoV"
1381
- }, {
1382
- "type": "DataIntegrityProof",
1383
- "cryptosuite": "ecdsa-jcs-2019",
1384
- "created": "2025-02-10T15:07:19Z",
1385
- "verificationMethod": "https://redsocial.example/attestations#key-5W",
1386
- "proofPurpose": "assertionMethod",
1387
- "proofValue": "zJdq6PrUMCtqY5obCSsrQxuF< span class ="comment "> ...</ span > tQLPFxpZxzwVWgHYrXxoV93gBHqGDB"
1388
- }, {
1389
- "type": "DataIntegrityProof",
1390
- "cryptosuite": "ecdsa-jcs-2019",
1391
- "created": "2025-02-10T15:07:26Z",
1392
- "verificationMethod": "https://bluesocial.example/witnesses#key-Z2",
1393
- "proofPurpose": "assertionMethod",
1394
- "proofValue": "ztqY5obCSsrQxuFJdq6PrUMC< span class ="comment "> ...</ span > zwVWgHYrXxoV93gBHqGDBtQLPFxpZx"
1392
+ "proof": [{
1393
+ "type": "DataIntegrityProof",
1394
+ "cryptosuite": "ecdsa-jcs-2019",
1395
+ "created": "2025-02-10T15:07:19Z",
1396
+ "verificationMethod": "https://redsocial.example/attestations#key-5W",
1397
+ "proofPurpose": "assertionMethod",
1398
+ "proofValue": "zJdq6PrUMCtqY5obCSsrQxuF< span class ="comment "> ...</ span > tQLPFxpZxzwVWgHYrXxoV93gBHqGDB"
1399
+ }, {
1400
+ "type": "DataIntegrityProof",
1401
+ "cryptosuite": "ecdsa-jcs-2019",
1402
+ "created": "2025-02-10T15:07:26Z",
1403
+ "verificationMethod": "https://bluesocial.example/witnesses#key-Z2",
1404
+ "proofPurpose": "assertionMethod",
1405
+ "proofValue": "ztqY5obCSsrQxuFJdq6PrUMC< span class ="comment "> ...</ span > zwVWgHYrXxoV93gBHqGDBtQLPFxpZx"
1406
+ }]
1395
1407
}]
1396
- }]
1408
+ }
1397
1409
</ pre >
1398
1410
</ section >
1399
1411
0 commit comments