@metalabel/dfos-protocol 0.9.0 → 0.11.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/README.md +7 -11
- package/dist/chain/index.d.ts +37 -33
- package/dist/chain/index.js +27 -9
- package/dist/{chunk-ZXXP5W5N.js → chunk-GQOZJKKO.js} +58 -10
- package/dist/{chunk-24VGJGUM.js → chunk-LQFOBE6X.js} +25 -27
- package/dist/{chunk-UEJ364OG.js → chunk-SDUOUFTF.js} +110 -75
- package/dist/credentials/index.d.ts +3 -12
- package/dist/credentials/index.js +2 -2
- package/dist/crypto/index.d.ts +16 -7
- package/dist/crypto/index.js +3 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +29 -21
- package/dist/{schemas-BEl38wrI.d.ts → schemas-Myod8ES9.d.ts} +58 -14
- package/examples/content-delegated.json +11 -11
- package/examples/content-delete.json +5 -5
- package/examples/content-lifecycle.json +9 -9
- package/examples/credential-read.json +3 -3
- package/examples/credential-write.json +5 -5
- package/examples/identity-delete.json +4 -4
- package/examples/identity-genesis.json +3 -3
- package/examples/identity-rotation.json +4 -4
- package/examples/identity-services.json +38 -0
- package/package.json +10 -14
- package/dist/chunk-E5CFQG2B.js +0 -99
- package/dist/merkle/index.d.ts +0 -45
- package/dist/merkle/index.js +0 -14
- package/examples/beacon.json +0 -14
- package/examples/merkle-tree.json +0 -28
- package/schemas/manifest.v1.json +0 -29
package/dist/merkle/index.js
DELETED
package/examples/beacon.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "Beacon: signed manifest content ID announcement with witness countersignature",
|
|
3
|
-
"type": "beacon",
|
|
4
|
-
"controllerJws": "eyJhbGciOiJFZERTQSIsInR5cCI6ImRpZDpkZm9zOmJlYWNvbiIsImtpZCI6ImRpZDpkZm9zOmUzdnZ0Y2s0MmQ0ZWFjZG56dnRybjYja2V5X3I5ZXYzNGZ2YzIzejk5OXZlYWFmdD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hfdgFuMCccU9ThQvjB2fJAMUHkuuajF992gK",
|
|
8
|
-
"expected": {
|
|
9
|
-
"beaconCID": "bafyreic2mux4pli5qfd5sbp2yxy2gjm54fg5gci6m6bpevoiuwfdg6pou4",
|
|
10
|
-
"did": "did:dfos:e3vvtck42d4eacdnzvtrn6",
|
|
11
|
-
"manifestContentId": "a82z92a3hndk6c97thcrn8",
|
|
12
|
-
"createdAt": "2026-03-07T00:05:00.000Z"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "Merkle tree: 5 content IDs → sorted → leaf hashes → root, with inclusion proof for \"charlie\"",
|
|
3
|
-
"type": "merkle",
|
|
4
|
-
"contentIds": ["alpha", "bravo", "charlie", "delta", "echo"],
|
|
5
|
-
"expected": {
|
|
6
|
-
"sortedIds": ["alpha", "bravo", "charlie", "delta", "echo"],
|
|
7
|
-
"root": "7e80d4780f454e0fca0b090d8c646f572b49354f54154531606105aad2fda28e",
|
|
8
|
-
"leafCount": 5,
|
|
9
|
-
"charlieProof": {
|
|
10
|
-
"contentId": "charlie",
|
|
11
|
-
"root": "7e80d4780f454e0fca0b090d8c646f572b49354f54154531606105aad2fda28e",
|
|
12
|
-
"path": [
|
|
13
|
-
{
|
|
14
|
-
"hash": "4f4a9410ffcdf895c4adb880659e9b5c0dd1f23a30790684340b3eaacb045398",
|
|
15
|
-
"position": "right"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"hash": "90d39555bb3c223e12f5a375c3011d2462fe2e1e36b8416a0b623d5831a9b4f3",
|
|
19
|
-
"position": "left"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"hash": "092c79e8f80e559e404bcf660c48f3522b67aba9ff1484b0367e1a4ddef7431d",
|
|
23
|
-
"position": "right"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
package/schemas/manifest.v1.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schemas.dfos.com/manifest/v1",
|
|
4
|
-
"title": "Manifest",
|
|
5
|
-
"description": "A manifest — a named map of protocol object references for semantic navigation. Keys are path-like labels. Values are protocol references: content chain identifiers (22-char bare hash), DIDs (did:dfos:...), or CIDs (bafyrei...). The document layer of the dark forest. Discovery is social or out-of-band.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["$schema", "entries"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"$schema": {
|
|
10
|
-
"const": "https://schemas.dfos.com/manifest/v1"
|
|
11
|
-
},
|
|
12
|
-
"entries": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"propertyNames": {
|
|
15
|
-
"pattern": "^[a-z0-9][a-z0-9._/-]*[a-z0-9]$",
|
|
16
|
-
"minLength": 2,
|
|
17
|
-
"maxLength": 128
|
|
18
|
-
},
|
|
19
|
-
"additionalProperties": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"pattern": "^[a-z0-9][a-z0-9:._/-]*$",
|
|
22
|
-
"minLength": 1,
|
|
23
|
-
"maxLength": 512
|
|
24
|
-
},
|
|
25
|
-
"description": "Named entries mapping path-like keys to protocol object references (contentId, DID, or CID)."
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"additionalProperties": false
|
|
29
|
-
}
|