@agledger/verify-core 1.3.0 → 1.4.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 CHANGED
@@ -47,6 +47,47 @@ if (!result.valid) {
47
47
  matched verification key, under the algorithm its SPKI commits to (Ed25519
48
48
  or ES256; anything else fails closed as `CHAIN_UNSUPPORTED_ALGORITHM`).
49
49
 
50
+ ## Verifying on a FIPS-locked host
51
+
52
+ This package has no crypto of its own: it verifies through the host's Node
53
+ runtime. An active OpenSSL FIPS provider carries no EdDSA, so **an Ed25519
54
+ chain cannot be verified on a FIPS-locked host**. ES256 chains can.
55
+
56
+ That is reported as `CHAIN_UNSUPPORTED_ALGORITHM`, never as a signature
57
+ failure. The distinction is the whole point: "I could not check this" and "I
58
+ checked this and it failed" lead to opposite conclusions, and only one of them
59
+ is grounds for a tamper investigation. The result still fails closed, because
60
+ an unverified chain is not a verified one. To actually verify an Ed25519 chain,
61
+ re-run on a host without the restriction; the export and keys are portable and
62
+ the verification is entirely offline, so this costs nothing but a second host.
63
+
64
+ ### Asking about an algorithm directly
65
+
66
+ `CHAIN_UNSUPPORTED_ALGORITHM` covers two causes with different remedies (this
67
+ build does not implement the algorithm, versus this host refuses to compute it),
68
+ so a consumer writing its own report can ask about either:
69
+
70
+ ```ts
71
+ import { algorithmByName, runtimeCanCompute, describeUnsupportedAlgorithm } from '@agledger/verify-core';
72
+
73
+ // runtimeCanCompute takes a KeyAlgorithm from this build's table, NOT a name
74
+ // string. Look one up with algorithmByName ('Ed25519', 'ES256', 'ES384',
75
+ // 'ES512', 'ES256K'); it returns null for anything else.
76
+ const ed25519 = algorithmByName('Ed25519');
77
+ if (ed25519 && !runtimeCanCompute(ed25519)) {
78
+ console.warn('This host cannot verify Ed25519 chains.');
79
+ }
80
+
81
+ // Or ask about a specific key, given its SPKI DER base64. Safe to call without
82
+ // having established that a gap exists: a key that verifies fine here says so
83
+ // rather than asserting a refusal that did not happen.
84
+ console.log(describeUnsupportedAlgorithm(spkiBase64));
85
+ ```
86
+
87
+ `algorithmByName` exists for the case `resolveKeyAlgorithm` cannot serve: a host
88
+ that refuses to *load* a key of some algorithm produces no key object to
89
+ resolve, which is exactly when the question matters most.
90
+
50
91
  ## Out-of-band keys
51
92
 
52
93
  `options.publicKeys` accepts either of two shapes:
@@ -174,4 +174,3 @@ export interface VerifyExportResult {
174
174
  unsignedProjectionFields: string[];
175
175
  }
176
176
  export declare function verifyAuditExport(exportData: RecordAuditExportInput, options?: VerifyExportOptions): VerifyExportResult;
177
- //# sourceMappingURL=audit-export.d.ts.map
@@ -226,4 +226,3 @@ function normalizeOutOfBandKeys(publicKeys) {
226
226
  }
227
227
  return entries;
228
228
  }
229
- //# sourceMappingURL=audit-export.js.map
package/dist/chain.d.ts CHANGED
@@ -66,9 +66,12 @@ export interface SignatureOutcome {
66
66
  * - `not-checked` — a structural/chain check failed at or before this entry,
67
67
  * so verification short-circuited before reaching the signature. Reads as a
68
68
  * consequence of an upstream break, never as a benign skip.
69
- * - `unsupported`: the entry's trusted key commits to an algorithm this
70
- * build cannot compute (CHAIN_UNSUPPORTED_ALGORITHM). A failure state,
71
- * never a benign skip.
69
+ * - `unsupported`: the signature could not be computed at all, either
70
+ * because this build does not implement the algorithm or because the host
71
+ * runtime refused it (an active OpenSSL FIPS provider carries no EdDSA).
72
+ * CHAIN_UNSUPPORTED_ALGORITHM. A failure state, never a benign skip, and
73
+ * never tamper evidence: distinguishing it from `invalid` is the whole
74
+ * point, since only `invalid` means a signature was checked and failed.
72
75
  */
73
76
  state: 'ok' | 'invalid' | 'unsigned' | 'skipped' | 'not-checked' | 'decode-fail' | 'unsupported';
74
77
  /** Provenance of the key the signature was checked against ('ok' / 'invalid'). */
@@ -126,4 +129,3 @@ export interface VerifyChainOptions {
126
129
  * validates the true chain — tampering surfaces through the hash links).
127
130
  */
128
131
  export declare function verifyChain(entries: readonly NormalizedEntry[], keys: KeyRegistry, options?: VerifyChainOptions): ChainResult;
129
- //# sourceMappingURL=chain.d.ts.map
package/dist/chain.js CHANGED
@@ -28,7 +28,7 @@
28
28
  * signature skip happens LAST, after the binding/OIDC checks, so a row written
29
29
  * without a signing key is still subject to every structural check.
30
30
  */
31
- import { buildPredicateForRow, decodeCoseSign1, decodePredicate, deepEqual, extractChainClaim, extractKid, extractOnBehalfOfClaim, resolveKeyAlgorithm, sha256Hex, stripEnvelopeExtensions, verifyCoseSign1, } from './primitives.js';
31
+ import { buildPredicateForRow, decodeCoseSign1, decodePredicate, deepEqual, describeUnsupportedAlgorithm, extractChainClaim, extractKid, extractOnBehalfOfClaim, resolveKeyAlgorithm, sha256Hex, stripEnvelopeExtensions, verifyCoseSign1, } from './primitives.js';
32
32
  export function buildKeyRegistry(keys) {
33
33
  const map = new Map();
34
34
  for (const k of keys)
@@ -234,7 +234,7 @@ function verifyEntry(entry, expectedPosition, expectedPrevHash, keys, options, o
234
234
  return fail(scopeId, expectedPosition, 'CHAIN_ALG_MISMATCH', `Protected-header alg (label 1) is absent or is not an algorithm key ${entry.signingKeyId} can produce. Tamper class: a rewritten alg must read as forgery, never as an upgrade notice.`, 'invalid');
235
235
  }
236
236
  if (outcome === 'unsupported-key-algorithm') {
237
- return fail(scopeId, expectedPosition, 'CHAIN_UNSUPPORTED_ALGORITHM', `Key ${entry.signingKeyId} commits to an algorithm this verifier build cannot compute. The chain is NOT verified; upgrade the verifier.`, 'unsupported');
237
+ return fail(scopeId, expectedPosition, 'CHAIN_UNSUPPORTED_ALGORITHM', `Key ${entry.signingKeyId} ${describeUnsupportedAlgorithm(key.spkiBase64)}`, 'unsupported');
238
238
  }
239
239
  return fail(scopeId, expectedPosition, 'CHAIN_SIGNATURE_INVALID', `COSE_Sign1 signature did not verify against key ${entry.signingKeyId}.`, outcome === 'decode-fail' ? 'decode-fail' : 'invalid');
240
240
  }
@@ -295,4 +295,3 @@ function temporalKeyFailure(createdAt, key) {
295
295
  }
296
296
  return null;
297
297
  }
