@charter-agreement-protocol/verifier 0.5.0 → 0.7.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/CHANGELOG.md +261 -0
- package/README.md +100 -11
- package/SECURITY.md +89 -0
- package/conformance/cases/acceptance-equivocation.json +1 -1
- package/conformance/cases/acceptance-verify.json +1 -1
- package/conformance/cases/base64url-decode.json +1 -1
- package/conformance/cases/canonicalization-encode.json +1 -1
- package/conformance/cases/chain-verify.json +1 -1
- package/conformance/cases/chain-verify_profile.json +1 -1
- package/conformance/cases/charter_revision-decode.json +1 -1
- package/conformance/cases/descriptor_chain-verify.json +1 -1
- package/conformance/cases/digest-hash.json +1 -1
- package/conformance/cases/governing_revision.json +1 -1
- package/conformance/cases/json-decode.json +1 -1
- package/conformance/cases/party_descriptor-verify.json +1 -1
- package/conformance/cases/receipt-verify.json +1 -1
- package/conformance/cases/schema-validate.json +1 -1
- package/conformance/cases/signing-prepare.json +1 -0
- package/conformance/cases/termination-verify.json +1 -1
- package/conformance/index.json +1 -1
- package/dist/cli.js +1 -1
- package/dist/core.d.ts +75 -15
- package/dist/core.js +1734 -507
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
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 { 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, type SigningInput, type ProducerResult, type AlgRow, type VerifyResult, type RefusalResult, } 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";
|
package/dist/index.js
CHANGED
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
// traces to corpus agreement with the Elixir reference implementation,
|
|
10
10
|
// recomputed from raw bytes.
|
|
11
11
|
export { algorithmRegistryDigest, canonical, capabilities, loadCorpus, reportFor, selfChecks, decodeJsonText, jsonProjection, } from "./core.js";
|
|
12
|
-
export { 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, } 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";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charter-agreement-protocol/verifier",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Independent TypeScript verifier for the Charter Agreement Protocol (CAP)
|
|
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.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -23,20 +23,23 @@
|
|
|
23
23
|
"conformance",
|
|
24
24
|
"LICENSE",
|
|
25
25
|
"NOTICE",
|
|
26
|
-
"README.md"
|
|
26
|
+
"README.md",
|
|
27
|
+
"SECURITY.md"
|
|
27
28
|
],
|
|
28
29
|
"engines": {
|
|
29
30
|
"node": ">=24.8.0"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
|
-
"build": "tsc -p tsconfig.build.json",
|
|
33
|
+
"build": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\" && tsc -p tsconfig.build.json",
|
|
33
34
|
"typecheck": "tsc --noEmit",
|
|
34
35
|
"self-checks": "node --experimental-strip-types --no-warnings self-checks.ts",
|
|
35
|
-
"test": "node --test --experimental-strip-types --no-warnings verifier.test.ts api.test.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",
|
|
36
37
|
"conformance": "node --experimental-strip-types --no-warnings cli.ts",
|
|
38
|
+
"check:ed25519": "node --experimental-strip-types --no-warnings check-ed25519.ts",
|
|
39
|
+
"bench:ed25519": "node --experimental-strip-types --no-warnings bench-ed25519.ts",
|
|
37
40
|
"prepack": "npm run build",
|
|
38
41
|
"typecheck:web": "tsc -p tsconfig.web.json",
|
|
39
|
-
"build:site": "node web/build.mjs
|
|
42
|
+
"build:site": "node web/build.mjs"
|
|
40
43
|
},
|
|
41
44
|
"devDependencies": {
|
|
42
45
|
"@charter-agreement-protocol/signer": "^0.2.0",
|