@agentcontextdistributionprotocol/acdp 0.7.0 → 0.8.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 +29 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,16 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Thin NAPI-rs binding over the [`acdp`](https://crates.io/crates/acdp)
|
|
4
4
|
Rust library. Implements the producer- and consumer-side crypto for the
|
|
5
|
-
Agent Context Distribution Protocol v0.1.0
|
|
6
|
-
|
|
7
|
-
`undici` for transport.
|
|
5
|
+
Agent Context Distribution Protocol — v0.1.0 core plus the v0.2.0 Trust &
|
|
6
|
+
Hardening surface (RFC-ACDP-0001 through 0015). HTTP is intentionally left
|
|
7
|
+
to the caller — pair this with `fetch` / `undici` for transport.
|
|
8
|
+
|
|
9
|
+
Package version tracks the binding release line (currently **0.8.0**).
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @agentcontextdistributionprotocol/acdp
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Prebuilt native binaries are published for macOS (x64/arm64) and Linux
|
|
18
|
+
(x64/arm64-gnu); the loader package selects the right one at install time.
|
|
8
19
|
|
|
9
20
|
## Install (development)
|
|
10
21
|
|
|
11
22
|
```bash
|
|
12
23
|
npm install # installs @napi-rs/cli
|
|
13
24
|
npm run build:debug # produces index.js + acdp.<platform>.node
|
|
14
|
-
node --test tests
|
|
25
|
+
node --test tests/*.mjs # in-process unit tests, no HTTP
|
|
15
26
|
```
|
|
16
27
|
|
|
17
28
|
## Build a release binary
|
|
@@ -46,6 +57,20 @@ AcdpVerifier.verifySignature(
|
|
|
46
57
|
);
|
|
47
58
|
```
|
|
48
59
|
|
|
60
|
+
## Verification surface
|
|
61
|
+
|
|
62
|
+
`AcdpVerifier` covers the full 0.2.0 surface in addition to the basics
|
|
63
|
+
above: offline `did:key` verification (`verifyBodyOffline`,
|
|
64
|
+
`verifyPublishRequestOffline`), registry receipts (`verifyReceipt`,
|
|
65
|
+
`verifyLineageHeadReceipt`), the transparency log (`verifyLogCheckpoint`,
|
|
66
|
+
`verifyLogInclusion`, `verifyLogConsistency`), lifecycle events
|
|
67
|
+
(`verifyLifecycleEvent`), key revocation (`parseKeyRevocation`,
|
|
68
|
+
`classifyUnderRevocation`), and witness cosigning
|
|
69
|
+
(`buildWitnessCosignature`, `verifyWitnessCosignature`,
|
|
70
|
+
`evaluateWitnessQuorum`). `AcdpP256Producer`, `AcdpDid`,
|
|
71
|
+
`AcdpDidDocument`, `AcdpCanonicalizer`, `AcdpMerkle`, and `AcdpSsrfPolicy`
|
|
72
|
+
are also exported.
|
|
73
|
+
|
|
49
74
|
## Design rules
|
|
50
75
|
|
|
51
76
|
* **JSON across the FFI boundary.** Every method accepts and returns
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentcontextdistributionprotocol/acdp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Agent Context Distribution Protocol — Node.js SDK",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@agentcontextdistributionprotocol/acdp-darwin-x64": "0.
|
|
51
|
-
"@agentcontextdistributionprotocol/acdp-darwin-arm64": "0.
|
|
52
|
-
"@agentcontextdistributionprotocol/acdp-linux-x64-gnu": "0.
|
|
53
|
-
"@agentcontextdistributionprotocol/acdp-linux-arm64-gnu": "0.
|
|
50
|
+
"@agentcontextdistributionprotocol/acdp-darwin-x64": "0.8.0",
|
|
51
|
+
"@agentcontextdistributionprotocol/acdp-darwin-arm64": "0.8.0",
|
|
52
|
+
"@agentcontextdistributionprotocol/acdp-linux-x64-gnu": "0.8.0",
|
|
53
|
+
"@agentcontextdistributionprotocol/acdp-linux-arm64-gnu": "0.8.0"
|
|
54
54
|
}
|
|
55
55
|
}
|