298
- //# sourceMappingURL=chain.js.map
@@ -41,4 +41,3 @@
41
41
  export type FailureCode = 'UNSUPPORTED_FORMAT' | 'CHAIN_EMPTY' | 'CHAIN_POSITION_GAP' | 'CHAIN_GENESIS_INVALID' | 'CHAIN_LINK_BROKEN' | 'CHAIN_HASH_MISMATCH' | 'CHAIN_MALFORMED_ENTRY' | 'CHAIN_COSE_DECODE_FAILED' | 'CHAIN_COSE_HEADER_MISMATCH' | 'CHAIN_PAYLOAD_BINDING_MISMATCH' | 'CHAIN_OIDC_ACTOR_MISMATCH' | 'CHAIN_SIGNATURE_INVALID' | 'CHAIN_SIGNATURE_MISSING_KEY' | 'CHAIN_KEY_POLICY_VIOLATION' | 'CHAIN_KEY_EXPIRED' | 'CHAIN_KEY_NOT_YET_ACTIVE' | 'CHAIN_ALG_MISMATCH' | 'CHAIN_UNSUPPORTED_ALGORITHM' | 'CHAIN_SIGNING_KEY_DRIFT' | 'CHECKPOINT_ROW_MISSING' | 'CHECKPOINT_HASH_MISMATCH' | 'CHECKPOINT_SIGNATURE_INVALID' | 'TENANT_READ_LEAF_HASH_MISMATCH' | 'TENANT_READ_LEAF_INDEX_GAP' | 'TENANT_READ_SIGNATURE_INVALID' | 'TENANT_CHECKPOINT_LEAF_COUNT_MISMATCH' | 'TENANT_CHECKPOINT_ROOT_MISMATCH' | 'TENANT_CHECKPOINT_SIGNATURE_INVALID' | 'TENANT_CHECKPOINT_FORK';
42
42
  /** The actionable next step for a failure code. */
43
43
  export declare function suggestion(code: FailureCode): string;
