@charter-agreement-protocol/verifier 0.1.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/LICENSE +190 -0
- package/NOTICE +4 -0
- package/README.md +95 -0
- package/conformance/cases/acceptance-equivocation.json +1 -0
- package/conformance/cases/acceptance-verify.json +1 -0
- package/conformance/cases/base64url-decode.json +1 -0
- package/conformance/cases/canonicalization-encode.json +1 -0
- package/conformance/cases/chain-verify.json +1 -0
- package/conformance/cases/charter_revision-decode.json +1 -0
- package/conformance/cases/descriptor_chain-verify.json +1 -0
- package/conformance/cases/digest-hash.json +1 -0
- package/conformance/cases/governing_revision.json +1 -0
- package/conformance/cases/json-decode.json +1 -0
- package/conformance/cases/party_descriptor-verify.json +1 -0
- package/conformance/cases/receipt-verify.json +1 -0
- package/conformance/cases/schema-validate.json +1 -0
- package/conformance/cases/termination-verify.json +1 -0
- package/conformance/index.json +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +32 -0
- package/dist/core.d.ts +102 -0
- package/dist/core.js +1296 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/package.json +48 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { canonical, loadCorpus, reportFor, selfChecks, decodeJsonText, jsonProjection, type CanonicalValue, type Projection, type DecodeResult, type CaseResult, type CorpusFile, type CorpusIndex, type ConformanceCase, type LoadedCorpus, type CaseOutcome, type ConformanceReport, type ReportOutput, } from "./core.ts";
|
|
2
|
+
export { CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST } from "./core.ts";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// CAP never authorizes.
|
|
2
|
+
//
|
|
3
|
+
// The public surface of the independent TypeScript verifier: report over a
|
|
4
|
+
// certified conformance corpus, canonical JSON, the strict I-JSON decoder,
|
|
5
|
+
// and the self-check battery. Every verdict traces to corpus agreement with
|
|
6
|
+
// the Elixir reference implementation, recomputed from raw bytes.
|
|
7
|
+
export { canonical, loadCorpus, reportFor, selfChecks, decodeJsonText, jsonProjection, } from "./core.js";
|
|
8
|
+
export { CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST } from "./core.js";
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@charter-agreement-protocol/verifier",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Independent TypeScript verifier for the Charter Agreement Protocol (CAP) — byte-exact, offline re-verification of signed charter evidence. CAP verifies; it never authorizes.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./cli": "./dist/cli.js"
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"cap-verifier": "./dist/cli.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"conformance",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"NOTICE",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=24.8.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc -p tsconfig.build.json",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"self-checks": "node --experimental-strip-types --no-warnings self-checks.ts",
|
|
33
|
+
"test": "node --test --experimental-strip-types --no-warnings verifier.test.ts",
|
|
34
|
+
"conformance": "node --experimental-strip-types --no-warnings cli.ts",
|
|
35
|
+
"prepack": "npm run build"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^26.0.0",
|
|
39
|
+
"typescript": "^5.9.0"
|
|
40
|
+
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/baselabs/charter_agreement_protocol_typescript.git"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
}
|
|
48
|
+
}
|