@charter-agreement-protocol/verifier 0.7.0 → 2.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.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { algorithmRegistryDigest, canonical, capabilities, 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 { DEFAULT_LIMITS, MAXIMUM_LIMITS, type Limits, type VerificationOptions, type Profile, CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST, algorithmRegistry, emissions, defaultEmissionName, encodeBase64url, taggedDigest, decodeArtifact, verifySignature, verifyDescriptor, verifyDescriptorChain, verifyAcceptance, verifyTermination, verifyChain, verifyReceipt, acceptanceRefusal, checkSigningClaims, terminationRefusal, descriptorSigningInput, receiptSigningInput, acceptanceSigningInput, terminationSigningInput, assembleCompact, governingRevision, decodeCharterRevision, revisionDigest, decodePartyDescriptor, descriptorDigest, prepareSigning, finishSigning, SigningPlan, type SigningKind, type SigningOptions, type ChainInput, type SigningInput, type ProducerResult, type AlgRow, type VerifyResult, type DescriptorPredecessor, type RefusalResult, } from "./core.ts";
1
+ export { algorithmRegistryDigest, canonical, capabilities, loadCorpus, reportFor, runConformanceCase, 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 { DEFAULT_LIMITS, MAXIMUM_LIMITS, type Limits, type VerificationOptions, type Profile, CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST, algorithmRegistry, emissions, defaultEmissionName, encodeBase64url, taggedDigest, decodeArtifact, verifySignature, verifyDescriptor, verifyDescriptorChain, signerThumbprint, descriptorNextKeyCommitment, encodeDescriptorPublication, verifyDescriptorPublication, descriptorPublicationDigest, verifyAcceptance, verifyTermination, verifyChain, verifyReceipt, inspectReceipt, type ReceiptInspection, type ReceiptInspectionClaims, type ReceiptInspectionResult, acceptanceRefusal, checkSigningClaims, terminationRefusal, descriptorSigningInput, receiptSigningInput, acceptanceSigningInput, partyReplacementSigningInput, terminationSigningInput, assembleCompact, governingRevision, decodeCharterRevision, revisionDigest, decodePartyDescriptor, descriptorDigest, prepareSigning, retainSigningContext, finishSigning, SigningPlan, type SigningKind, type SigningOptions, type ChainInput, type SigningInput, type ProducerResult, type AlgRow, type VerifyResult, type DescriptorPredecessor, type RefusalResult, } from "./core.ts";
package/dist/index.js CHANGED
@@ -8,5 +8,5 @@
8
8
  // producer surface (signing inputs per kind, assembly). Every verdict
9
9
  // traces to corpus agreement with the Elixir reference implementation,
10
10
  // recomputed from raw bytes.
11
- export { algorithmRegistryDigest, canonical, capabilities, loadCorpus, reportFor, selfChecks, decodeJsonText, jsonProjection, } from "./core.js";
12
- export { DEFAULT_LIMITS, MAXIMUM_LIMITS, CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST, algorithmRegistry, emissions, defaultEmissionName, encodeBase64url, taggedDigest, decodeArtifact, verifySignature, verifyDescriptor, verifyDescriptorChain, verifyAcceptance, verifyTermination, verifyChain, verifyReceipt, acceptanceRefusal, checkSigningClaims, terminationRefusal, descriptorSigningInput, receiptSigningInput, acceptanceSigningInput, terminationSigningInput, assembleCompact, governingRevision, decodeCharterRevision, revisionDigest, decodePartyDescriptor, descriptorDigest, prepareSigning, finishSigning, SigningPlan, } from "./core.js";
11
+ export { algorithmRegistryDigest, canonical, capabilities, loadCorpus, reportFor, runConformanceCase, selfChecks, decodeJsonText, jsonProjection, } from "./core.js";
12
+ export { DEFAULT_LIMITS, MAXIMUM_LIMITS, CERTIFIED_INDEX_SHA256_BASE64URL, CERTIFIED_REGISTRY_DIGEST, algorithmRegistry, emissions, defaultEmissionName, encodeBase64url, taggedDigest, decodeArtifact, verifySignature, verifyDescriptor, verifyDescriptorChain, signerThumbprint, descriptorNextKeyCommitment, encodeDescriptorPublication, verifyDescriptorPublication, descriptorPublicationDigest, verifyAcceptance, verifyTermination, verifyChain, verifyReceipt, inspectReceipt, acceptanceRefusal, checkSigningClaims, terminationRefusal, descriptorSigningInput, receiptSigningInput, acceptanceSigningInput, partyReplacementSigningInput, terminationSigningInput, assembleCompact, governingRevision, decodeCharterRevision, revisionDigest, decodePartyDescriptor, descriptorDigest, prepareSigning, retainSigningContext, finishSigning, SigningPlan, } from "./core.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charter-agreement-protocol/verifier",
3
- "version": "0.7.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.",
3
+ "version": "2.0.0",
4
+ "description": "Independent TypeScript verifier for the Charter Agreement Protocol (CAP) \u2014 byte-exact, offline re-verification of signed charter evidence. CAP verifies; it never authorizes.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -21,10 +21,12 @@
21
21
  "dist",
22
22
  "CHANGELOG.md",
23
23
  "conformance",
24
+ "IPR.md",
24
25
  "LICENSE",
25
26
  "NOTICE",
26
27
  "README.md",
27
- "SECURITY.md"
28
+ "SECURITY.md",
29
+ "reference.json"
28
30
  ],
29
31
  "engines": {
30
32
  "node": ">=24.8.0"
@@ -33,22 +35,26 @@
33
35
  "build": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\" && tsc -p tsconfig.build.json",
34
36
  "typecheck": "tsc --noEmit",
35
37
  "self-checks": "node --experimental-strip-types --no-warnings self-checks.ts",
36
- "test": "npm run build && node --test --experimental-strip-types --no-warnings verifier.test.ts api.test.ts parity.test.ts presign.test.ts signing-corpus.test.ts workshop.test.ts ed25519.test.ts boundary.test.ts cost.test.ts",
38
+ "test": "npm run build && node --test --experimental-strip-types --no-warnings verifier.test.ts api.test.ts parity.test.ts presign.test.ts signing-corpus.test.ts workshop.test.ts ed25519.test.ts boundary.test.ts cost.test.ts release.test.mjs",
37
39
  "conformance": "node --experimental-strip-types --no-warnings cli.ts",
38
40
  "check:ed25519": "node --experimental-strip-types --no-warnings check-ed25519.ts",
39
41
  "bench:ed25519": "node --experimental-strip-types --no-warnings bench-ed25519.ts",
40
42
  "prepack": "npm run build",
41
43
  "typecheck:web": "tsc -p tsconfig.web.json",
42
- "build:site": "node web/build.mjs"
44
+ "build:site": "node web/build.mjs",
45
+ "check:reference": "node --experimental-strip-types --no-warnings scripts/check-reference.mjs",
46
+ "check:reverse-differential": "node --experimental-strip-types --no-warnings scripts/check-reference.mjs --reverse-differential",
47
+ "check:package": "node scripts/check-package.mjs",
48
+ "check": "npm run typecheck && npm run typecheck:web && npm run test && npm run self-checks && npm run build:site && npm run check:reference && npm run check:package"
43
49
  },
44
50
  "devDependencies": {
45
- "@charter-agreement-protocol/signer": "^0.2.0",
51
+ "@charter-agreement-protocol/signer": "^0.3.0",
46
52
  "@noble/ed25519": "^3.2.0",
47
53
  "@noble/hashes": "^2.4.0",
48
- "@types/node": "^26.0.0",
54
+ "@types/node": "^26.6.6",
49
55
  "buffer": "^6.0.3",
50
56
  "esbuild": "^0.28.2",
51
- "typescript": "^5.9.0"
57
+ "typescript": "^7.0.2"
52
58
  },
53
59
  "repository": {
54
60
  "type": "git",
package/reference.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "package": "charter_agreement_protocol",
3
+ "version": "1.0.0",
4
+ "archive_sha256": "77a70e80b7f9a71b7e84928a65ad92f984a746cc96d8700f97d436b3dfca5f21",
5
+ "corpus_path": "priv/conformance",
6
+ "verification_semantics": 6,
7
+ "corpus_source": {
8
+ "commit": "55cd0662d7fa5d3a4cf7633180ea1fdd08409e28",
9
+ "index_sha256_base64url": "P3HeGj26KfNYWy2LKFTPvjZZhjEU4cafd4Z2agGcc64"
10
+ }
11
+ }