44
- //# sourceMappingURL=failures.d.ts.map
package/dist/failures.js CHANGED
@@ -45,36 +45,35 @@
45
45
  const SUGGESTIONS = {
46
46
  UNSUPPORTED_FORMAT: 'This verifier reads exportFormatVersion 2.0 / RFC8949-CDE canonicalization. Re-export the chain from a current AGLedger instance, or upgrade the verifier to match the producing engine.',
47
47
  CHAIN_EMPTY: 'No entries were present to verify. Confirm the record id / dump directory is correct and that the chain has not been truncated to zero rows.',
48
- CHAIN_POSITION_GAP: 'A chain position is missing or out of order. The chain was truncated or reordered — obtain a complete, unmodified export/dump from the operator and re-run.',
49
- CHAIN_GENESIS_INVALID: 'The first entry must carry previousHash = null. A non-null genesis link means the head of the chain was removed — request the full chain from position 1.',
50
- CHAIN_LINK_BROKEN: 'An entry\'s previousHash does not match the prior entry\'s payloadHash. The chain was edited between these two entries — treat every entry from this position on as untrusted.',
51
- CHAIN_HASH_MISMATCH: 'sha256(cose_sign1) does not equal the stored payloadHash. The envelope bytes or the stored hash were altered — the signed bytes are authoritative; the row was tampered with.',
52
- CHAIN_MALFORMED_ENTRY: 'An entry is missing a required field (coseSign1 or payloadHash). The export/dump is incomplete or corrupt — regenerate it.',
53
- CHAIN_COSE_DECODE_FAILED: 'The COSE_Sign1 envelope did not decode as a tagged 4-element structure. The signed bytes are corrupt — regenerate the export/dump.',
54
- CHAIN_COSE_HEADER_MISMATCH: 'The position/previousHash signed in the COSE protected header disagree with the row columns. The visible columns were renumbered after signing — trust the signed header, not the columns.',
55
- CHAIN_PAYLOAD_BINDING_MISMATCH: 'The signed payload\'s structure no longer matches the canonical projection of the row columns it is bound to — the visible (denormalised) payload was altered after signing. This is a binding-integrity failure, not a judgement on content.',
48
+ CHAIN_POSITION_GAP: 'A chain position is missing or out of order. The chain was truncated or reordered. Obtain a complete, unmodified export/dump from the operator and re-run.',
49
+ CHAIN_GENESIS_INVALID: 'The first entry must carry previousHash = null. A non-null genesis link means the head of the chain was removed. Request the full chain from position 1.',
50
+ CHAIN_LINK_BROKEN: 'An entry\'s previousHash does not match the prior entry\'s payloadHash. The chain was edited between these two entries. Treat every entry from this position on as untrusted.',
51
+ CHAIN_HASH_MISMATCH: 'sha256(cose_sign1) does not equal the stored payloadHash. The envelope bytes or the stored hash were altered. The signed bytes are authoritative; the row was tampered with.',
52
+ CHAIN_MALFORMED_ENTRY: 'An entry is missing a required field (coseSign1 or payloadHash). The export/dump is incomplete or corrupt. Regenerate it.',
53
+ CHAIN_COSE_DECODE_FAILED: 'The COSE_Sign1 envelope did not decode as a tagged 4-element structure. The signed bytes are corrupt. Regenerate the export/dump.',
54
+ CHAIN_COSE_HEADER_MISMATCH: 'The position/previousHash signed in the COSE protected header disagree with the row columns. The visible columns were renumbered after signing. Trust the signed header, not the columns.',
55
+ CHAIN_PAYLOAD_BINDING_MISMATCH: 'The signed payload\'s structure no longer matches the canonical projection of the row columns it is bound to: the visible (denormalised) payload was altered after signing. This is a binding-integrity failure, not a judgement on content.',
56
56
  CHAIN_OIDC_ACTOR_MISMATCH: 'The denormalised actor OIDC issuer/subject columns disagree with the identity signed in predicate.on_behalf_of. The actor columns were tampered with after signing.',
57
- CHAIN_SIGNATURE_INVALID: 'The Ed25519 COSE_Sign1 signature did not verify against the entry\'s signing key. The entry was forged or altered — obtain the verification keys out of band and re-run.',
57
+ CHAIN_SIGNATURE_INVALID: 'The COSE_Sign1 signature did not verify against the entry\'s signing key, under the algorithm that key commits to. The entry was forged or altered: obtain the verification keys out of band and re-run.',
58
58
  CHAIN_SIGNATURE_MISSING_KEY: 'No public key was available for the entry\'s signingKeyId. Supply the key out of band (GET /v1/verification-keys or /.well-known/scitt-keys) and re-run.',
59
59
  CHAIN_KEY_POLICY_VIOLATION: 'The entry\'s signing key violates the caller\'s trust policy (requireKeyId, or out-of-band keys required). Re-run with the expected key id, or with keys obtained out of band rather than the engine-embedded set.',
60
60
  CHAIN_KEY_EXPIRED: 'The entry was written AFTER its signing key was retired. Possible use of a compromised retired key: check the key rotation and retention record for that key id.',
61
61
  CHAIN_KEY_NOT_YET_ACTIVE: 'The entry was written BEFORE its signing key was activated. Not a rotation problem: the usual causes are a backdated entry or clock skew between the signer and the key registry. Compare the entry write time against the key activation time before treating this as tamper.',
62
62
  CHAIN_ALG_MISMATCH: 'The algorithm in the signed protected header (label 1) is not one the entry\'s trusted verification key can produce, or the key registry\'s declared algorithm contradicts the key material itself. Tamper class: the header alg or the key registry was rewritten. Treat the entry as forged; obtain the verification keys out of band and re-run.',
63
- CHAIN_UNSUPPORTED_ALGORITHM: 'The entry\'s trusted verification key commits to a signature algorithm this verifier build cannot compute. The chain is NOT verified: upgrade to a verifier version that supports the algorithm and re-run. Never treat this result as a pass.',
63
+ CHAIN_UNSUPPORTED_ALGORITHM: 'The entry\'s trusted verification key commits to a signature algorithm that could not be computed, either because this verifier build does not implement it or because the host runtime refused it (an active OpenSSL FIPS provider carries no EdDSA). The chain is NOT verified, and this is NOT tamper evidence: the signature was never checked. Upgrade the verifier, or re-run on a host without the restriction. Never treat this result as a pass.',
64
64
  CHAIN_SIGNING_KEY_DRIFT: 'The entry\'s signingKeyId column names a different key than the signature-covered kid in the COSE protected header. The column is a denormalized convenience and was rewritten after signing (possibly to point verification at another key). Trust the signed kid; treat the row as tampered.',
65
- CHECKPOINT_ROW_MISSING: 'A signed checkpoint anchors a position that has no matching chain row. The chain was truncated below a checkpoint (out-of-band DELETE/TRUNCATE) — the checkpoint is proof of the missing rows.',
66
- CHECKPOINT_HASH_MISMATCH: 'A checkpoint\'s payloadHash does not match the chain row at its position. The chain diverged from what was checkpointed — treat the chain as tampered.',
67
- CHECKPOINT_SIGNATURE_INVALID: 'A checkpoint\'s COSE_Sign1 signature did not verify. The checkpoint was forged or altered — re-run with out-of-band verification keys.',
65
+ CHECKPOINT_ROW_MISSING: 'A signed checkpoint anchors a position that has no matching chain row. The chain was truncated below a checkpoint (out-of-band DELETE/TRUNCATE). The checkpoint is proof of the missing rows.',
66
+ CHECKPOINT_HASH_MISMATCH: 'A checkpoint\'s payloadHash does not match the chain row at its position. The chain diverged from what was checkpointed. Treat the chain as tampered.',
67
+ CHECKPOINT_SIGNATURE_INVALID: 'A checkpoint\'s COSE_Sign1 signature did not verify. The checkpoint was forged or altered. Re-run with out-of-band verification keys.',
68
68
  TENANT_READ_LEAF_HASH_MISMATCH: 'An org_admin_reads leaf hash does not match sha256(cose_sign1). The read-log leaf was altered after recording.',
69
- TENANT_READ_LEAF_INDEX_GAP: 'org_admin_reads leaf indices are not gap-free for this org. A read-log entry was removed — obtain the complete log.',
69
+ TENANT_READ_LEAF_INDEX_GAP: 'org_admin_reads leaf indices are not gap-free for this org. A read-log entry was removed. Obtain the complete log.',
70
70
  TENANT_READ_SIGNATURE_INVALID: 'An org_admin_reads leaf\'s COSE_Sign1 signature did not verify. The read-log leaf was forged or altered.',
71
71
  TENANT_CHECKPOINT_LEAF_COUNT_MISMATCH: 'A signed tree head commits to more leaves than the dump contains. The read log was truncated below a checkpoint.',
72
72
  TENANT_CHECKPOINT_ROOT_MISMATCH: 'The recomputed Merkle root does not match the signed root_hash. The read log diverged from what was checkpointed.',
73
73
  TENANT_CHECKPOINT_SIGNATURE_INVALID: 'A signed-tree-head COSE_Sign1 signature did not verify. The STH was forged or altered.',
74
- TENANT_CHECKPOINT_FORK: 'Two signed tree heads at the same tree_size carry different roots. This is an engine fork or signing-key compromise — escalate immediately.',
74
+ TENANT_CHECKPOINT_FORK: 'Two signed tree heads at the same tree_size carry different roots. This is an engine fork or signing-key compromise. Escalate immediately.',
75
75
  };
76
76
  /** The actionable next step for a failure code. */
77
77
  export function suggestion(code) {
78
78
  return SUGGESTIONS[code];
79
79
  }
80
- //# sourceMappingURL=failures.js.map
package/dist/index.d.ts CHANGED
@@ -9,6 +9,5 @@ export { buildKeyRegistry, verifyChain, } from './chain.js';
9
9
  export type { KeySource, VerificationKey, KeyRegistry, NormalizedEntry, OptionalCheck, CheckApplicability, SignatureOutcome, ChainEntryResult, ChainResult, VerifyChainOptions, } from './chain.js';
10
10
  export { verifyAuditExport } from './audit-export.js';
