@certcrypt/verifier-toolkit 0.0.0-stage → 1.0.1

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.

Potentially problematic release.


This version of @certcrypt/verifier-toolkit might be problematic. Click here for more details.

Files changed (221) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/LICENSE +178 -0
  3. package/README.md +563 -2
  4. package/SECURITY.md +77 -0
  5. package/dist/cli/certcrypt-verify.d.ts +2 -0
  6. package/dist/cli/certcrypt-verify.js +174 -0
  7. package/dist/cli/certcrypt-verify.js.map +1 -0
  8. package/dist/core/config/certcrypt-foundation.d.ts +13 -0
  9. package/dist/core/config/certcrypt-foundation.js +123 -0
  10. package/dist/core/config/certcrypt-foundation.js.map +1 -0
  11. package/dist/core/config/default.d.ts +47 -0
  12. package/dist/core/config/default.js +93 -0
  13. package/dist/core/config/default.js.map +1 -0
  14. package/dist/core/config/test-keys.d.ts +40 -0
  15. package/dist/core/config/test-keys.js +41 -0
  16. package/dist/core/config/test-keys.js.map +1 -0
  17. package/dist/core/conformance/attestation.d.ts +4 -0
  18. package/dist/core/conformance/attestation.js +4 -0
  19. package/dist/core/conformance/attestation.js.map +1 -0
  20. package/dist/core/consistency/verify-consistency.d.ts +92 -0
  21. package/dist/core/consistency/verify-consistency.js +353 -0
  22. package/dist/core/consistency/verify-consistency.js.map +1 -0
  23. package/dist/core/crypto/canonical-json.d.ts +14 -0
  24. package/dist/core/crypto/canonical-json.js +13 -0
  25. package/dist/core/crypto/canonical-json.js.map +1 -0
  26. package/dist/core/crypto/canonical-subject.d.ts +76 -0
  27. package/dist/core/crypto/canonical-subject.js +248 -0
  28. package/dist/core/crypto/canonical-subject.js.map +1 -0
  29. package/dist/core/crypto/collection-merkle.d.ts +91 -0
  30. package/dist/core/crypto/collection-merkle.js +243 -0
  31. package/dist/core/crypto/collection-merkle.js.map +1 -0
  32. package/dist/core/crypto/composite.d.ts +73 -0
  33. package/dist/core/crypto/composite.js +206 -0
  34. package/dist/core/crypto/composite.js.map +1 -0
  35. package/dist/core/crypto/digest.d.ts +18 -0
  36. package/dist/core/crypto/digest.js +37 -0
  37. package/dist/core/crypto/digest.js.map +1 -0
  38. package/dist/core/crypto/ecdsa-p256.d.ts +12 -0
  39. package/dist/core/crypto/ecdsa-p256.js +70 -0
  40. package/dist/core/crypto/ecdsa-p256.js.map +1 -0
  41. package/dist/core/crypto/ed25519.d.ts +10 -0
  42. package/dist/core/crypto/ed25519.js +28 -0
  43. package/dist/core/crypto/ed25519.js.map +1 -0
  44. package/dist/core/crypto/holder-keyset.d.ts +23 -0
  45. package/dist/core/crypto/holder-keyset.js +64 -0
  46. package/dist/core/crypto/holder-keyset.js.map +1 -0
  47. package/dist/core/crypto/jcs.d.ts +9 -0
  48. package/dist/core/crypto/jcs.js +59 -0
  49. package/dist/core/crypto/jcs.js.map +1 -0
  50. package/dist/core/crypto/merkle.d.ts +34 -0
  51. package/dist/core/crypto/merkle.js +147 -0
  52. package/dist/core/crypto/merkle.js.map +1 -0
  53. package/dist/core/crypto/ml-dsa.d.ts +25 -0
  54. package/dist/core/crypto/ml-dsa.js +104 -0
  55. package/dist/core/crypto/ml-dsa.js.map +1 -0
  56. package/dist/core/crypto/provider/bytes.d.ts +31 -0
  57. package/dist/core/crypto/provider/bytes.js +106 -0
  58. package/dist/core/crypto/provider/bytes.js.map +1 -0
  59. package/dist/core/crypto/provider/index.d.ts +45 -0
  60. package/dist/core/crypto/provider/index.js +60 -0
  61. package/dist/core/crypto/provider/index.js.map +1 -0
  62. package/dist/core/crypto/provider/node.d.ts +2 -0
  63. package/dist/core/crypto/provider/node.js +96 -0
  64. package/dist/core/crypto/provider/node.js.map +1 -0
  65. package/dist/core/crypto/provider/register-node.d.ts +11 -0
  66. package/dist/core/crypto/provider/register-node.js +16 -0
  67. package/dist/core/crypto/provider/register-node.js.map +1 -0
  68. package/dist/core/crypto/provider/types.d.ts +77 -0
  69. package/dist/core/crypto/provider/types.js +16 -0
  70. package/dist/core/crypto/provider/types.js.map +1 -0
  71. package/dist/core/crypto/provider/web.d.ts +2 -0
  72. package/dist/core/crypto/provider/web.js +122 -0
  73. package/dist/core/crypto/provider/web.js.map +1 -0
  74. package/dist/core/crypto/pseudonym.d.ts +25 -0
  75. package/dist/core/crypto/pseudonym.js +37 -0
  76. package/dist/core/crypto/pseudonym.js.map +1 -0
  77. package/dist/core/crypto/subject-json-preconditions.d.ts +47 -0
  78. package/dist/core/crypto/subject-json-preconditions.js +373 -0
  79. package/dist/core/crypto/subject-json-preconditions.js.map +1 -0
  80. package/dist/core/domain/verify-domain.d.ts +13 -0
  81. package/dist/core/domain/verify-domain.js +39 -0
  82. package/dist/core/domain/verify-domain.js.map +1 -0
  83. package/dist/core/foundation/anti-equivocation.d.ts +87 -0
  84. package/dist/core/foundation/anti-equivocation.js +0 -0
  85. package/dist/core/foundation/anti-equivocation.js.map +1 -0
  86. package/dist/core/foundation/verify-foundation.d.ts +36 -0
  87. package/dist/core/foundation/verify-foundation.js +559 -0
  88. package/dist/core/foundation/verify-foundation.js.map +1 -0
  89. package/dist/core/independent/anti-replay.d.ts +15 -0
  90. package/dist/core/independent/anti-replay.js +27 -0
  91. package/dist/core/independent/anti-replay.js.map +1 -0
  92. package/dist/core/independent/anti-splicing.d.ts +16 -0
  93. package/dist/core/independent/anti-splicing.js +54 -0
  94. package/dist/core/independent/anti-splicing.js.map +1 -0
  95. package/dist/core/independent/capacity-binding.d.ts +26 -0
  96. package/dist/core/independent/capacity-binding.js +57 -0
  97. package/dist/core/independent/capacity-binding.js.map +1 -0
  98. package/dist/core/independent/capacity-evidence.d.ts +38 -0
  99. package/dist/core/independent/capacity-evidence.js +286 -0
  100. package/dist/core/independent/capacity-evidence.js.map +1 -0
  101. package/dist/core/independent/effective-units.d.ts +42 -0
  102. package/dist/core/independent/effective-units.js +147 -0
  103. package/dist/core/independent/effective-units.js.map +1 -0
  104. package/dist/core/independent/issuance-participation.d.ts +13 -0
  105. package/dist/core/independent/issuance-participation.js +24 -0
  106. package/dist/core/independent/issuance-participation.js.map +1 -0
  107. package/dist/core/independent/leaf-binding.d.ts +5 -0
  108. package/dist/core/independent/leaf-binding.js +135 -0
  109. package/dist/core/independent/leaf-binding.js.map +1 -0
  110. package/dist/core/independent/operator-recognition-registry.d.ts +33 -0
  111. package/dist/core/independent/operator-recognition-registry.js +116 -0
  112. package/dist/core/independent/operator-recognition-registry.js.map +1 -0
  113. package/dist/core/independent/proof-structure.d.ts +8 -0
  114. package/dist/core/independent/proof-structure.js +167 -0
  115. package/dist/core/independent/proof-structure.js.map +1 -0
  116. package/dist/core/independent/proof-views.d.ts +26 -0
  117. package/dist/core/independent/proof-views.js +58 -0
  118. package/dist/core/independent/proof-views.js.map +1 -0
  119. package/dist/core/independent/settlement.d.ts +18 -0
  120. package/dist/core/independent/settlement.js +548 -0
  121. package/dist/core/independent/settlement.js.map +1 -0
  122. package/dist/core/independent/verify-independent.d.ts +30 -0
  123. package/dist/core/independent/verify-independent.js +123 -0
  124. package/dist/core/independent/verify-independent.js.map +1 -0
  125. package/dist/core/independent/verify-operator-recognition.d.ts +26 -0
  126. package/dist/core/independent/verify-operator-recognition.js +60 -0
  127. package/dist/core/independent/verify-operator-recognition.js.map +1 -0
  128. package/dist/core/independent/verify-proof-signature.d.ts +20 -0
  129. package/dist/core/independent/verify-proof-signature.js +97 -0
  130. package/dist/core/independent/verify-proof-signature.js.map +1 -0
  131. package/dist/core/input/fs-bridge.d.ts +30 -0
  132. package/dist/core/input/fs-bridge.js +35 -0
  133. package/dist/core/input/fs-bridge.js.map +1 -0
  134. package/dist/core/input/load-artifacts.d.ts +2 -0
  135. package/dist/core/input/load-artifacts.js +80 -0
  136. package/dist/core/input/load-artifacts.js.map +1 -0
  137. package/dist/core/input/load-original-material.d.ts +11 -0
  138. package/dist/core/input/load-original-material.js +126 -0
  139. package/dist/core/input/load-original-material.js.map +1 -0
  140. package/dist/core/input/register-node-fs.d.ts +1 -0
  141. package/dist/core/input/register-node-fs.js +24 -0
  142. package/dist/core/input/register-node-fs.js.map +1 -0
  143. package/dist/core/input/resolve-target.d.ts +16 -0
  144. package/dist/core/input/resolve-target.js +43 -0
  145. package/dist/core/input/resolve-target.js.map +1 -0
  146. package/dist/core/input/strict-json.d.ts +25 -0
  147. package/dist/core/input/strict-json.js +167 -0
  148. package/dist/core/input/strict-json.js.map +1 -0
  149. package/dist/core/input/validate.d.ts +7 -0
  150. package/dist/core/input/validate.js +83 -0
  151. package/dist/core/input/validate.js.map +1 -0
  152. package/dist/core/issued/verify-collection-element.d.ts +66 -0
  153. package/dist/core/issued/verify-collection-element.js +137 -0
  154. package/dist/core/issued/verify-collection-element.js.map +1 -0
  155. package/dist/core/issued/verify-issued.d.ts +15 -0
  156. package/dist/core/issued/verify-issued.js +361 -0
  157. package/dist/core/issued/verify-issued.js.map +1 -0
  158. package/dist/core/issued/verify-original-material.d.ts +35 -0
  159. package/dist/core/issued/verify-original-material.js +418 -0
  160. package/dist/core/issued/verify-original-material.js.map +1 -0
  161. package/dist/core/package/verify-package.d.ts +34 -0
  162. package/dist/core/package/verify-package.js +109 -0
  163. package/dist/core/package/verify-package.js.map +1 -0
  164. package/dist/core/public-api.d.ts +178 -0
  165. package/dist/core/public-api.js +182 -0
  166. package/dist/core/public-api.js.map +1 -0
  167. package/dist/core/result/builder.d.ts +92 -0
  168. package/dist/core/result/builder.js +408 -0
  169. package/dist/core/result/builder.js.map +1 -0
  170. package/dist/core/rules/verify-corpus.d.ts +88 -0
  171. package/dist/core/rules/verify-corpus.js +165 -0
  172. package/dist/core/rules/verify-corpus.js.map +1 -0
  173. package/dist/core/rules/verify-rules.d.ts +14 -0
  174. package/dist/core/rules/verify-rules.js +62 -0
  175. package/dist/core/rules/verify-rules.js.map +1 -0
  176. package/dist/core/testing/validate-against-schema.d.ts +31 -0
  177. package/dist/core/testing/validate-against-schema.js +93 -0
  178. package/dist/core/testing/validate-against-schema.js.map +1 -0
  179. package/dist/core/types/artifacts.d.ts +224 -0
  180. package/dist/core/types/artifacts.js +2 -0
  181. package/dist/core/types/artifacts.js.map +1 -0
  182. package/dist/core/types/capacity-evidence.d.ts +85 -0
  183. package/dist/core/types/capacity-evidence.js +51 -0
  184. package/dist/core/types/capacity-evidence.js.map +1 -0
  185. package/dist/core/types/check.d.ts +61 -0
  186. package/dist/core/types/check.js +2 -0
  187. package/dist/core/types/check.js.map +1 -0
  188. package/dist/core/types/config.d.ts +97 -0
  189. package/dist/core/types/config.js +2 -0
  190. package/dist/core/types/config.js.map +1 -0
  191. package/dist/core/types/foundation.d.ts +121 -0
  192. package/dist/core/types/foundation.js +25 -0
  193. package/dist/core/types/foundation.js.map +1 -0
  194. package/dist/core/types/index.d.ts +9 -0
  195. package/dist/core/types/index.js +2 -0
  196. package/dist/core/types/index.js.map +1 -0
  197. package/dist/core/types/operator-recognition.d.ts +71 -0
  198. package/dist/core/types/operator-recognition.js +24 -0
  199. package/dist/core/types/operator-recognition.js.map +1 -0
  200. package/dist/core/types/proof.d.ts +94 -0
  201. package/dist/core/types/proof.js +2 -0
  202. package/dist/core/types/proof.js.map +1 -0
  203. package/dist/core/types/request.d.ts +59 -0
  204. package/dist/core/types/request.js +2 -0
  205. package/dist/core/types/request.js.map +1 -0
  206. package/dist/core/types/result.d.ts +164 -0
  207. package/dist/core/types/result.js +2 -0
  208. package/dist/core/types/result.js.map +1 -0
  209. package/dist/core/types/settlement-material.d.ts +130 -0
  210. package/dist/core/types/settlement-material.js +2 -0
  211. package/dist/core/types/settlement-material.js.map +1 -0
  212. package/dist/core/verify-node.d.ts +14 -0
  213. package/dist/core/verify-node.js +17 -0
  214. package/dist/core/verify-node.js.map +1 -0
  215. package/dist/core/verify-web.d.ts +1 -0
  216. package/dist/core/verify-web.js +25 -0
  217. package/dist/core/verify-web.js.map +1 -0
  218. package/dist/core/verify.d.ts +18 -0
  219. package/dist/core/verify.js +183 -0
  220. package/dist/core/verify.js.map +1 -0
  221. package/package.json +71 -4
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Zero-data capacity evidence types (capacity.evidence/1), mirroring the
3
+ * reference producer. Field order matters for the
4
+ * signing-bytes of `ProjectedCommitment` and `Level1AuthorizationBinding`:
5
+ * both are serialized insertion-ordered (NOT JCS), so these interfaces declare
6
+ * fields in the exact canonical order and the serializers below build the JSON
7
+ * in that order.
8
+ */
9
+ import type { CompositeSignatureWire } from "../crypto/composite.js";
10
+ export declare const ZERO_DATA_PROFILE = "zero-data.unlinkable";
11
+ export interface Level1AuthorizationBinding {
12
+ system_id: string;
13
+ rules_version: string;
14
+ system_root_fingerprint: string;
15
+ authorized_role: string;
16
+ authorization_issuer_kid: string;
17
+ valid_from: string;
18
+ valid_until: string;
19
+ holder_key_set_root: string;
20
+ }
21
+ export interface ProjectedAuthorization {
22
+ system_id: string;
23
+ rules_version: string;
24
+ system_root_fingerprint: string;
25
+ authorized_role: string;
26
+ authorization_issuer_kid: string;
27
+ valid_from: string;
28
+ valid_until: string;
29
+ holder_key_set_root: string;
30
+ level1_binding: Level1AuthorizationBinding;
31
+ /** System-domain Level-1 COMPOSITE signature (CERTCRYPT Composite Signature Profile) over
32
+ * M'(profile, SHA3(level1_binding signing bytes)); AND. Wire object. */
33
+ level1_signature: CompositeSignatureWire;
34
+ authorization_pseudonym: string;
35
+ holder_pseudonym: string;
36
+ }
37
+ export interface ProjectedCommitment {
38
+ commitment_version: string;
39
+ system_id: string;
40
+ system_root_fingerprint: string;
41
+ rules_version: string;
42
+ authorization_pseudonym: string;
43
+ holder_pseudonym: string;
44
+ pool_pseudonym: string;
45
+ certificate_commitment_digest: string;
46
+ consumed_quantity: string;
47
+ /**
48
+ * Issuer-declared per-subject effective units (`submission-set/1`):
49
+ * non-collection subject → "1", collection → its declared_cardinality. The
50
+ * per-subject quantity the certificate declares; distinct from
51
+ * consumed_quantity (the capacity actually consumed). Canonical
52
+ * decimal/integer string. Part of the signed view — see
53
+ * projectedCommitmentSigningBytes.
54
+ */
55
+ declared_effective_units: string;
56
+ issued_at: string;
57
+ expires_at: string;
58
+ }
59
+ export interface OperationKeyDisclosure {
60
+ leaf_index: number;
61
+ public_key_b64: string;
62
+ inclusion_proof: string[];
63
+ tree_size: number;
64
+ }
65
+ export interface CapacityEvidence {
66
+ profile: string;
67
+ operation_salt_hex: string;
68
+ projected_authorization: ProjectedAuthorization;
69
+ projected_commitment: ProjectedCommitment;
70
+ operation_key: OperationKeyDisclosure;
71
+ commitment_signature_b64: string;
72
+ }
73
+ /**
74
+ * Canonical insertion-ordered bytes of the projected commitment (the message
75
+ * the holder's leaf key signs). MUST match the reference
76
+ * producer's signing bytes byte-for-byte. We build the object in declared order so JSON.stringify emits
77
+ * keys in that order (NOT sorted — this is not JCS).
78
+ */
79
+ export declare function projectedCommitmentSigningBytes(pc: ProjectedCommitment): Uint8Array;
80
+ /**
81
+ * Canonical insertion-ordered bytes of the Level-1 authorization binding (the
82
+ * message the system-domain signs). MUST match the
83
+ * reference producer's signing bytes.
84
+ */
85
+ export declare function level1BindingSigningBytes(b: Level1AuthorizationBinding): Uint8Array;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Zero-data capacity evidence types (capacity.evidence/1), mirroring the
3
+ * reference producer. Field order matters for the
4
+ * signing-bytes of `ProjectedCommitment` and `Level1AuthorizationBinding`:
5
+ * both are serialized insertion-ordered (NOT JCS), so these interfaces declare
6
+ * fields in the exact canonical order and the serializers below build the JSON
7
+ * in that order.
8
+ */
9
+ export const ZERO_DATA_PROFILE = "zero-data.unlinkable";
10
+ /**
11
+ * Canonical insertion-ordered bytes of the projected commitment (the message
12
+ * the holder's leaf key signs). MUST match the reference
13
+ * producer's signing bytes byte-for-byte. We build the object in declared order so JSON.stringify emits
14
+ * keys in that order (NOT sorted — this is not JCS).
15
+ */
16
+ export function projectedCommitmentSigningBytes(pc) {
17
+ const ordered = {
18
+ commitment_version: pc.commitment_version,
19
+ system_id: pc.system_id,
20
+ system_root_fingerprint: pc.system_root_fingerprint,
21
+ rules_version: pc.rules_version,
22
+ authorization_pseudonym: pc.authorization_pseudonym,
23
+ holder_pseudonym: pc.holder_pseudonym,
24
+ pool_pseudonym: pc.pool_pseudonym,
25
+ certificate_commitment_digest: pc.certificate_commitment_digest,
26
+ consumed_quantity: pc.consumed_quantity,
27
+ declared_effective_units: pc.declared_effective_units,
28
+ issued_at: pc.issued_at,
29
+ expires_at: pc.expires_at,
30
+ };
31
+ return new TextEncoder().encode(JSON.stringify(ordered));
32
+ }
33
+ /**
34
+ * Canonical insertion-ordered bytes of the Level-1 authorization binding (the
35
+ * message the system-domain signs). MUST match the
36
+ * reference producer's signing bytes.
37
+ */
38
+ export function level1BindingSigningBytes(b) {
39
+ const ordered = {
40
+ system_id: b.system_id,
41
+ rules_version: b.rules_version,
42
+ system_root_fingerprint: b.system_root_fingerprint,
43
+ authorized_role: b.authorized_role,
44
+ authorization_issuer_kid: b.authorization_issuer_kid,
45
+ valid_from: b.valid_from,
46
+ valid_until: b.valid_until,
47
+ holder_key_set_root: b.holder_key_set_root,
48
+ };
49
+ return new TextEncoder().encode(JSON.stringify(ordered));
50
+ }
51
+ //# sourceMappingURL=capacity-evidence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capacity-evidence.js","sourceRoot":"","sources":["../../../core/types/capacity-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AAqExD;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAAC,EAAuB;IACrE,MAAM,OAAO,GAAG;QACd,kBAAkB,EAAE,EAAE,CAAC,kBAAkB;QACzC,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,uBAAuB,EAAE,EAAE,CAAC,uBAAuB;QACnD,aAAa,EAAE,EAAE,CAAC,aAAa;QAC/B,uBAAuB,EAAE,EAAE,CAAC,uBAAuB;QACnD,gBAAgB,EAAE,EAAE,CAAC,gBAAgB;QACrC,cAAc,EAAE,EAAE,CAAC,cAAc;QACjC,6BAA6B,EAAE,EAAE,CAAC,6BAA6B;QAC/D,iBAAiB,EAAE,EAAE,CAAC,iBAAiB;QACvC,wBAAwB,EAAE,EAAE,CAAC,wBAAwB;QACrD,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,UAAU,EAAE,EAAE,CAAC,UAAU;KAC1B,CAAC;IACF,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,CAA6B;IACrE,MAAM,OAAO,GAAG;QACd,SAAS,EAAE,CAAC,CAAC,SAAS;QACtB,aAAa,EAAE,CAAC,CAAC,aAAa;QAC9B,uBAAuB,EAAE,CAAC,CAAC,uBAAuB;QAClD,eAAe,EAAE,CAAC,CAAC,eAAe;QAClC,wBAAwB,EAAE,CAAC,CAAC,wBAAwB;QACpD,UAAU,EAAE,CAAC,CAAC,UAAU;QACxB,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,mBAAmB,EAAE,CAAC,CAAC,mBAAmB;KAC3C,CAAC;IACF,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { ResultCode } from "./result.js";
2
+ /**
3
+ * The check identifiers of verifier-toolkit/1 §9.7. A failure is reported under
4
+ * exactly one of them; the ML-DSA-65 component of the issuer signature has no
5
+ * identifier of its own, it is part of BASE_CERTIFICATE_AUTHENTIC.
6
+ */
7
+ export type CheckId = "TARGET_AUTO_RESOLUTION_VALID" | "INPUT_TARGET_SUPPORTED" | "INPUT_MODE_SUPPORTED" | "INPUT_COMBINATION_VALID" | "PACKAGE_STRUCTURE_VALID" | "PACKAGE_CONTEXT_COHERENT" | "BASE_CERTIFICATE_PRESENT" | "BASE_CERTIFICATE_STRUCTURE_VALID" | "BASE_CERTIFICATE_AUTHENTIC" | "ORIGINAL_MATERIAL_COMPARISON_VALID" | "PROOF_PRESENT" | "PROOF_VERSION_SUPPORTED" | "PROOF_STRUCTURE_VALID" | "RULES_DOMAIN_EXACT" | "RULES_CORPUS_COMMITMENT_PRESENT" | "SYSTEM_DOMAIN_EXACT" | "SYSTEM_ROOT_BINDING_VALID" | "LEAF_BINDING_VALID" | "SETTLEMENT_REF_VALID" | "FINALITY_SUFFICIENT" | "SETTLEMENT_NOT_RETROACTIVE" | "COMMITMENT_TTL_VALID" | "CAPACITY_BINDING_VALID" | "CAPACITY_NOT_RECONSTRUCTED" | "CAPACITY_EVIDENCE_VALID" | "EFFECTIVE_UNITS_BINDING_VALID" | "INCLUSION_PROOF_VALID" | "AGGREGATED_INTERPRETATION_UNIQUE" | "ISSUANCE_PARTICIPATION_VALID" | "PROOF_SIGNATURE_VALID" | "NON_REPLAY_VALID" | "ANTI_SPLICING_VALID" | "CLONE_OR_FORK_REJECTED" | "FOUNDATION_PROFILE_VALID" | "FOUNDATION_SYSTEM_ID_VALID" | "FOUNDATION_FINGERPRINT_RECOMPUTED" | "FOUNDATION_SIGNATURE_VALID" | "FOUNDATION_BOOTSTRAP_MATCHES_RULES" | "FOUNDATION_SUCCESSOR_QUORUM_VALID" | "FOUNDATION_EQUIVOCATION_DETECTED";
8
+ /**
9
+ * The failure classifications verifier-toolkit/1 Section 9.7 permits for each
10
+ * check. Keeping this relation in the type system prevents an implementation
11
+ * branch from assigning a structurally valid check the wrong result class.
12
+ */
13
+ export interface CheckFailureClassifications {
14
+ TARGET_AUTO_RESOLUTION_VALID: "INCOMPLETE";
15
+ INPUT_TARGET_SUPPORTED: "UNSUPPORTED";
16
+ INPUT_MODE_SUPPORTED: "UNSUPPORTED";
17
+ INPUT_COMBINATION_VALID: "REJECTED";
18
+ PACKAGE_STRUCTURE_VALID: "REJECTED";
19
+ PACKAGE_CONTEXT_COHERENT: "REJECTED";
20
+ BASE_CERTIFICATE_PRESENT: "INCOMPLETE";
21
+ BASE_CERTIFICATE_STRUCTURE_VALID: "REJECTED" | "UNSUPPORTED" | "INCOMPLETE";
22
+ BASE_CERTIFICATE_AUTHENTIC: "ISSUED_INVALID" | "REJECTED" | "UNSUPPORTED";
23
+ ORIGINAL_MATERIAL_COMPARISON_VALID: "ISSUED_INVALID" | "REJECTED" | "INCOMPLETE" | "UNSUPPORTED";
24
+ PROOF_PRESENT: "INCOMPLETE";
25
+ PROOF_VERSION_SUPPORTED: "UNSUPPORTED";
26
+ PROOF_STRUCTURE_VALID: "REJECTED";
27
+ RULES_DOMAIN_EXACT: "REJECTED" | "UNSUPPORTED";
28
+ RULES_CORPUS_COMMITMENT_PRESENT: "REJECTED";
29
+ SYSTEM_DOMAIN_EXACT: "INDEPENDENT_INVALID";
30
+ SYSTEM_ROOT_BINDING_VALID: "INDEPENDENT_INVALID";
31
+ LEAF_BINDING_VALID: "INDEPENDENT_INVALID" | "INCOMPLETE" | "REJECTED";
32
+ SETTLEMENT_REF_VALID: "INDEPENDENT_INVALID" | "INCOMPLETE" | "REJECTED";
33
+ FINALITY_SUFFICIENT: "INDEPENDENT_INVALID" | "INCOMPLETE" | "REJECTED";
34
+ SETTLEMENT_NOT_RETROACTIVE: "INDEPENDENT_INVALID" | "REJECTED";
35
+ COMMITMENT_TTL_VALID: "INDEPENDENT_INVALID" | "REJECTED";
36
+ CAPACITY_BINDING_VALID: "INDEPENDENT_INVALID" | "INCOMPLETE";
37
+ CAPACITY_NOT_RECONSTRUCTED: "INDEPENDENT_INVALID" | "INCOMPLETE";
38
+ CAPACITY_EVIDENCE_VALID: "INDEPENDENT_INVALID" | "INCOMPLETE";
39
+ EFFECTIVE_UNITS_BINDING_VALID: "INDEPENDENT_INVALID" | "REJECTED";
40
+ INCLUSION_PROOF_VALID: "INDEPENDENT_INVALID" | "INCOMPLETE" | "REJECTED";
41
+ AGGREGATED_INTERPRETATION_UNIQUE: "INDEPENDENT_INVALID" | "INCOMPLETE";
42
+ ISSUANCE_PARTICIPATION_VALID: "INDEPENDENT_INVALID";
43
+ PROOF_SIGNATURE_VALID: "INCOMPLETE" | "UNSUPPORTED" | "REJECTED" | "INDEPENDENT_INVALID";
44
+ NON_REPLAY_VALID: "INDEPENDENT_INVALID";
45
+ ANTI_SPLICING_VALID: "INDEPENDENT_INVALID";
46
+ CLONE_OR_FORK_REJECTED: "INDEPENDENT_INVALID";
47
+ FOUNDATION_PROFILE_VALID: "REJECTED";
48
+ FOUNDATION_SYSTEM_ID_VALID: "REJECTED";
49
+ FOUNDATION_FINGERPRINT_RECOMPUTED: "REJECTED";
50
+ FOUNDATION_SIGNATURE_VALID: "REJECTED";
51
+ FOUNDATION_BOOTSTRAP_MATCHES_RULES: "REJECTED";
52
+ FOUNDATION_SUCCESSOR_QUORUM_VALID: "REJECTED";
53
+ FOUNDATION_EQUIVOCATION_DETECTED: "REJECTED";
54
+ }
55
+ export type CheckFailureClassification<C extends CheckId> = CheckFailureClassifications[C];
56
+ export interface CheckResult {
57
+ check_id: CheckId;
58
+ passed: boolean;
59
+ failure_classification?: ResultCode;
60
+ message?: string;
61
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=check.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check.js","sourceRoot":"","sources":["../../../core/types/check.ts"],"names":[],"mappings":""}
@@ -0,0 +1,97 @@
1
+ import type { SystemFoundation } from "./foundation.js";
2
+ export interface SystemDomainConfig {
3
+ system_id: string;
4
+ system_root_fingerprint: string;
5
+ supported_rules_versions: string[];
6
+ /**
7
+ * The certified corpus commitment of each supported rules domain: the
8
+ * `subtree_root` that domain's corpus proof certifies over its normative
9
+ * documents (`rules-domain/1` §13.3).
10
+ *
11
+ * Compiled in for the same reason as `system_root_fingerprint`, and it is the
12
+ * same failure if it is not: a verifier must not be configurable into trusting
13
+ * the wrong rules text. Read this from the environment, from a file, or from
14
+ * the ruleset being evaluated, and anyone can substitute their own and obtain a
15
+ * valid verdict over a corpus they wrote themselves.
16
+ *
17
+ * What it is FOR, since evaluation does not need it: the parameters below are
18
+ * compiled in, so this verifier never reads the published specifications at
19
+ * evaluation time. This value is what lets a third party confirm that those
20
+ * compiled parameters are the ones the published corpus actually states — that
21
+ * this build was not made against an altered registry entry. Without it, a
22
+ * verifier built on tampered rules text is indistinguishable from an honest one.
23
+ *
24
+ * A rules version listed in `supported_rules_versions` with no entry here MUST
25
+ * fail closed. Absence is not permission (`rules-domain/1` §13.3.1).
26
+ */
27
+ rules_corpus_roots: Record<string, string>;
28
+ /**
29
+ * The `foundation_statement_id` of the domain's bootstrap `system-foundation/1`
30
+ * statement, exactly as its registry entry declares it. A statement that
31
+ * carries any other id is not the registered bootstrap and is rejected, even
32
+ * when its fingerprint and quorum verify.
33
+ */
34
+ foundation_statement_id: string;
35
+ /**
36
+ * SHA3-256(UTF-8(JCS(payload))) of the bootstrap statement's canonical unsigned
37
+ * payload (`system-foundation/1` §9) — the value the bootstrap quorum signed —
38
+ * exactly as the registry entry declares it. Pins every signed member of the
39
+ * one bootstrap statement, the Level-1 capacity key included: a second
40
+ * statement over the same manifest, even one the quorum signed, is rejected.
41
+ */
42
+ foundation_payload_digest: string;
43
+ /**
44
+ * The bootstrap statement itself, when the profile ships it. Used whenever a
45
+ * request supplies no statement, and validated exactly like a supplied one,
46
+ * against the three values above — shipping it removes the need to fetch it,
47
+ * not the need to check it.
48
+ */
49
+ foundation_statement?: SystemFoundation;
50
+ /**
51
+ * The subject profiles the rules domain admits. A certificate subject — or a
52
+ * leaf of a collection subject — that declares any other profile is
53
+ * non-conformant and fails closed, rather than being reported as merely
54
+ * unsupported.
55
+ */
56
+ admitted_subject_profiles: readonly string[];
57
+ /**
58
+ * The composite signature profile the rules domain fixes for the certificate
59
+ * issuer signature, the Level-1 capacity-authorization binding and the
60
+ * independence proof signature. The expected profile comes from here, never
61
+ * from the artifact: a signature declaring another profile fails closed even
62
+ * where it would verify under it.
63
+ */
64
+ signature_profile: string;
65
+ settlement_profile_id: string;
66
+ xrpl_chain_id: string;
67
+ xrpl_mpt_issuance_id: string;
68
+ /**
69
+ * The account the settlement debits — the aggregate settlement account, never
70
+ * an issuer's own.
71
+ *
72
+ * A parameter the RULES DOMAIN publishes, and that matters for longevity:
73
+ * this account can rotate (a compromised key is rotated, not lived with), and
74
+ * a certificate settled under the previous one must keep verifying forever. A
75
+ * verifier takes it from the profile of the domain the certificate names, so
76
+ * old evidence resolves against the parameters in force when it was settled.
77
+ *
78
+ * Empty is not "unconstrained": settlement verification fails closed when no
79
+ * account is configured, because an empty value cannot express the constraint
80
+ * this field exists for.
81
+ */
82
+ xrpl_settlement_account: string;
83
+ /** Required settlement action under settlement.aggregated.xrpl/1: `payment`,
84
+ * an XRPL transaction type, not an action on a contract. Paying an MPT back
85
+ * to its issuer destroys that amount, so there is no sink account. */
86
+ xrpl_action_name: string;
87
+ xrpl_token_symbol: string;
88
+ xrpl_memo_prefix: string;
89
+ /**
90
+ * Capacity-commitment TTL in seconds, from the active rules-domain registry
91
+ * (e.g. `rules/2026-01` = 86400). The commitment's signed `expires_at`
92
+ * MUST equal `issued_at + commitment_ttl_seconds`; the verifier enforces this
93
+ * as `COMMITMENT_TTL_VALID`, so an issuer cannot inflate its own window (e.g.
94
+ * emit `issued_at=today, expires_at=2100`). Public rule the verifier consumes.
95
+ */
96
+ commitment_ttl_seconds: number;
97
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../core/types/config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * CERTCRYPT System Foundation Statement type definitions.
3
+ * Per system-foundation/1.
4
+ */
5
+ import type { CompositeSignatureWire } from "../crypto/composite.js";
6
+ export interface PublicationRef {
7
+ publication_profile: string;
8
+ publication_reference: string;
9
+ }
10
+ /** One authorized composite signing key of a manifest entry's quorum (system-manifest/1). */
11
+ export interface ManifestMember {
12
+ member_kid: string;
13
+ /** ECDSA P-256 SEC1 component public key, base64. */
14
+ public_key_p256_b64: string;
15
+ /** ML-DSA-65 FIPS 204 pkEncode component public key, base64. */
16
+ public_key_mldsa_b64: string;
17
+ }
18
+ /** Quorum threshold of a manifest entry (system-manifest/1): 2 ≤ k ≤ n. */
19
+ export interface QuorumSpec {
20
+ k: number;
21
+ n: number;
22
+ }
23
+ /** One element of predecessor_signatures / statement_signatures: a member's composite signature. */
24
+ export interface MemberSignature {
25
+ signer_member_kid: string;
26
+ signature: CompositeSignatureWire;
27
+ }
28
+ /** One closed-schema entry of system-manifest/1 (10 members). */
29
+ export interface ManifestEntry {
30
+ kid: string;
31
+ algorithm: string;
32
+ quorum: QuorumSpec;
33
+ members: ManifestMember[];
34
+ valid_from: string;
35
+ valid_until: string | null;
36
+ predecessor_kid: string | null;
37
+ successor_kid: string | null;
38
+ predecessor_signatures: MemberSignature[] | null;
39
+ predecessor_manifest_fingerprint: string | null;
40
+ }
41
+ /** A system-manifest/1 instance (4 top-level members). */
42
+ export interface SystemManifest {
43
+ manifest_profile_id: string;
44
+ system_id: string;
45
+ manifest_sequence: number;
46
+ entries: ManifestEntry[];
47
+ }
48
+ export interface SystemFoundation {
49
+ foundation_profile_id: string;
50
+ foundation_statement_id: string;
51
+ system_id: string;
52
+ system_root_fingerprint: string;
53
+ /**
54
+ * The embedded system-manifest/1 bootstrap manifest version (sequence 0, one
55
+ * entry, k-of-n composite quorum). system_root_fingerprint =
56
+ * SHA3-256(JCS(system_manifest)) (system-manifest/1).
57
+ */
58
+ system_manifest: SystemManifest;
59
+ /** Always "sha3-256-system-manifest-jcs-v1" under /1. */
60
+ root_fingerprint_derivation: string;
61
+ published_rules_versions: string[];
62
+ statement_issued_at: string;
63
+ /**
64
+ * Quorum of bootstrap-member composite signatures over the unsigned payload.
65
+ * At least entries[0].quorum.k DISTINCT members must verify (system-foundation/1
66
+ * system-manifest/1 counting rule).
67
+ */
68
+ statement_signatures: MemberSignature[];
69
+ publication_refs?: PublicationRef[];
70
+ /**
71
+ * System-domain Level-1 COMPOSITE key for the zero-data capacity anchor (CERTCRYPT Composite Signature Profile).
72
+ * DISTINCT from the root quorum (which authorizes rotation/bootstrap): the
73
+ * Level-1 key authorizes holder operation-key sets AND signs both the
74
+ * capacity-evidence Level-1 binding and the Proof of Independence — all as a
75
+ * composite, so the key is published as TWO component public keys.
76
+ * REQUIRED and COVERED by the statement signatures: both fields are
77
+ * part of the signed manifest payload, so they cannot be substituted without
78
+ * invalidating FOUNDATION_SIGNATURE_VALID. Their authority is the bootstrap
79
+ * quorum signature over the payload, NOT mere co-publication in the same JSON.
80
+ */
81
+ system_domain_capacity_key_p256_b64: string;
82
+ system_domain_capacity_key_mldsa_b64: string;
83
+ /**
84
+ * Successor-binding observations attached to the statement
85
+ * (system-foundation/1 §6, system-manifest/1 §12.5). NOT part of the signed
86
+ * statement payload: each observation's only authority is the quorum of the
87
+ * embedded bootstrap entry's members over its successor-binding payload (§9,
88
+ * §12.3), which the verifier checks before the observation is compared or
89
+ * counted.
90
+ */
91
+ successor_binding_observations?: SuccessorBindingObservationInput[];
92
+ }
93
+ /**
94
+ * The canonical unsigned successor-binding payload (system-manifest/1 §9): the
95
+ * exact object every element of `predecessor_signatures` signs, as
96
+ * SHA3-256(UTF-8(JCS(payload))) under the composite profile.
97
+ */
98
+ export interface SuccessorBindingPayload {
99
+ binding_profile: string;
100
+ system_id: string;
101
+ predecessor_kid: string;
102
+ predecessor_manifest_fingerprint: string;
103
+ predecessor_manifest_sequence: number;
104
+ successor_kid: string;
105
+ successor_algorithm: string;
106
+ successor_quorum: QuorumSpec;
107
+ successor_members: ManifestMember[];
108
+ successor_valid_from: string;
109
+ }
110
+ /** One successor-binding observation: the payload and the predecessor quorum over it. */
111
+ export interface SuccessorBindingObservationInput {
112
+ successor_binding: SuccessorBindingPayload;
113
+ predecessor_signatures: MemberSignature[];
114
+ }
115
+ /**
116
+ * Canonical unsigned statement payload field order (system-foundation/1).
117
+ * Canonicalization is RFC 8785 JCS (sorted keys, null members preserved), so
118
+ * this listing order is human-readable only and does not affect the signed
119
+ * bytes. The embedded system_manifest participates inline.
120
+ */
121
+ export declare const FOUNDATION_UNSIGNED_PAYLOAD_FIELDS: (keyof SystemFoundation)[];
@@ -0,0 +1,25 @@
1
+ /**
2
+ * CERTCRYPT System Foundation Statement type definitions.
3
+ * Per system-foundation/1.
4
+ */
5
+ /**
6
+ * Canonical unsigned statement payload field order (system-foundation/1).
7
+ * Canonicalization is RFC 8785 JCS (sorted keys, null members preserved), so
8
+ * this listing order is human-readable only and does not affect the signed
9
+ * bytes. The embedded system_manifest participates inline.
10
+ */
11
+ export const FOUNDATION_UNSIGNED_PAYLOAD_FIELDS = [
12
+ "foundation_profile_id",
13
+ "foundation_statement_id",
14
+ "system_id",
15
+ "system_root_fingerprint",
16
+ "system_manifest",
17
+ "root_fingerprint_derivation",
18
+ // The Level-1 composite capacity key is COVERED by the statement signatures
19
+ // — part of the signed manifest payload.
20
+ "system_domain_capacity_key_p256_b64",
21
+ "system_domain_capacity_key_mldsa_b64",
22
+ "published_rules_versions",
23
+ "statement_issued_at",
24
+ ];
25
+ //# sourceMappingURL=foundation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foundation.js","sourceRoot":"","sources":["../../../core/types/foundation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0HH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,uBAAuB;IACvB,yBAAyB;IACzB,WAAW;IACX,yBAAyB;IACzB,iBAAiB;IACjB,6BAA6B;IAC7B,4EAA4E;IAC5E,yCAAyC;IACzC,qCAAqC;IACrC,sCAAsC;IACtC,0BAA0B;IAC1B,qBAAqB;CACtB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type { VerificationTargetRequested, InputMode, VerifierRequest, } from "./request.js";
2
+ export type { ResultCode, ResolvedTarget, DiagnosticLevel, Diagnostic, VerifierResult, CertcryptLineage, AdditionalVerifications, PqcVerificationResult, SubjectScope, } from "./result.js";
3
+ export type { CheckId, CheckResult, CheckFailureClassification, CheckFailureClassifications, } from "./check.js";
4
+ export type { FinalityContext, Settlement, Batch, AntiReplay, IndependenceProof, ProofSignature, NodeAttestation, } from "./proof.js";
5
+ export type { SettlementAction, FinalityProof, BatchManifest, CapacityConsumptionProof, LeafPreimage, BatchBindingPreimage, AuthorizationBridgeProof, CoherenceMaterial, SettlementMaterial, } from "./settlement-material.js";
6
+ export type { BaseCertificate, CertificatePayload, CertificateAnchor, SubjectCommitment, CertificateSignature, VerificationPackage, LoadedArtifacts, CollectionMaterial, SubjectMaterialMap, PrehashedMaterial, AiDecisionMaterial, } from "./artifacts.js";
7
+ export type { SystemDomainConfig } from "./config.js";
8
+ export type { PublicationRef, SystemFoundation, SystemManifest, ManifestEntry, ManifestMember, MemberSignature, QuorumSpec, SuccessorBindingPayload, SuccessorBindingObservationInput, } from "./foundation.js";
9
+ export { FOUNDATION_UNSIGNED_PAYLOAD_FIELDS } from "./foundation.js";
@@ -0,0 +1,2 @@
1
+ export { FOUNDATION_UNSIGNED_PAYLOAD_FIELDS } from "./foundation.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../core/types/index.ts"],"names":[],"mappings":"AA2EA,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Types for the `operator-recognition.registry/1` lifecycle surface — the
3
+ * append-only, system-domain-signed event log that records the lifecycle of
4
+ * recognized node operators and lets the verifier resolve, OFFLINE, whether an
5
+ * `operator_id` was a recognized participant at a given instant.
6
+ *
7
+ * The shape is pinned by the conformance vectors. The verifier reads the
8
+ * WHOLE history (not just current state) so it can resolve participation at any
9
+ * past instant with no live query.
10
+ *
11
+ * Scope: this surface enumerates recognized
12
+ * identities with their effective windows — it carries NO tiers, metrics,
13
+ * badges or commercial categories, so it is not a reputation surface.
14
+ *
15
+ * It DOES bear on artifact validity when consulted: `verifyOperatorRecognition`
16
+ * fails `OPERATOR_RECOGNITION_VALID` as `INDEPENDENT_INVALID` when a declared
17
+ * operator resolves to a non-recognized status at the issuance instant. What
18
+ * keeps that from behaving like reputation is `participationAt`, which resolves
19
+ * status AT that instant and never later — a subsequent suspension cannot reach
20
+ * back and change a verdict already reachable.
21
+ */
22
+ export declare const REGISTRY_ARTIFACT_TYPE = "operator-recognition.registry/1";
23
+ export declare const REGISTRY_EVENT_ARTIFACT_TYPE = "operator-recognition.event/1";
24
+ export type RegistryEventType = "recognition" | "key_rotation" | "suspension" | "revocation" | "expiration";
25
+ export interface RegistryEventIssuer {
26
+ kid: string;
27
+ manifest_sequence: number;
28
+ }
29
+ export interface RegistrySignature {
30
+ signature_alg: string;
31
+ signature_b64: string;
32
+ }
33
+ export interface OperatorRecognitionEvent {
34
+ artifact_type: string;
35
+ system_id: string;
36
+ rules_version: string;
37
+ system_root_fingerprint: string;
38
+ event_id: string;
39
+ sequence: number;
40
+ event_type: RegistryEventType;
41
+ operator_id: string;
42
+ /** Present for recognition/key_rotation; absent otherwise. */
43
+ operator_public_key?: string;
44
+ recorded_at: string;
45
+ effective_from: string;
46
+ /** Optional; only on a temporary suspension. */
47
+ effective_until?: string;
48
+ /** Required when effective_from < recorded_at (retroactive). */
49
+ justification?: string;
50
+ event_issuer: RegistryEventIssuer;
51
+ signature: RegistrySignature;
52
+ }
53
+ export interface OperatorRecognitionRegistry {
54
+ registry_version: string;
55
+ system_id: string;
56
+ system_root_fingerprint: string;
57
+ events: OperatorRecognitionEvent[];
58
+ }
59
+ /** The resolved recognition state of an operator at an instant. */
60
+ export type ParticipationStatus = {
61
+ status: "recognized";
62
+ operator_public_key: string;
63
+ } | {
64
+ status: "not_recognized";
65
+ } | {
66
+ status: "suspended";
67
+ } | {
68
+ status: "revoked";
69
+ } | {
70
+ status: "expired";
71
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Types for the `operator-recognition.registry/1` lifecycle surface — the
3
+ * append-only, system-domain-signed event log that records the lifecycle of
4
+ * recognized node operators and lets the verifier resolve, OFFLINE, whether an
5
+ * `operator_id` was a recognized participant at a given instant.
6
+ *
7
+ * The shape is pinned by the conformance vectors. The verifier reads the
8
+ * WHOLE history (not just current state) so it can resolve participation at any
9
+ * past instant with no live query.
10
+ *
11
+ * Scope: this surface enumerates recognized
12
+ * identities with their effective windows — it carries NO tiers, metrics,
13
+ * badges or commercial categories, so it is not a reputation surface.
14
+ *
15
+ * It DOES bear on artifact validity when consulted: `verifyOperatorRecognition`
16
+ * fails `OPERATOR_RECOGNITION_VALID` as `INDEPENDENT_INVALID` when a declared
17
+ * operator resolves to a non-recognized status at the issuance instant. What
18
+ * keeps that from behaving like reputation is `participationAt`, which resolves
19
+ * status AT that instant and never later — a subsequent suspension cannot reach
20
+ * back and change a verdict already reachable.
21
+ */
22
+ export const REGISTRY_ARTIFACT_TYPE = "operator-recognition.registry/1";
23
+ export const REGISTRY_EVENT_ARTIFACT_TYPE = "operator-recognition.event/1";
24
+ //# sourceMappingURL=operator-recognition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator-recognition.js","sourceRoot":"","sources":["../../../core/types/operator-recognition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,iCAAiC,CAAC;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,8BAA8B,CAAC"}