scitt-time-anchor 2.0.0__tar.gz

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.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Shady Ismail
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,165 @@
1
+ Metadata-Version: 2.4
2
+ Name: scitt-time-anchor
3
+ Version: 2.0.0
4
+ Summary: Clean-room zero-dependency Python verifier for draft-fassbender-scitt-time-anchor-08 and strict consensus profile
5
+ Author: Shady Ismail
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://shady-ismail-titan.github.io/scitt-time-anchor-ietf127/
8
+ Project-URL: Repository, https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127
9
+ Keywords: ietf,scitt,opentimestamps,cose,cbor,bitcoin,rfc9942,rfc9943
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Security :: Cryptography
18
+ Requires-Python: >=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ # SCITT Time-Anchor Triple-Engine Verifier (`v2.0.0`)
24
+
25
+ [![CI](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/actions/workflows/ci.yml/badge.svg)](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/actions/workflows/ci.yml)
26
+ [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/17201/badge)](https://www.bestpractices.dev/projects/17201)
27
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/shady-ismail-titan/scitt-time-anchor-ietf127/badge)](https://scorecard.dev/viewer/?uri=github.com/shady-ismail-titan/scitt-time-anchor-ietf127)
28
+ [![REUSE Compliance](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/actions/workflows/reuse.yml/badge.svg)](https://api.reuse.software/info/github.com/shady-ismail-titan/scitt-time-anchor-ietf127)
29
+ [![SWH](https://archive.softwareheritage.org/badge/swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640/)](https://archive.softwareheritage.org/swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640)
30
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/blob/main/LICENSE)
31
+
32
+ **Zero-Backend Offline Browser WASM Lab:** [https://shady-ismail-titan.github.io/scitt-time-anchor-ietf127/](https://shady-ismail-titan.github.io/scitt-time-anchor-ietf127/)
33
+ **Permanent UNESCO Software Heritage Snapshot:** [`swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640`](https://archive.softwareheritage.org/swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640)
34
+
35
+ > **Verification Scope Boundary:** `scitt-time-anchor` verifies Bitcoin-anchored temporal inclusion (`verification_scope: "temporal_anchor_only"`, `cose_signature_verified: false`). Cryptographic COSE signature verification is delegated to your SCITT verifier / Trust Store per [`THREAT_MODEL.md`](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/blob/main/THREAT_MODEL.md).
36
+
37
+ Independent clean-room reference verifiers for `draft-fassbender-scitt-time-anchor-08` implemented in Python 3, safe Rust (`#![forbid(unsafe_code)]`), and offline WebAssembly (`wasm32-unknown-unknown`), paired with Z3 SMT invariant proofs, a 64-variant `draft-templeman-scitt-framing-space-01` CBOR framing-space empirical study, a reproducible multi-vendor interoperability harness, and non-normative implementer feedback for the IETF SCITT Working Group.
38
+
39
+ The baseline `--mode draft08` profile implements the exact 11-step `VERIFY-ANCHOR` algorithm as the default for backward compatibility with deployed OpenTimestamps v1 proofs. The opt-in `--mode strict` profile enforces Bitcoin Mainnet consensus target/retarget constraints, `min_confirmations >= 6`, RFC 8259 / I-JSON parsing parity, RFC 8949 / RFC 9052 Section 3 deterministic CBOR rules, and hardened OTS wire bounds.
40
+
41
+ ## Architecture & Execution Targets
42
+
43
+ - **`scitt_time_anchor_py/` (`scitt-time-anchor` `2.0.0`)**: Pure Python 3 (`>= 3.10`) standard-library package with `0` runtime dependencies, PEP 621 packaging (`pyproject.toml`), and console entrypoint `scitt-time-anchor`.
44
+ - **`scitt_time_anchor_rs/` (`scitt_time_anchor_rs` `2.0.0`)**: Safe Rust CLI and library (`#![forbid(unsafe_code)]`, `0` external crate dependencies, zero Clippy warnings under `-D warnings`) using an explicit iterative `O(1)` call-stack work loop and exact 256-bit `U256` arithmetic.
45
+ - **`web/scitt_time_anchor.wasm` (`scitt_time_anchor_wasm` `2.0.0`)**: Zero-import offline `wasm32-unknown-unknown` build (`110,888` bytes raw / `48,147` bytes gzipped, `0` host imports, enforced under `Content-Security-Policy: connect-src 'none'`, bit-for-bit reproducible under `SOURCE_DATE_EPOCH`; SHA-256 recorded in [`VERIFICATION_MASTER_SUMMARY.json`](./VERIFICATION_MASTER_SUMMARY.json) and [`SHA256SUMS.txt`](./SHA256SUMS.txt)).
46
+ - **Two Verification Profiles (100% Backward-Compatible Default)**:
47
+ - `--mode draft08` (default): Executes the baseline 11-step `VERIFY-ANCHOR` algorithm across Appendix D.1–D.7 and wild post-2016 Bitcoin `OP_RETURN` `.ots` proofs without breaking existing calendars or v1 receipts.
48
+ - `--mode strict`: Opt-in hardened verification profile enforcing Mainnet consensus ceilings (`powLimit` `0x1d00ffff`, post-BIP113 `0x181fffff`, `2016`-block `4x` retarget clamping), `min_confirmations >= 6`, RFC 8259 / I-JSON JSONL parity, RFC 8949 deterministic CBOR and RFC 9052 Section 3 empty protected header rejection (`b"\xa0"`), canonical `<= 5`-octet `u32` LEB128 varuints, `{0x08, 0xf0, 0xf1}` opcode allowlists, `MAX_RUNNING_BYTES = 4096`, and `BIP-113` / `Forward-MTP(H+5)` temporal monotonicity.
49
+
50
+ ## What Changed in `v2.0.0`
51
+
52
+ 1. **Slide 4 Bitcoin Mainnet Consensus Target & Retarget Enforcement (`--mode strict`)**:
53
+ - Rejects forged Mainnet headers exceeding `powLimit` (`0x1d00ffff`), enforces the post-BIP113 (`h >= 419,328`) maximum target ceiling (`0x181fffff`), enforces mid-epoch target immutability, clamps `2016`-block retarget boundaries to `[0.25x, 4x]`, and verifies exact Bitcoin Core `CalculateNextWorkRequired` (`GetCompact` / `SetCompact`) transitions (`N17A`–`N18B`, Z3 Finding #8).
54
+ 2. **8 Cross-Engine Parity Fixes (`Python == Rust == WASM`)**:
55
+ - Eliminated boundary divergences across all three engines for RFC 8259 / I-JSON (`N19`) strict JSONL ingestion, RFC 8949 deterministic CBOR decoding (`N20`), duplicate semantic CBOR map-key rejection, Base64/JSON whitespace and padding validation, `COSE_Sign1` envelope handling, and strict-mode error classification.
56
+ 3. **6 Parser DoS & Consensus Hardenings**:
57
+ - **`O(1)` UTF-8 Decoding:** Replaced quadratic string rescanning in the zero-dependency Rust JSON parser (`json_min.rs`) with single-pass `O(1)` UTF-8 decoding.
58
+ - **Shared-Prefix OTS DAG Deduplication & Op Budgets:** Added shared-prefix DAG deduplication and aggregate operation caps to prevent exponential branching replay amplification.
59
+ - **Bounded CLI / WASM I/O & Dissector Caps:** Enforced a hard `4 MiB` (`4,194,304` B) I/O cap across CLI and WASM inputs plus bounded span/branch limits in the WASM Byte-Ray dissector.
60
+ - **Strict Confirmation Floor (`min_confirmations >= 6`):** Enforced a non-downgradeable 6-confirmation minimum floor in `--mode strict`.
61
+ - **RFC 9052 Section 3 Protected Header Rejection:** Rejected empty CBOR map `b"\xa0"` inside `COSE_Sign1` protected header buckets where RFC 9052 Section 3 mandates zero-length `b""`.
62
+ - **Zero-Warning Rust Static Lint Gate:** Enforced `cargo clippy --manifest-path scitt_time_anchor_rs/Cargo.toml --all-targets -- -D warnings` across all targets in CI.
63
+ 4. **64-Variant `draft-templeman-scitt-framing-space-01` CBOR Framing-Space Empirical Study**:
64
+ - Added `verification_suite/experiment_cbor_framing_space_64.py` exercising all 64 CBOR/COSE framing-space combinations across Python, Rust, and WebAssembly to document deterministic vs. malleable encoding behavior for the IETF SCITT Working Group.
65
+ 5. **17-Gate Supply-Chain, Security & Scientific Reproducibility Hardening**:
66
+ - Canonical SPDX Apache-2.0 [`LICENSE`](./LICENSE) & [`LICENSES/Apache-2.0.txt`](./LICENSES/Apache-2.0.txt), 100% FSFE REUSE 3.3 compliance ([`REUSE.toml`](./REUSE.toml), [`.github/workflows/reuse.yml`](./.github/workflows/reuse.yml)), [`SECURITY.md`](./SECURITY.md), [`THREAT_MODEL.md`](./THREAT_MODEL.md), [`CONTRIBUTING.md`](./CONTRIBUTING.md) (IETF RFC 8179), [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md) (IETF RFC 7154 & Contributor Covenant 2.1), [`CITATION.cff`](./CITATION.cff), CodeMeta v3.0 [`codemeta.json`](./codemeta.json), ACM/JOSS [`REPRODUCIBILITY.md`](./REPRODUCIBILITY.md), OWASP CycloneDX 1.5 [`sbom.cdx.json`](./sbom.cdx.json), OpenVEX v0.2.0 [`openvex.json`](./openvex.json), OpenSSF OSPS Baseline `v2026.08.28` [`osps-baseline.json`](./osps-baseline.json) (EU CRA & NIST SSDF SP 800-218 crosswalk), [`.github/dependabot.yml`](./.github/dependabot.yml), OpenSSF Scorecard ([`.github/workflows/scorecard.yml`](./.github/workflows/scorecard.yml)), 100% commit-SHA-pinned Actions, OpenSSF Gold bit-for-bit reproducible WASM double-build + artifact forensics + anti-obfuscation + cross-manifest version parity gates in [`.github/workflows/ci.yml`](./.github/workflows/ci.yml), and SLSA v1 tag-release provenance in [`.github/workflows/release.yml`](./.github/workflows/release.yml).
67
+
68
+ ## Verified Conformance & Formal Audit Summary
69
+
70
+ Authoritative machine-verified `v2.0.0` counts and hashes are recorded in [`VERIFICATION_MASTER_SUMMARY.json`](./VERIFICATION_MASTER_SUMMARY.json) and [`SHA256SUMS.txt`](./SHA256SUMS.txt).
71
+
72
+ | Suite / Artifact | Target | Verified Posture |
73
+ | :--- | :--- | :--- |
74
+ | Rust Core Library (`cargo test --release --lib` & `clippy -D warnings`) | `scitt_time_anchor_rs` (`#![forbid(unsafe_code)]`) | `6/6` PASS, `0` warnings, `0` unsafe blocks |
75
+ | Appendix D + Strict Witness Conformance (`test_appendix_d_conformance.py`) | Dual-profile (`draft08` + `strict`, `N1`–`N34`) | `131/131` PASS, `0` Python/Rust/WASM divergences |
76
+ | CBOR Framing-Space Study (`experiment_cbor_framing_space_64.py`) | `64` `draft-templeman-scitt-framing-space-01` variants | `1/64` canonical accepted (`63/64` rejected), `266/266` cases `0` divergences |
77
+ | Microsoft Z3 Formal SMT Audit (`prove_z3_invariants.py`) | Protocol findings & soundness theorems | `11/11` VERIFIED (`UNSAT` strict invariants) |
78
+ | Triple-Engine Differential (`run_50k_triple_differential.py`) | `20` vector families (`Python == Rust == WASM`) | `50,000/50,000` PASS, `0` divergences |
79
+ | Adversarial Mutation Fuzz (`test_100k_mutation_fuzz.py`) | Hostile OTS, CBOR/COSE & header chains | `100,000/100,000` PASS, `0` crashes, `0` divergences |
80
+ | WASM Memory Leak Sieve (`wasm_100k_leak_runner.mjs`) | Single `WebAssembly.Instance` (`100k + 20k` calls) | `120,000` calls, `0` B steady-state heap delta |
81
+ | OpenSSF Gold Reproducible WASM Build (`ci.yml`) | Independent dual-target `wasm32-unknown-unknown` builds | Bit-for-bit identical `sha256sum` under `SOURCE_DATE_EPOCH` |
82
+ | Multi-Vendor Interop Matrix (`interop_matrix/MULTI_VENDOR_INTEROP_REPORT.md`) | `16` vectors × `7` external codebases + triple engine | `100%` Mainnet positive parity (`V01`, `V03`–`V06`) |
83
+
84
+ ## Quick Start
85
+
86
+ Requirements: Python `>= 3.10`, Rust `>= 1.75` (`cargo`, `clippy`, plus `wasm32-unknown-unknown` target to rebuild WASM), Node `>= 20` (for WASM differential/leak runners), `z3-solver` (for SMT proofs), and `reuse` (optional, for local REUSE 3.3 checks). See [`REPRODUCIBILITY.md`](./REPRODUCIBILITY.md) for single-command artifact reproduction and bit-for-bit WASM build verification.
87
+
88
+ ```bash
89
+ # 1. Install the zero-dependency Python package and CLI
90
+ pip install .
91
+ scitt-time-anchor --mode strict < cases.jsonl
92
+
93
+ # 2. Run Rust Clippy (-D warnings), unit tests, and release CLI build
94
+ cargo clippy --manifest-path scitt_time_anchor_rs/Cargo.toml --all-targets -- -D warnings
95
+ cargo test --manifest-path scitt_time_anchor_rs/Cargo.toml --release --lib
96
+ cargo build --manifest-path scitt_time_anchor_rs/Cargo.toml --release
97
+ ./scitt_time_anchor_rs/target/release/scitt_time_anchor_rs --mode draft08 < cases.jsonl
98
+
99
+ # 3. Run conformance, 64-variant CBOR framing study, Z3 SMT proofs, 50k differential, 100k fuzz & WASM leak sieve
100
+ python3 verification_suite/test_appendix_d_conformance.py
101
+ python3 verification_suite/experiment_cbor_framing_space_64.py
102
+ python3 verification_suite/prove_z3_invariants.py
103
+ python3 verification_suite/run_50k_triple_differential.py
104
+ python3 verification_suite/test_100k_mutation_fuzz.py
105
+ node verification_suite/wasm_100k_leak_runner.mjs
106
+
107
+ # 4. Verify FSFE REUSE 3.3 SPDX compliance
108
+ reuse lint
109
+
110
+ # 5. Launch the 100% offline browser WASM verifier locally
111
+ python3 web/server.py --host 127.0.0.1 --port 8080
112
+ ```
113
+
114
+ ## CLI Profile Usage (`draft08` vs `strict`)
115
+
116
+ Both `scitt-time-anchor` (Python) and `scitt_time_anchor_rs` (Rust) read newline-delimited JSON objects on `stdin` (capped at `4 MiB` per line) and write deterministic JSON verdicts on `stdout`:
117
+
118
+ ```bash
119
+ # Backward-compatible baseline (11-step draft-fassbender-scitt-time-anchor-08 default)
120
+ scitt-time-anchor --mode draft08 < cases.jsonl
121
+
122
+ # Opt-in hardened profile (Mainnet consensus ceilings, min_confirmations >= 6, RFC 8259/8949/9052 strictness, OTS bounds)
123
+ scitt-time-anchor --mode strict < cases.jsonl
124
+ ```
125
+
126
+ Per-case `"mode": "draft08"` or `"mode": "strict"` inside a JSONL object overrides the CLI `--mode` flag when present; callers ingesting untrusted JSONL should enforce policy at the outer boundary (see [`THREAT_MODEL.md`](./THREAT_MODEL.md)).
127
+
128
+ ## Security, Reproducibility & Standards Artifacts (17 Gates)
129
+
130
+ | Artifact / Workflow | Standard / Purpose |
131
+ | :--- | :--- |
132
+ | [`LICENSE`](./LICENSE) & [`LICENSES/Apache-2.0.txt`](./LICENSES/Apache-2.0.txt) | Full canonical SPDX Apache License, Version 2.0. |
133
+ | [`REUSE.toml`](./REUSE.toml) & [`.github/workflows/reuse.yml`](./.github/workflows/reuse.yml) | FSFE REUSE 3.3 SPDX copyright and license compliance. |
134
+ | [`SECURITY.md`](./SECURITY.md) | RFC 9116 private vulnerability disclosure (GitHub Advisories + OpenPGP), `2.0.x` support policy, 48h acknowledgement SLA, and Safe Harbor. |
135
+ | [`THREAT_MODEL.md`](./THREAT_MODEL.md) | Trust boundaries, parser/DAG DoS budgets, LEB128/CBOR/JSON parity defenses, consensus downgrade mitigations, and WASM zero-egress isolation. |
136
+ | [`CONTRIBUTING.md`](./CONTRIBUTING.md) | IETF RFC 8179 IPR disclosure posture, Apache-2.0 inbound=outbound licensing, and triple-engine parity requirements. |
137
+ | [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md) | IETF RFC 7154 Guidelines for Conduct & Contributor Covenant v2.1. |
138
+ | [`CITATION.cff`](./CITATION.cff) | Machine-readable Citation File Format 1.2.0 metadata. |
139
+ | [`codemeta.json`](./codemeta.json) | CodeMeta v3.0 / Schema.org JSON-LD metadata (FAIR4RS, Software Heritage, Zenodo, OpenAIRE, HAL). |
140
+ | [`REPRODUCIBILITY.md`](./REPRODUCIBILITY.md) | ACM Artifact Evaluation (*Available*, *Functional*, *Reusable*), JOSS Statement of Need, and `SOURCE_DATE_EPOCH` WASM double-build guide. |
141
+ | [`sbom.cdx.json`](./sbom.cdx.json) | OWASP CycloneDX 1.5 zero-dependency SBOM covering Python, Rust, and WASM deliverables. |
142
+ | [`openvex.json`](./openvex.json) | OpenVEX v0.2.0 vulnerability exploitability baseline with zero synthetic CVE entries. |
143
+ | [`osps-baseline.json`](./osps-baseline.json) | OpenSSF OSPS Baseline `v2026.08.28` Level 2/3 self-attestation crosswalked to EU CRA (Reg. 2024/2847) and NIST SSDF SP 800-218. |
144
+ | [`.github/dependabot.yml`](./.github/dependabot.yml) | Weekly automated GitHub Actions, Cargo, and pip dependency checks. |
145
+ | [`.github/workflows/scorecard.yml`](./.github/workflows/scorecard.yml) | OpenSSF Scorecard continuous security assessment uploading SARIF to GitHub Security. |
146
+ | [`.github/workflows/ci.yml`](./.github/workflows/ci.yml) | SHA-pinned CI enforcing Clippy `-D warnings`, OpenSSF Gold reproducible WASM double-builds, artifact forensics, anti-obfuscation, cross-manifest version parity, conformance, framing-space, Z3, and 50k differential suites. |
147
+ | [`.github/workflows/release.yml`](./.github/workflows/release.yml) | Tag-triggered builds with artifact forensics, SBOM/OpenVEX/OSPS staging, SHA-256 release manifests, and SLSA v1 build provenance attestations. |
148
+ | [`.github/workflows/pages.yml`](./.github/workflows/pages.yml) | SHA-pinned offline WASM lab deployment with static zero-egress and relative-path verification. |
149
+
150
+ ## Repository Layout
151
+
152
+ - `pyproject.toml` — PEP 621 package metadata for `scitt-time-anchor` (`2.0.0`, zero runtime dependencies).
153
+ - `scitt_time_anchor_py/` — Pure Python 3 reference verifier (`ots_parser.py`, `bitcoin_chain.py`, `cbor_scitt.py`, `verifier.py`, `cli.py`).
154
+ - `scitt_time_anchor_rs/` — `#![forbid(unsafe_code)]` Rust verifier crate and `wasm_cdylib/` zero-import WebAssembly export shim.
155
+ - `draft09_patch/` — Non-normative unified diff (`draft-fassbender-scitt-time-anchor-09-proposed.diff`) and test vectors `N9`–`N16` (`APPENDIX_D6_NEW_NEGATIVE_VECTORS_N9_N16.md`).
156
+ - `interop_matrix/` — Multi-vendor interoperability runner and `16 × 8` empirical report (`MULTI_VENDOR_INTEROP_REPORT.md`).
157
+ - `spec_vectors/` — Official Appendix D vectors, Bitcoin Mainnet header windows, and Z3 witness vectors (`N17A`–`N20`).
158
+ - `verification_suite/` — Conformance, 64-variant CBOR framing-space study, Z3 SMT, `50,000`-vector triple-engine differential, `100,000`-mutation fuzz, and single-instance WASM leak verification runners.
159
+ - `web/` — Self-contained offline browser WASM lab (`index.html`, `styles.css`, `app.js`, `presets.js`, `wasm_bundle.js`, `scitt_time_anchor.wasm`, `server.py`).
160
+ - `.github/workflows/` — SHA-pinned CI (`ci.yml`), GitHub Pages (`pages.yml`), OpenSSF Scorecard (`scorecard.yml`), FSFE REUSE (`reuse.yml`), and SLSA v1 tag release (`release.yml`) workflows.
161
+
162
+ ## Attribution & License
163
+
164
+ - **Contributor:** Shady Ismail (`@shady-ismail-titan`, independent open-source contributor; IETF RFC 8179 disclosure posture).
165
+ - **License:** Apache License, Version 2.0 ([`LICENSE`](./LICENSE)).
@@ -0,0 +1,143 @@
1
+ # SCITT Time-Anchor Triple-Engine Verifier (`v2.0.0`)
2
+
3
+ [![CI](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/actions/workflows/ci.yml/badge.svg)](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/actions/workflows/ci.yml)
4
+ [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/17201/badge)](https://www.bestpractices.dev/projects/17201)
5
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/shady-ismail-titan/scitt-time-anchor-ietf127/badge)](https://scorecard.dev/viewer/?uri=github.com/shady-ismail-titan/scitt-time-anchor-ietf127)
6
+ [![REUSE Compliance](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/actions/workflows/reuse.yml/badge.svg)](https://api.reuse.software/info/github.com/shady-ismail-titan/scitt-time-anchor-ietf127)
7
+ [![SWH](https://archive.softwareheritage.org/badge/swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640/)](https://archive.softwareheritage.org/swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640)
8
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/blob/main/LICENSE)
9
+
10
+ **Zero-Backend Offline Browser WASM Lab:** [https://shady-ismail-titan.github.io/scitt-time-anchor-ietf127/](https://shady-ismail-titan.github.io/scitt-time-anchor-ietf127/)
11
+ **Permanent UNESCO Software Heritage Snapshot:** [`swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640`](https://archive.softwareheritage.org/swh:1:snp:fbd4659cafd38bc3d3c2009a97a3006530446640)
12
+
13
+ > **Verification Scope Boundary:** `scitt-time-anchor` verifies Bitcoin-anchored temporal inclusion (`verification_scope: "temporal_anchor_only"`, `cose_signature_verified: false`). Cryptographic COSE signature verification is delegated to your SCITT verifier / Trust Store per [`THREAT_MODEL.md`](https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127/blob/main/THREAT_MODEL.md).
14
+
15
+ Independent clean-room reference verifiers for `draft-fassbender-scitt-time-anchor-08` implemented in Python 3, safe Rust (`#![forbid(unsafe_code)]`), and offline WebAssembly (`wasm32-unknown-unknown`), paired with Z3 SMT invariant proofs, a 64-variant `draft-templeman-scitt-framing-space-01` CBOR framing-space empirical study, a reproducible multi-vendor interoperability harness, and non-normative implementer feedback for the IETF SCITT Working Group.
16
+
17
+ The baseline `--mode draft08` profile implements the exact 11-step `VERIFY-ANCHOR` algorithm as the default for backward compatibility with deployed OpenTimestamps v1 proofs. The opt-in `--mode strict` profile enforces Bitcoin Mainnet consensus target/retarget constraints, `min_confirmations >= 6`, RFC 8259 / I-JSON parsing parity, RFC 8949 / RFC 9052 Section 3 deterministic CBOR rules, and hardened OTS wire bounds.
18
+
19
+ ## Architecture & Execution Targets
20
+
21
+ - **`scitt_time_anchor_py/` (`scitt-time-anchor` `2.0.0`)**: Pure Python 3 (`>= 3.10`) standard-library package with `0` runtime dependencies, PEP 621 packaging (`pyproject.toml`), and console entrypoint `scitt-time-anchor`.
22
+ - **`scitt_time_anchor_rs/` (`scitt_time_anchor_rs` `2.0.0`)**: Safe Rust CLI and library (`#![forbid(unsafe_code)]`, `0` external crate dependencies, zero Clippy warnings under `-D warnings`) using an explicit iterative `O(1)` call-stack work loop and exact 256-bit `U256` arithmetic.
23
+ - **`web/scitt_time_anchor.wasm` (`scitt_time_anchor_wasm` `2.0.0`)**: Zero-import offline `wasm32-unknown-unknown` build (`110,888` bytes raw / `48,147` bytes gzipped, `0` host imports, enforced under `Content-Security-Policy: connect-src 'none'`, bit-for-bit reproducible under `SOURCE_DATE_EPOCH`; SHA-256 recorded in [`VERIFICATION_MASTER_SUMMARY.json`](./VERIFICATION_MASTER_SUMMARY.json) and [`SHA256SUMS.txt`](./SHA256SUMS.txt)).
24
+ - **Two Verification Profiles (100% Backward-Compatible Default)**:
25
+ - `--mode draft08` (default): Executes the baseline 11-step `VERIFY-ANCHOR` algorithm across Appendix D.1–D.7 and wild post-2016 Bitcoin `OP_RETURN` `.ots` proofs without breaking existing calendars or v1 receipts.
26
+ - `--mode strict`: Opt-in hardened verification profile enforcing Mainnet consensus ceilings (`powLimit` `0x1d00ffff`, post-BIP113 `0x181fffff`, `2016`-block `4x` retarget clamping), `min_confirmations >= 6`, RFC 8259 / I-JSON JSONL parity, RFC 8949 deterministic CBOR and RFC 9052 Section 3 empty protected header rejection (`b"\xa0"`), canonical `<= 5`-octet `u32` LEB128 varuints, `{0x08, 0xf0, 0xf1}` opcode allowlists, `MAX_RUNNING_BYTES = 4096`, and `BIP-113` / `Forward-MTP(H+5)` temporal monotonicity.
27
+
28
+ ## What Changed in `v2.0.0`
29
+
30
+ 1. **Slide 4 Bitcoin Mainnet Consensus Target & Retarget Enforcement (`--mode strict`)**:
31
+ - Rejects forged Mainnet headers exceeding `powLimit` (`0x1d00ffff`), enforces the post-BIP113 (`h >= 419,328`) maximum target ceiling (`0x181fffff`), enforces mid-epoch target immutability, clamps `2016`-block retarget boundaries to `[0.25x, 4x]`, and verifies exact Bitcoin Core `CalculateNextWorkRequired` (`GetCompact` / `SetCompact`) transitions (`N17A`–`N18B`, Z3 Finding #8).
32
+ 2. **8 Cross-Engine Parity Fixes (`Python == Rust == WASM`)**:
33
+ - Eliminated boundary divergences across all three engines for RFC 8259 / I-JSON (`N19`) strict JSONL ingestion, RFC 8949 deterministic CBOR decoding (`N20`), duplicate semantic CBOR map-key rejection, Base64/JSON whitespace and padding validation, `COSE_Sign1` envelope handling, and strict-mode error classification.
34
+ 3. **6 Parser DoS & Consensus Hardenings**:
35
+ - **`O(1)` UTF-8 Decoding:** Replaced quadratic string rescanning in the zero-dependency Rust JSON parser (`json_min.rs`) with single-pass `O(1)` UTF-8 decoding.
36
+ - **Shared-Prefix OTS DAG Deduplication & Op Budgets:** Added shared-prefix DAG deduplication and aggregate operation caps to prevent exponential branching replay amplification.
37
+ - **Bounded CLI / WASM I/O & Dissector Caps:** Enforced a hard `4 MiB` (`4,194,304` B) I/O cap across CLI and WASM inputs plus bounded span/branch limits in the WASM Byte-Ray dissector.
38
+ - **Strict Confirmation Floor (`min_confirmations >= 6`):** Enforced a non-downgradeable 6-confirmation minimum floor in `--mode strict`.
39
+ - **RFC 9052 Section 3 Protected Header Rejection:** Rejected empty CBOR map `b"\xa0"` inside `COSE_Sign1` protected header buckets where RFC 9052 Section 3 mandates zero-length `b""`.
40
+ - **Zero-Warning Rust Static Lint Gate:** Enforced `cargo clippy --manifest-path scitt_time_anchor_rs/Cargo.toml --all-targets -- -D warnings` across all targets in CI.
41
+ 4. **64-Variant `draft-templeman-scitt-framing-space-01` CBOR Framing-Space Empirical Study**:
42
+ - Added `verification_suite/experiment_cbor_framing_space_64.py` exercising all 64 CBOR/COSE framing-space combinations across Python, Rust, and WebAssembly to document deterministic vs. malleable encoding behavior for the IETF SCITT Working Group.
43
+ 5. **17-Gate Supply-Chain, Security & Scientific Reproducibility Hardening**:
44
+ - Canonical SPDX Apache-2.0 [`LICENSE`](./LICENSE) & [`LICENSES/Apache-2.0.txt`](./LICENSES/Apache-2.0.txt), 100% FSFE REUSE 3.3 compliance ([`REUSE.toml`](./REUSE.toml), [`.github/workflows/reuse.yml`](./.github/workflows/reuse.yml)), [`SECURITY.md`](./SECURITY.md), [`THREAT_MODEL.md`](./THREAT_MODEL.md), [`CONTRIBUTING.md`](./CONTRIBUTING.md) (IETF RFC 8179), [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md) (IETF RFC 7154 & Contributor Covenant 2.1), [`CITATION.cff`](./CITATION.cff), CodeMeta v3.0 [`codemeta.json`](./codemeta.json), ACM/JOSS [`REPRODUCIBILITY.md`](./REPRODUCIBILITY.md), OWASP CycloneDX 1.5 [`sbom.cdx.json`](./sbom.cdx.json), OpenVEX v0.2.0 [`openvex.json`](./openvex.json), OpenSSF OSPS Baseline `v2026.08.28` [`osps-baseline.json`](./osps-baseline.json) (EU CRA & NIST SSDF SP 800-218 crosswalk), [`.github/dependabot.yml`](./.github/dependabot.yml), OpenSSF Scorecard ([`.github/workflows/scorecard.yml`](./.github/workflows/scorecard.yml)), 100% commit-SHA-pinned Actions, OpenSSF Gold bit-for-bit reproducible WASM double-build + artifact forensics + anti-obfuscation + cross-manifest version parity gates in [`.github/workflows/ci.yml`](./.github/workflows/ci.yml), and SLSA v1 tag-release provenance in [`.github/workflows/release.yml`](./.github/workflows/release.yml).
45
+
46
+ ## Verified Conformance & Formal Audit Summary
47
+
48
+ Authoritative machine-verified `v2.0.0` counts and hashes are recorded in [`VERIFICATION_MASTER_SUMMARY.json`](./VERIFICATION_MASTER_SUMMARY.json) and [`SHA256SUMS.txt`](./SHA256SUMS.txt).
49
+
50
+ | Suite / Artifact | Target | Verified Posture |
51
+ | :--- | :--- | :--- |
52
+ | Rust Core Library (`cargo test --release --lib` & `clippy -D warnings`) | `scitt_time_anchor_rs` (`#![forbid(unsafe_code)]`) | `6/6` PASS, `0` warnings, `0` unsafe blocks |
53
+ | Appendix D + Strict Witness Conformance (`test_appendix_d_conformance.py`) | Dual-profile (`draft08` + `strict`, `N1`–`N34`) | `131/131` PASS, `0` Python/Rust/WASM divergences |
54
+ | CBOR Framing-Space Study (`experiment_cbor_framing_space_64.py`) | `64` `draft-templeman-scitt-framing-space-01` variants | `1/64` canonical accepted (`63/64` rejected), `266/266` cases `0` divergences |
55
+ | Microsoft Z3 Formal SMT Audit (`prove_z3_invariants.py`) | Protocol findings & soundness theorems | `11/11` VERIFIED (`UNSAT` strict invariants) |
56
+ | Triple-Engine Differential (`run_50k_triple_differential.py`) | `20` vector families (`Python == Rust == WASM`) | `50,000/50,000` PASS, `0` divergences |
57
+ | Adversarial Mutation Fuzz (`test_100k_mutation_fuzz.py`) | Hostile OTS, CBOR/COSE & header chains | `100,000/100,000` PASS, `0` crashes, `0` divergences |
58
+ | WASM Memory Leak Sieve (`wasm_100k_leak_runner.mjs`) | Single `WebAssembly.Instance` (`100k + 20k` calls) | `120,000` calls, `0` B steady-state heap delta |
59
+ | OpenSSF Gold Reproducible WASM Build (`ci.yml`) | Independent dual-target `wasm32-unknown-unknown` builds | Bit-for-bit identical `sha256sum` under `SOURCE_DATE_EPOCH` |
60
+ | Multi-Vendor Interop Matrix (`interop_matrix/MULTI_VENDOR_INTEROP_REPORT.md`) | `16` vectors × `7` external codebases + triple engine | `100%` Mainnet positive parity (`V01`, `V03`–`V06`) |
61
+
62
+ ## Quick Start
63
+
64
+ Requirements: Python `>= 3.10`, Rust `>= 1.75` (`cargo`, `clippy`, plus `wasm32-unknown-unknown` target to rebuild WASM), Node `>= 20` (for WASM differential/leak runners), `z3-solver` (for SMT proofs), and `reuse` (optional, for local REUSE 3.3 checks). See [`REPRODUCIBILITY.md`](./REPRODUCIBILITY.md) for single-command artifact reproduction and bit-for-bit WASM build verification.
65
+
66
+ ```bash
67
+ # 1. Install the zero-dependency Python package and CLI
68
+ pip install .
69
+ scitt-time-anchor --mode strict < cases.jsonl
70
+
71
+ # 2. Run Rust Clippy (-D warnings), unit tests, and release CLI build
72
+ cargo clippy --manifest-path scitt_time_anchor_rs/Cargo.toml --all-targets -- -D warnings
73
+ cargo test --manifest-path scitt_time_anchor_rs/Cargo.toml --release --lib
74
+ cargo build --manifest-path scitt_time_anchor_rs/Cargo.toml --release
75
+ ./scitt_time_anchor_rs/target/release/scitt_time_anchor_rs --mode draft08 < cases.jsonl
76
+
77
+ # 3. Run conformance, 64-variant CBOR framing study, Z3 SMT proofs, 50k differential, 100k fuzz & WASM leak sieve
78
+ python3 verification_suite/test_appendix_d_conformance.py
79
+ python3 verification_suite/experiment_cbor_framing_space_64.py
80
+ python3 verification_suite/prove_z3_invariants.py
81
+ python3 verification_suite/run_50k_triple_differential.py
82
+ python3 verification_suite/test_100k_mutation_fuzz.py
83
+ node verification_suite/wasm_100k_leak_runner.mjs
84
+
85
+ # 4. Verify FSFE REUSE 3.3 SPDX compliance
86
+ reuse lint
87
+
88
+ # 5. Launch the 100% offline browser WASM verifier locally
89
+ python3 web/server.py --host 127.0.0.1 --port 8080
90
+ ```
91
+
92
+ ## CLI Profile Usage (`draft08` vs `strict`)
93
+
94
+ Both `scitt-time-anchor` (Python) and `scitt_time_anchor_rs` (Rust) read newline-delimited JSON objects on `stdin` (capped at `4 MiB` per line) and write deterministic JSON verdicts on `stdout`:
95
+
96
+ ```bash
97
+ # Backward-compatible baseline (11-step draft-fassbender-scitt-time-anchor-08 default)
98
+ scitt-time-anchor --mode draft08 < cases.jsonl
99
+
100
+ # Opt-in hardened profile (Mainnet consensus ceilings, min_confirmations >= 6, RFC 8259/8949/9052 strictness, OTS bounds)
101
+ scitt-time-anchor --mode strict < cases.jsonl
102
+ ```
103
+
104
+ Per-case `"mode": "draft08"` or `"mode": "strict"` inside a JSONL object overrides the CLI `--mode` flag when present; callers ingesting untrusted JSONL should enforce policy at the outer boundary (see [`THREAT_MODEL.md`](./THREAT_MODEL.md)).
105
+
106
+ ## Security, Reproducibility & Standards Artifacts (17 Gates)
107
+
108
+ | Artifact / Workflow | Standard / Purpose |
109
+ | :--- | :--- |
110
+ | [`LICENSE`](./LICENSE) & [`LICENSES/Apache-2.0.txt`](./LICENSES/Apache-2.0.txt) | Full canonical SPDX Apache License, Version 2.0. |
111
+ | [`REUSE.toml`](./REUSE.toml) & [`.github/workflows/reuse.yml`](./.github/workflows/reuse.yml) | FSFE REUSE 3.3 SPDX copyright and license compliance. |
112
+ | [`SECURITY.md`](./SECURITY.md) | RFC 9116 private vulnerability disclosure (GitHub Advisories + OpenPGP), `2.0.x` support policy, 48h acknowledgement SLA, and Safe Harbor. |
113
+ | [`THREAT_MODEL.md`](./THREAT_MODEL.md) | Trust boundaries, parser/DAG DoS budgets, LEB128/CBOR/JSON parity defenses, consensus downgrade mitigations, and WASM zero-egress isolation. |
114
+ | [`CONTRIBUTING.md`](./CONTRIBUTING.md) | IETF RFC 8179 IPR disclosure posture, Apache-2.0 inbound=outbound licensing, and triple-engine parity requirements. |
115
+ | [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md) | IETF RFC 7154 Guidelines for Conduct & Contributor Covenant v2.1. |
116
+ | [`CITATION.cff`](./CITATION.cff) | Machine-readable Citation File Format 1.2.0 metadata. |
117
+ | [`codemeta.json`](./codemeta.json) | CodeMeta v3.0 / Schema.org JSON-LD metadata (FAIR4RS, Software Heritage, Zenodo, OpenAIRE, HAL). |
118
+ | [`REPRODUCIBILITY.md`](./REPRODUCIBILITY.md) | ACM Artifact Evaluation (*Available*, *Functional*, *Reusable*), JOSS Statement of Need, and `SOURCE_DATE_EPOCH` WASM double-build guide. |
119
+ | [`sbom.cdx.json`](./sbom.cdx.json) | OWASP CycloneDX 1.5 zero-dependency SBOM covering Python, Rust, and WASM deliverables. |
120
+ | [`openvex.json`](./openvex.json) | OpenVEX v0.2.0 vulnerability exploitability baseline with zero synthetic CVE entries. |
121
+ | [`osps-baseline.json`](./osps-baseline.json) | OpenSSF OSPS Baseline `v2026.08.28` Level 2/3 self-attestation crosswalked to EU CRA (Reg. 2024/2847) and NIST SSDF SP 800-218. |
122
+ | [`.github/dependabot.yml`](./.github/dependabot.yml) | Weekly automated GitHub Actions, Cargo, and pip dependency checks. |
123
+ | [`.github/workflows/scorecard.yml`](./.github/workflows/scorecard.yml) | OpenSSF Scorecard continuous security assessment uploading SARIF to GitHub Security. |
124
+ | [`.github/workflows/ci.yml`](./.github/workflows/ci.yml) | SHA-pinned CI enforcing Clippy `-D warnings`, OpenSSF Gold reproducible WASM double-builds, artifact forensics, anti-obfuscation, cross-manifest version parity, conformance, framing-space, Z3, and 50k differential suites. |
125
+ | [`.github/workflows/release.yml`](./.github/workflows/release.yml) | Tag-triggered builds with artifact forensics, SBOM/OpenVEX/OSPS staging, SHA-256 release manifests, and SLSA v1 build provenance attestations. |
126
+ | [`.github/workflows/pages.yml`](./.github/workflows/pages.yml) | SHA-pinned offline WASM lab deployment with static zero-egress and relative-path verification. |
127
+
128
+ ## Repository Layout
129
+
130
+ - `pyproject.toml` — PEP 621 package metadata for `scitt-time-anchor` (`2.0.0`, zero runtime dependencies).
131
+ - `scitt_time_anchor_py/` — Pure Python 3 reference verifier (`ots_parser.py`, `bitcoin_chain.py`, `cbor_scitt.py`, `verifier.py`, `cli.py`).
132
+ - `scitt_time_anchor_rs/` — `#![forbid(unsafe_code)]` Rust verifier crate and `wasm_cdylib/` zero-import WebAssembly export shim.
133
+ - `draft09_patch/` — Non-normative unified diff (`draft-fassbender-scitt-time-anchor-09-proposed.diff`) and test vectors `N9`–`N16` (`APPENDIX_D6_NEW_NEGATIVE_VECTORS_N9_N16.md`).
134
+ - `interop_matrix/` — Multi-vendor interoperability runner and `16 × 8` empirical report (`MULTI_VENDOR_INTEROP_REPORT.md`).
135
+ - `spec_vectors/` — Official Appendix D vectors, Bitcoin Mainnet header windows, and Z3 witness vectors (`N17A`–`N20`).
136
+ - `verification_suite/` — Conformance, 64-variant CBOR framing-space study, Z3 SMT, `50,000`-vector triple-engine differential, `100,000`-mutation fuzz, and single-instance WASM leak verification runners.
137
+ - `web/` — Self-contained offline browser WASM lab (`index.html`, `styles.css`, `app.js`, `presets.js`, `wasm_bundle.js`, `scitt_time_anchor.wasm`, `server.py`).
138
+ - `.github/workflows/` — SHA-pinned CI (`ci.yml`), GitHub Pages (`pages.yml`), OpenSSF Scorecard (`scorecard.yml`), FSFE REUSE (`reuse.yml`), and SLSA v1 tag release (`release.yml`) workflows.
139
+
140
+ ## Attribution & License
141
+
142
+ - **Contributor:** Shady Ismail (`@shady-ismail-titan`, independent open-source contributor; IETF RFC 8179 disclosure posture).
143
+ - **License:** Apache License, Version 2.0 ([`LICENSE`](./LICENSE)).
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "scitt-time-anchor"
7
+ version = "2.0.0"
8
+ description = "Clean-room zero-dependency Python verifier for draft-fassbender-scitt-time-anchor-08 and strict consensus profile"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [
14
+ { name = "Shady Ismail" },
15
+ ]
16
+ keywords = ["ietf", "scitt", "opentimestamps", "cose", "cbor", "bitcoin", "rfc9942", "rfc9943"]
17
+ classifiers = [
18
+ "Development Status :: 5 - Production/Stable",
19
+ "Intended Audience :: Developers",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Security :: Cryptography",
26
+ ]
27
+ dependencies = []
28
+
29
+ [project.scripts]
30
+ scitt-time-anchor = "scitt_time_anchor.cli:main"
31
+
32
+ [project.urls]
33
+ Homepage = "https://shady-ismail-titan.github.io/scitt-time-anchor-ietf127/"
34
+ Repository = "https://github.com/shady-ismail-titan/scitt-time-anchor-ietf127"
35
+
36
+ [tool.setuptools.packages.find]
37
+ where = ["scitt_time_anchor_py"]
38
+ include = ["scitt_time_anchor*"]