11
11
  export type { AuditExportEntryInput, RecordAuditExportInput, SigningKeyWindow, VerifyExportOptions, OutOfBandKeyEntry, EntryVerificationResult, VerifyExportResult, } from './audit-export.js';
12
- export { sha256Hex, sha256HexString, verifyEd25519Bytes, verifySignatureBytes, resolveKeyAlgorithm, decodeCoseSign1, verifyCoseSign1, extractChainClaim, extractKid, extractOnBehalfOfClaim, extractTraceparentClaim, decodePredicate, buildPredicateForRow, stripEnvelopeExtensions, deepEqual, merkleRoot, verifyInclusion, rfc9162LeafHash, rfc9162NodeHash, verifyRfc9162Inclusion, extractReceiptInclusionProof, verifyReceipt, } from './primitives.js';
12
+ export { sha256Hex, sha256HexString, verifyEd25519Bytes, verifySignatureBytes, resolveKeyAlgorithm, algorithmByName, runtimeCanCompute, looksLikeEd25519Key, describeUnsupportedAlgorithm, decodeCoseSign1, verifyCoseSign1, extractChainClaim, extractKid, extractOnBehalfOfClaim, extractTraceparentClaim, decodePredicate, buildPredicateForRow, stripEnvelopeExtensions, deepEqual, merkleRoot, verifyInclusion, rfc9162LeafHash, rfc9162NodeHash, verifyRfc9162Inclusion, extractReceiptInclusionProof, verifyReceipt, } from './primitives.js';
13
13
  export type { CoseSign1Parts, CoseVerifyOutcome, KeyAlgorithm, ChainClaim, ReceiptInclusionProof, ReceiptVerifyOutcome, } from './primitives.js';
14
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -6,5 +6,4 @@
6
6
  export { suggestion } from './failures.js';
7
7
  export { buildKeyRegistry, verifyChain, } from './chain.js';
8
8
  export { verifyAuditExport } from './audit-export.js';
9
- export { sha256Hex, sha256HexString, verifyEd25519Bytes, verifySignatureBytes, resolveKeyAlgorithm, decodeCoseSign1, verifyCoseSign1, extractChainClaim, extractKid, extractOnBehalfOfClaim, extractTraceparentClaim, decodePredicate, buildPredicateForRow, stripEnvelopeExtensions, deepEqual, merkleRoot, verifyInclusion, rfc9162LeafHash, rfc9162NodeHash, verifyRfc9162Inclusion, extractReceiptInclusionProof, verifyReceipt, } from './primitives.js';
10
- //# sourceMappingURL=index.js.map
9
+ export { sha256Hex, sha256HexString, verifyEd25519Bytes, verifySignatureBytes, resolveKeyAlgorithm, algorithmByName, runtimeCanCompute, looksLikeEd25519Key, describeUnsupportedAlgorithm, decodeCoseSign1, verifyCoseSign1, extractChainClaim, extractKid, extractOnBehalfOfClaim, extractTraceparentClaim, decodePredicate, buildPredicateForRow, stripEnvelopeExtensions, deepEqual, merkleRoot, verifyInclusion, rfc9162LeafHash, rfc9162NodeHash, verifyRfc9162Inclusion, extractReceiptInclusionProof, verifyReceipt, } from './primitives.js';
@@ -35,6 +35,31 @@ export interface KeyAlgorithm {
35
35
  /** Signature encoding for ECDSA (COSE requires raw r||s, not DER). */
36
36
  dsaEncoding: 'ieee-p1363' | null;
37
37
  }
38
+ /**
39
+ * Look up a table entry by its registry name (`Ed25519`, `ES256`, ...).
40
+ *
41
+ * Exists for the one question `resolveKeyAlgorithm` cannot answer: on a host
42
+ * that refuses to LOAD a key of some algorithm, there is no key object to
43
+ * resolve, yet that is exactly when a caller most needs to ask whether the
44
+ * algorithm is computable here. Pair with `runtimeCanCompute`.
45
+ */
46
+ export declare function algorithmByName(name: string): KeyAlgorithm | null;
47
+ /**
48
+ * Whether these bytes DECLARE themselves an Ed25519 public key, judged without
49
+ * asking node:crypto to load them.
50
+ *
51
+ * Needed because a host that refuses EdDSA refuses at KEY LOAD, not only at
52
+ * verify: with the OpenSSL FIPS provider active, `createPublicKey` throws
53
+ * "Failed to read asymmetric key" and there is no key object left to resolve an
54
+ * algorithm from. Reading the OID separates "this is an Ed25519 key my runtime
55
+ * will not touch" from "these are garbage bytes", which is the difference
56
+ * between an environment problem and tamper. Structure only: it says nothing
57
+ * about whether the key is valid, trusted, or the right one.
58
+ *
59
+ * Byte-identical to the Python verifier's `looks_like_ed25519_key`, so the two
60
+ * implementations classify the same bytes the same way.
61
+ */
62
+ export declare function looksLikeEd25519Key(spkiDer: Uint8Array): boolean;
38
63
  /**
39
64
  * Resolve the algorithm a base64 SPKI DER public key commits to. Returns:
40
65
  *
@@ -55,8 +80,30 @@ export declare function resolveKeyAlgorithm(publicKeyBase64: string): KeyAlgorit
55
80
  * ECDSA/SHA-256 for EC keys, which would accept a signature no conformant
56
81
  * EdDSA verifier accepts (the engine guards the signing side the same way,
57
82
  * api#1089), so the key type is asserted before any crypto runs.
83
+ *
84
+ * CAUTION for direct callers: as with `verifySignatureBytes`, `false` conflates
85
+ * "did not verify" with "this host cannot compute EdDSA". Check
86
+ * `runtimeCanCompute` first if that distinction matters to you.
58
87
  */
59
88
  export declare function verifyEd25519Bytes(publicKeyBase64: string, input: Uint8Array, signature: Uint8Array): boolean;
89
+ /**
90
+ * Whether the host runtime can actually compute `keyAlg`, proven by running
91
+ * this build's own dispatch against a known-good signature.
92
+ *
93
+ * A throw and a `false` are treated identically: either way the runtime just
94
+ * failed to confirm a signature known to be valid, so it cannot be trusted to
95
+ * tell a good signature from a forged one. Fail closed, and callers must
96
+ * surface this as "NOT verified, verify elsewhere", never as a pass and never
97
+ * as tamper evidence.
98
+ */
99
+ export declare function runtimeCanCompute(keyAlg: KeyAlgorithm): boolean;
100
+ /**
101
+ * Human-readable reason an algorithm could not be computed, for the detail
102
+ * line of CHAIN_UNSUPPORTED_ALGORITHM. Distinguishes the two causes that share
103
+ * that failure code, because they have different remedies: upgrade the
104
+ * verifier, versus re-run somewhere the algorithm is permitted.
105
+ */
106
+ export declare function describeUnsupportedAlgorithm(publicKeyBase64: string): string;
60
107
  /**
61
108
  * Verify a raw signature under whatever algorithm the TRUSTED key commits to.
62
109
  * Generalizes `verifyEd25519Bytes`: the algorithm is resolved from the SPKI
@@ -70,6 +117,12 @@ export declare function verifyEd25519Bytes(publicKeyBase64: string, input: Uint8
70
117
  * engine normalizes to low-S at sign time but, like the engine's verifier,
71
118
  * high-S is accepted here: ECDSA malleability changes the envelope bytes,
72
119
  * which the hash-link layer already pins.
120
+ *
121
+ * CAUTION for direct callers: `false` here means "did not verify" OR "this
122
+ * host cannot compute the algorithm", which are opposite conclusions.
123
+ * `verifyCoseSign1` gates on `runtimeCanCompute` before ever reaching this,
124
+ * so it never conflates them; anything calling this primitive directly must
125
+ * do the same check itself or risk reporting an intact signature as forged.
73
126
  */
74
127
  export declare function verifySignatureBytes(publicKeyBase64: string, input: Uint8Array, signature: Uint8Array): boolean;
75
128
  /**
@@ -224,4 +277,3 @@ export type ReceiptVerifyOutcome = 'ok' | 'decode-fail' | 'signature-invalid' |
224
277
  export declare function verifyReceipt(receiptBytes: Uint8Array, signedStatementBytes: Uint8Array, tsPublicKeyBase64: string): ReceiptVerifyOutcome;
225
278
  export declare function merkleRoot(leaves: readonly string[]): string;
226
279
  export declare function verifyInclusion(leafHash: string, leafIndex: number, treeSize: number, path: readonly string[], expectedRoot: string): boolean;
227
- //# sourceMappingURL=primitives.d.ts.map
@@ -15,7 +15,7 @@
15
15
  * updated together; the conformance corpus (real engine output) is the
16
16
  * regression net that catches divergence.
17
17
  */
18
- import { createPublicKey, hash, verify } from 'node:crypto';
18
+ import { createPublicKey, getFips, hash, verify } from 'node:crypto';
19
19
  import { decode as cborDecode, encode as cborEncode, rfc8949EncodeOptions } from 'cborg';
20
20
  // --- SHA-256 ---
21
21
  /** sha256 over arbitrary bytes -> lowercase hex. */
@@ -41,6 +41,63 @@ const KEY_ALGORITHMS = {
41
41
  'ec:secp521r1': Object.freeze({ name: 'ES512', coseAlgs: Object.freeze([-36]), signatureLength: 132, verifiable: false, nodeKeyType: 'ec', namedCurve: 'secp521r1', digest: null, dsaEncoding: null }),
42
42
  'ec:secp256k1': Object.freeze({ name: 'ES256K', coseAlgs: Object.freeze([-47]), signatureLength: 64, verifiable: false, nodeKeyType: 'ec', namedCurve: 'secp256k1', digest: null, dsaEncoding: null }),
43
43
  };
44
+ /**
45
+ * Look up a table entry by its registry name (`Ed25519`, `ES256`, ...).
46
+ *
47
+ * Exists for the one question `resolveKeyAlgorithm` cannot answer: on a host
48
+ * that refuses to LOAD a key of some algorithm, there is no key object to
49
+ * resolve, yet that is exactly when a caller most needs to ask whether the
50
+ * algorithm is computable here. Pair with `runtimeCanCompute`.
51
+ */
52
+ export function algorithmByName(name) {
53
+ for (const alg of Object.values(KEY_ALGORITHMS)) {
54
+ if (alg.name === name)
55
+ return alg;
56
+ }
57
+ return null;
58
+ }
59
+ /**
60
+ * SPKI DER prefix for an Ed25519 public key: SEQUENCE(44) { SEQUENCE(5) {
61
+ * OID 1.3.101.112 } BIT STRING(33) }. RFC 8410 fixes the whole structure, so an
62
+ * Ed25519 SPKI is always these 12 bytes followed by the 32-byte key.
63
+ */
64
+ const ED25519_SPKI_PREFIX = Buffer.from('302a300506032b6570032100', 'hex');
65
+ const ED25519_SPKI_LENGTH = 44;
66
+ /**
67
+ * Whether these bytes DECLARE themselves an Ed25519 public key, judged without
68
+ * asking node:crypto to load them.
69
+ *
70
+ * Needed because a host that refuses EdDSA refuses at KEY LOAD, not only at
71
+ * verify: with the OpenSSL FIPS provider active, `createPublicKey` throws
72
+ * "Failed to read asymmetric key" and there is no key object left to resolve an
73
+ * algorithm from. Reading the OID separates "this is an Ed25519 key my runtime
74
+ * will not touch" from "these are garbage bytes", which is the difference
75
+ * between an environment problem and tamper. Structure only: it says nothing
76
+ * about whether the key is valid, trusted, or the right one.
77
+ *
78
+ * Byte-identical to the Python verifier's `looks_like_ed25519_key`, so the two
79
+ * implementations classify the same bytes the same way.
80
+ */
81
+ export function looksLikeEd25519Key(spkiDer) {
82
+ if (spkiDer.length !== ED25519_SPKI_LENGTH)
83
+ return false;
84
+ return Buffer.from(spkiDer).subarray(0, ED25519_SPKI_PREFIX.length).equals(ED25519_SPKI_PREFIX);
85
+ }
86
+ /**
87
+ * The narrow case where a key that would not LOAD must not read as tamper: the
88
+ * bytes declare Ed25519 by OID and this host cannot compute Ed25519 at all.
89
+ *
90
+ * Judged from the OID rather than from capability alone, so genuinely tampered
91
+ * key material still reads as tamper on every host, and both verifiers agree on
92
+ * garbage bytes. On a host that CAN compute Ed25519 this is always false, so an
93
+ * unloadable key there stays a signature failure exactly as before.
94
+ */
95
+ function isRuntimeRefusedEd25519Key(publicKeyBase64) {
96
+ const ed = KEY_ALGORITHMS['ed25519'];
97
+ if (!ed)
98
+ return false;
99
+ return looksLikeEd25519Key(Buffer.from(publicKeyBase64, 'base64')) && !runtimeCanCompute(ed);
100
+ }
44
101
  /** Small memo: a registry holds a handful of keys but chains hold millions of entries. */
45
102
  const KEY_ALG_CACHE = new Map();
46
103
  const KEY_ALG_CACHE_MAX = 256;
@@ -87,6 +144,10 @@ export function resolveKeyAlgorithm(publicKeyBase64) {
87
144
  * ECDSA/SHA-256 for EC keys, which would accept a signature no conformant
88
145
  * EdDSA verifier accepts (the engine guards the signing side the same way,
89
146
  * api#1089), so the key type is asserted before any crypto runs.
147
+ *
148
+ * CAUTION for direct callers: as with `verifySignatureBytes`, `false` conflates
149
+ * "did not verify" with "this host cannot compute EdDSA". Check
150
+ * `runtimeCanCompute` first if that distinction matters to you.
90
151
  */
91
152
  export function verifyEd25519Bytes(publicKeyBase64, input, signature) {
92
153
  try {
@@ -104,6 +165,178 @@ export function verifyEd25519Bytes(publicKeyBase64, input, signature) {
104
165
  }
105
166
  }
106
167
  // --- Key-dispatched signature verification (Ed25519 + ES256) ---
168
+ /**
169
+ * Perform the actual verify() call for a resolved algorithm, WITHOUT catching.
170
+ *
171
+ * Split out from `verifySignatureBytes` so that two different failures stay
172
+ * distinguishable: a `false` return means the signature did not verify, while
173
+ * a throw means the host runtime could not perform the operation at all (see
174
+ * `runtimeCanCompute`). Collapsing those two into one boolean is what made a
175
+ * FIPS-locked host report an intact Ed25519 chain as forged (agents#113).
176
+ *
177
+ * ES256 mirrors the engine's `verifyWithAlgorithm`: SHA-256 digest passed
178
+ * positionally, `dsaEncoding: 'ieee-p1363'` (COSE raw r||s, 64 bytes). The
179
+ * engine normalizes to low-S at sign time but, like the engine's verifier,
180
+ * high-S is accepted here: ECDSA malleability changes the envelope bytes,
181
+ * which the hash-link layer already pins.
182
+ */
183
+ function dispatchVerify(keyAlg, publicKeyBase64, input, signature) {
184
+ const keyObj = createPublicKey({
185
+ key: Buffer.from(publicKeyBase64, 'base64'),
186
+ format: 'der',
187
+ type: 'spki',
188
+ });
189
+ // Redundant with resolution from the same bytes, kept so a refactor that
190
+ // ever passes the algorithm in from elsewhere cannot reach Node's silent
191
+ // key-type-dispatched fallback (the api#1089 trap).
192
+ if (keyObj.asymmetricKeyType !== keyAlg.nodeKeyType)
193
+ return false;
194
+ if (keyAlg.nodeKeyType === 'ec') {
195
+ if (keyObj.asymmetricKeyDetails?.namedCurve !== keyAlg.namedCurve)
196
+ return false;
197
+ if (keyAlg.digest === null || keyAlg.dsaEncoding === null)
198
+ return false;
199
+ return verify(keyAlg.digest, input, { key: keyObj, dsaEncoding: keyAlg.dsaEncoding }, signature);
200
+ }
201
+ return verify(null, input, keyObj, signature);
202
+ }
203
+ // --- Runtime algorithm capability (known-answer tests) ---
204
+ /**
205
+ * Fixed (key, message, signature) triples, one per `verifiable` algorithm,
206
+ * generated once with this package's own dispatch and checked in.
207
+ *
208
+ * They exist to answer a question the algorithm table cannot: `verifiable`
209
+ * says what this BUILD implements, which is only half of whether a signature
210
+ * can be checked. The other half is whether the HOST RUNTIME will perform the
211
+ * operation, and a runtime can refuse. An active OpenSSL FIPS provider
212
+ * carries no EdDSA, so `verify()` throws
213
+ * ERR_OSSL_EVP_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE for a perfectly good
214
+ * Ed25519 key.
215
+ *
216
+ * Deliberately fixed, self-contained bytes rather than a freshly generated
217
+ * keypair or anything read from the export under audit: promoting a signature
218
+ * failure to "not checked" is a security-relevant downgrade, so the signal
219
+ * that triggers it must be one no attacker can influence. Nothing in the
220
+ * audited data reaches this test.
221
+ */
222
+ const KAT_MESSAGE = Buffer.from('AGLedger verifier runtime known-answer test', 'utf8');
223
+ // Keyed on the frozen table entries themselves, not on `name`. A string-keyed
224
+ // map is one typo away from silently reverting this whole mechanism: a missing
225
+ // key reads as "no vector", the probe falls back to "supported", and every
226
+ // refusal goes back to reporting as a forged signature. There is no string to
227
+ // get wrong here, and the assertion below turns any remaining gap into a loud
228
+ // failure at import rather than a quiet downgrade at audit time.
229
+ const ALGORITHM_KATS = new Map([
230
+ [
231
+ KEY_ALGORITHMS['ed25519'],
232
+ {
233
+ spkiBase64: 'MCowBQYDK2VwAyEAjChcTn8MOj5h5PpKz/+MvHfomativmvfmC1zV5Sczfo=',
234
+ signatureBase64: 'iinDVfJ5uwoE4aWjLhunX340+yPlu4l2S8RFG+IfXqzWoiIXYL/ND7+ouGVzAnejozCErkL9GneR1sc3vY1sAg==',
235
+ },
236
+ ],
237
+ [
238
+ KEY_ALGORITHMS['ec:prime256v1'],
239
+ {
240
+ spkiBase64: 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEyJ40hViXjp41rIWYdbJT9bUHWVjYWpsOLKdc4F1L+c4reEK7WmCx1fI4sl0okBN/lNvhZT+0HZ44aUw5HKmFA==',
241
+ signatureBase64: 'eQ8fKfXT5GuBUz7gueqcq9hTmzrJlSuaoF/ukCPtKJsxqrynVgIREn/XMPKbdSHp7wMyFOEAgmbVfoMDnR5x/Q==',
242
+ },
243
+ ],
244
+ ]);
245
+ // Every algorithm this build claims to compute must carry a vector proving the
246
+ // host can compute it. Failing at import is the point: a packaging slip here
247
+ // would otherwise surface as silently unverified audit chains.
248
+ for (const alg of Object.values(KEY_ALGORITHMS)) {
249
+ if (alg.verifiable && !ALGORITHM_KATS.has(alg)) {
250
+ throw new Error(`@agledger/verify-core packaging error: ${alg.name} is marked verifiable but carries no known-answer vector.`);
251
+ }
252
+ }
253
+ /** One probe per algorithm per process; the answer cannot change mid-run. */
254
+ const RUNTIME_SUPPORT_CACHE = new Map();
255
+ /**
256
+ * Whether the host runtime can actually compute `keyAlg`, proven by running
257
+ * this build's own dispatch against a known-good signature.
258
+ *
259
+ * A throw and a `false` are treated identically: either way the runtime just
260
+ * failed to confirm a signature known to be valid, so it cannot be trusted to
261
+ * tell a good signature from a forged one. Fail closed, and callers must
262
+ * surface this as "NOT verified, verify elsewhere", never as a pass and never
263
+ * as tamper evidence.
264
+ */
265
+ export function runtimeCanCompute(keyAlg) {
266
+ if (!keyAlg.verifiable)
267
+ return false;
268
+ const kat = ALGORITHM_KATS.get(keyAlg);
269
+ // Unreachable for table entries (the import-time assertion above). A caller
270
+ // that fabricated its own KeyAlgorithm lands here: fail closed, and do not
271
+ // memoize, so a hostile or buggy consumer cannot poison the answer that
272
+ // real verification depends on.
273
+ if (!kat)
274
+ return false;
275
+ const cached = RUNTIME_SUPPORT_CACHE.get(keyAlg);
276
+ if (cached !== undefined)
277
+ return cached;
278
+ let supported;
279
+ try {
280
+ supported = dispatchVerify(keyAlg, kat.spkiBase64, KAT_MESSAGE, Buffer.from(kat.signatureBase64, 'base64'));
281
+ }
282
+ catch {
283
+ supported = false;
284
+ }
285
+ RUNTIME_SUPPORT_CACHE.set(keyAlg, supported);
286
+ return supported;
287
+ }
288
+ /**
289
+ * Human-readable reason an algorithm could not be computed, for the detail
290
+ * line of CHAIN_UNSUPPORTED_ALGORITHM. Distinguishes the two causes that share
291
+ * that failure code, because they have different remedies: upgrade the
292
+ * verifier, versus re-run somewhere the algorithm is permitted.
293
+ */
294
+ export function describeUnsupportedAlgorithm(publicKeyBase64) {
295
+ const keyAlg = resolveKeyAlgorithm(publicKeyBase64);
296
+ // Same reachability trap as `verifyCoseSign1`: on the host this sentence
297
+ // exists for, the key never loaded, so there is no algorithm to resolve and
298
+ // the generic "upgrade the verifier" text would send an auditor after a build
299
+ // that is fine. Answer from the OID instead.
300
+ if (typeof keyAlg !== 'object' && isRuntimeRefusedEd25519Key(publicKeyBase64)) {
301
+ return describeRuntimeRefusal(KEY_ALGORITHMS['ed25519']);
302
+ }
303
+ if (typeof keyAlg !== 'object') {
304
+ return 'commits to an algorithm this verifier build cannot compute. The chain is NOT verified; upgrade the verifier.';
305
+ }
306
+ if (!keyAlg.verifiable) {
307
+ return `commits to ${keyAlg.name}, which this verifier build cannot compute. The chain is NOT verified; upgrade the verifier.`;
308
+ }
309
+ if (runtimeCanCompute(keyAlg)) {
310
+ // No gap applies. Reached only by an external caller asking about a key
311
+ // that verifies fine here, so say that rather than inventing a refusal:
312
+ // this is exported API and its answer must not depend on the caller
313
+ // having checked the precondition first.
314
+ return `commits to ${keyAlg.name}, which this verifier build and this host can both compute. No algorithm gap applies to this key.`;
315
+ }
316
+ return describeRuntimeRefusal(keyAlg);
317
+ }
318
+ /** The host-refused-this-algorithm sentence, shared by both ways of reaching it. */
319
+ function describeRuntimeRefusal(keyAlg) {
320
+ // The FIPS clause names a missing EdDSA implementation, so it belongs only
321
+ // to EdDSA. A FIPS provider carries ECDSA P-256 quite happily, and telling
322
+ // an ES256 auditor that EdDSA is absent sends them somewhere useless.
323
+ const cause = isFipsActive() && keyAlg.name === 'Ed25519'
324
+ ? ' because the OpenSSL FIPS provider is active, and it carries no EdDSA.'
325
+ : '.';
326
+ return (`commits to ${keyAlg.name}, which this verifier build supports but this HOST RUNTIME refused to compute` +
327
+ cause +
328
+ ' This is NOT tamper evidence: the signature was never checked, so the chain is neither verified nor refuted.' +
329
+ ' Re-run the verification on a host without that restriction.');
330
+ }
331
+ /** Best-effort FIPS detection, used only to explain a failure, never to gate one. */
332
+ function isFipsActive() {
333
+ try {
334
+ return getFips() === 1;
335
+ }
336
+ catch {
337
+ return false;
338
+ }
339
+ }
107
340
  /**
108
341
  * Verify a raw signature under whatever algorithm the TRUSTED key commits to.
109
342
  * Generalizes `verifyEd25519Bytes`: the algorithm is resolved from the SPKI
@@ -117,30 +350,19 @@ export function verifyEd25519Bytes(publicKeyBase64, input, signature) {
117
350
  * engine normalizes to low-S at sign time but, like the engine's verifier,
118
351
  * high-S is accepted here: ECDSA malleability changes the envelope bytes,
119
352
  * which the hash-link layer already pins.
353
+ *
354
+ * CAUTION for direct callers: `false` here means "did not verify" OR "this
355
+ * host cannot compute the algorithm", which are opposite conclusions.
356
+ * `verifyCoseSign1` gates on `runtimeCanCompute` before ever reaching this,
357
+ * so it never conflates them; anything calling this primitive directly must
358
+ * do the same check itself or risk reporting an intact signature as forged.
120
359
  */
121
360
  export function verifySignatureBytes(publicKeyBase64, input, signature) {
122
361
  const keyAlg = resolveKeyAlgorithm(publicKeyBase64);
123
362
  if (typeof keyAlg !== 'object' || !keyAlg.verifiable)
124
363
  return false;
125
364
  try {
126
- const keyObj = createPublicKey({
127
- key: Buffer.from(publicKeyBase64, 'base64'),
128
- format: 'der',
129
- type: 'spki',
130
- });
131
- // Redundant with resolution from the same bytes, kept so a refactor that
132
- // ever passes the algorithm in from elsewhere cannot reach Node's silent
133
- // key-type-dispatched fallback (the api#1089 trap).
134
- if (keyObj.asymmetricKeyType !== keyAlg.nodeKeyType)
135
- return false;
136
- if (keyAlg.nodeKeyType === 'ec') {
137
- if (keyObj.asymmetricKeyDetails?.namedCurve !== keyAlg.namedCurve)
138
- return false;
139
- if (keyAlg.digest === null || keyAlg.dsaEncoding === null)
140
- return false;
141
- return verify(keyAlg.digest, input, { key: keyObj, dsaEncoding: keyAlg.dsaEncoding }, signature);
142
- }
143
- return verify(null, input, keyObj, signature);
365
+ return dispatchVerify(keyAlg, publicKeyBase64, input, signature);
144
366
  }
145
367
  catch {
146
368
  return false;
@@ -190,14 +412,25 @@ export function verifyCoseSign1(coseSign1, publicKeyBase64) {
190
412
  const keyAlg = resolveKeyAlgorithm(publicKeyBase64);
191
413
  // A key that does not parse can verify nothing; preserve the historical
192
414
  // 'invalid' rather than misreporting garbage bytes as an algorithm gap.
193
- if (keyAlg === 'unparseable')
194
- return 'invalid';
415
+ //
416
+ // One exception, and it is deliberately narrow: bytes that DECLARE themselves
417
+ // an Ed25519 key (by OID) on a host that cannot compute EdDSA. A FIPS-locked
418
+ // runtime refuses such a key at LOAD, so "did not parse" there means "this
419
+ // host will not touch it", not "someone forged it". Without this, the whole
420
+ // agents#113 capability gate below is unreachable on the one path it was
421
+ // written for, and an intact chain still reads as tamper.
422
+ if (keyAlg === 'unparseable') {
423
+ return isRuntimeRefusedEd25519Key(publicKeyBase64) ? 'unsupported-key-algorithm' : 'invalid';
424
+ }
195
425
  if (keyAlg === 'unrecognized')
196
426
  return 'unsupported-key-algorithm';
197
427
  const headerAlg = extractHeaderAlg(parts.protectedBstr);
198
428
  if (headerAlg === null || !keyAlg.coseAlgs.includes(headerAlg))
199
429
  return 'alg-mismatch';
200
- if (!keyAlg.verifiable)
430
+ // Two independent reasons the signature cannot be checked: this build does
431
+ // not implement the algorithm, or the host runtime refuses to compute it
432
+ // (agents#113). Both must read as "not verified", never as "did not verify".
433
+ if (!keyAlg.verifiable || !runtimeCanCompute(keyAlg))
201
434
  return 'unsupported-key-algorithm';
202
435
  if (parts.signature.length === keyAlg.signatureLength &&
203
436
  parts.signature.every((b) => b === 0)) {
@@ -680,4 +913,3 @@ export function verifyInclusion(leafHash, leafIndex, treeSize, path, expectedRoo
680
913
  }
681
914
  return current === expectedRoot && pathPos === path.length;
682
915
  }
683
- //# sourceMappingURL=primitives.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agledger/verify-core",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Shared offline verification core for AGLedger audit chains: COSE_Sign1 (RFC 9052) decode/verify, Ed25519 + ES256, hash-chain walk, Merkle proofs, and the canonical failure taxonomy. One dependency (cborg); no network. The single source of truth the SDK, CLI, MCP server, and @agledger/verify all build on.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "files": [
19
19
  "dist",
20
+ "!dist/**/*.map",
20
21
  "LICENSE",
21
22
  "README.md"
22
23
  ],
@@ -46,6 +47,9 @@
46
47
  "type": "git",
47
48
  "url": "git+https://github.com/agledger-ai/verify-core.git"
48
49
  },
50
+ "bugs": {
51
+ "url": "https://github.com/agledger-ai/verify-core/issues"
52
+ },
49
53
  "publishConfig": {
50
54
  "access": "public"
51
55
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"audit-export.d.ts","sourceRoot":"","sources":["../src/audit-export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAGL,KAAK,kBAAkB,EAEvB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAEtB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,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EAAE,WAAW,GAAG,MAAM,CAEpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"failures.js","sourceRoot":"","sources":["../src/failures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAqCH;;;GAGG;AACH,MAAM,WAAW,GAAgC;IAC/C,kBAAkB,EAChB,0LAA0L;IAC5L,WAAW,EACT,8IAA8I;IAChJ,kBAAkB,EAChB,6JAA6J;IAC/J,qBAAqB,EACnB,2JAA2J;IAC7J,iBAAiB,EACf,gLAAgL;IAClL,mBAAmB,EACjB,+KAA+K;IACjL,qBAAqB,EACnB,4HAA4H;IAC9H,wBAAwB,EACtB,oIAAoI;IACtI,0BAA0B,EACxB,4LAA4L;IAC9L,8BAA8B,EAC5B,+OAA+O;IACjP,yBAAyB,EACvB,qKAAqK;IACvK,uBAAuB,EACrB,0KAA0K;IAC5K,2BAA2B,EACzB,0JAA0J;IAC5J,0BAA0B,EACxB,oNAAoN;IACtN,iBAAiB,EACf,kKAAkK;IACpK,wBAAwB,EACtB,gRAAgR;IAClR,kBAAkB,EAChB,qVAAqV;IACvV,2BAA2B,EACzB,gPAAgP;IAClP,uBAAuB,EACrB,gSAAgS;IAClS,sBAAsB,EACpB,gMAAgM;IAClM,wBAAwB,EACtB,wJAAwJ;IAC1J,4BAA4B,EAC1B,wIAAwI;IAC1I,8BAA8B,EAC5B,gHAAgH;IAClH,0BAA0B,EACxB,qHAAqH;IACvH,6BAA6B,EAC3B,0GAA0G;IAC5G,qCAAqC,EACnC,kHAAkH;IACpH,+BAA+B,EAC7B,mHAAmH;IACrH,mCAAmC,EACjC,wFAAwF;IAC1F,sBAAsB,EACpB,6IAA6I;CAChJ,CAAC;AAEF,mDAAmD;AACnD,MAAM,UAAU,UAAU,CAAC,IAAiB;IAC1C,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EACL,gBAAgB,EAChB,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,YAAY,EACV,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,eAAe,EACf,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,4BAA4B,EAC5B,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EACL,gBAAgB,EAChB,WAAW,GACZ,MAAM,YAAY,CAAC;AAcpB,OAAO,EAAE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