|
1 | 1 | //! # ducp-conformance |
2 | 2 | //! |
3 | | -//! Profile 0 conformance harness. Loads the published golden vectors from the |
| 3 | +//! Reference-node binding conformance harness. Loads the published golden vectors from the |
4 | 4 | //! workspace-root `test-vectors/` directory and exposes helpers + canonical sample |
5 | 5 | //! values the per-milestone integration tests (under `tests/`) check the reference |
6 | 6 | //! crates against. |
7 | 7 | //! |
8 | | -//! The six vector families (spec/implementation/05 §5, spec/09 §10): |
| 8 | +//! The six vector families (spec/bindings/05 §5, spec/09 §10): |
9 | 9 | //! `codec`, `metering`, `settlement`, `fraud`, `replication`, `q-observable`. |
10 | 10 | //! |
11 | 11 | //! Regenerate the committed vector files with the generator binary: |
@@ -40,7 +40,7 @@ pub fn unhex(s: &str) -> Vec<u8> { |
40 | 40 | hex::decode(s).unwrap_or_else(|e| panic!("bad hex {s:?}: {e}")) |
41 | 41 | } |
42 | 42 |
|
43 | | -/// One codec/hash golden vector (spec/implementation/01 §7): a value, its canonical |
| 43 | +/// One codec/hash golden vector (spec/bindings/01 §7): a value, its canonical |
44 | 44 | /// (borsh) bytes as hex, and the BLAKE3-256 of those bytes. |
45 | 45 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
46 | 46 | pub struct CodecRecord { |
@@ -199,7 +199,7 @@ pub mod samples { |
199 | 199 | } |
200 | 200 | } |
201 | 201 |
|
202 | | -/// One metering golden vector (spec/implementation/02 §5): a canonical module + |
| 202 | +/// One metering golden vector (spec/bindings/02 §5): a canonical module + |
203 | 203 | /// input and its deterministic `{total_fuel, ucu_count, result_hash}` under the |
204 | 204 | /// devnet benchmark. `total_fuel` is wasmtime-fuel-model-specific (provisional). |
205 | 205 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
@@ -248,7 +248,7 @@ pub fn metering_records() -> Vec<MeteringRecord> { |
248 | 248 | .collect() |
249 | 249 | } |
250 | 250 |
|
251 | | -/// The settlement golden vector (spec/implementation/04 §3): the post-state of a |
| 251 | +/// The settlement golden vector (spec/bindings/04 §3): the post-state of a |
252 | 252 | /// `submit → claim → proof → settle` happy path. Pins the economic outcome, the |
253 | 253 | /// Receipt, the (𝕌, ℚ) entry (ℚ null in P0), and the `state_root`. |
254 | 254 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
@@ -333,7 +333,7 @@ pub fn settlement_record() -> SettlementRecord { |
333 | 333 | } |
334 | 334 | } |
335 | 335 |
|
336 | | -/// The replication golden vector (spec/implementation/04 §6): producing then |
| 336 | +/// The replication golden vector (spec/bindings/04 §6): producing then |
337 | 337 | /// replaying a sequence of blocks reaches the identical `state_root` — state-machine |
338 | 338 | /// replication, so the devnet is verifiable even with one proposer. |
339 | 339 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
@@ -433,7 +433,7 @@ pub fn replication_record() -> ReplicationRecord { |
433 | 433 | } |
434 | 434 | } |
435 | 435 |
|
436 | | -/// The finality golden vector (spec/implementation/04 §3): a settled task whose |
| 436 | +/// The finality golden vector (spec/bindings/04 §3): a settled task whose |
437 | 437 | /// clawback window closes, releasing the claim stake while the Receipt stays |
438 | 438 | /// immutable (`I-ECON-FINAL`). |
439 | 439 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
@@ -519,7 +519,7 @@ pub fn finality_record() -> FinalityRecord { |
519 | 519 | } |
520 | 520 | } |
521 | 521 |
|
522 | | -/// The fraud golden vector (spec/implementation/03 §4, 04 §4): a forged proof, the |
| 522 | +/// The fraud golden vector (spec/bindings/03 §4, 04 §4): a forged proof, the |
523 | 523 | /// re-execution verdict, and the post-resolution state (clawback, burn, fine, |
524 | 524 | /// Standing floor). Verifies `I-LEDGER-CONSERVE` across the fraud path. |
525 | 525 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
@@ -778,7 +778,7 @@ mod tests { |
778 | 778 |
|
779 | 779 | #[test] |
780 | 780 | fn all_six_vector_families_present() { |
781 | | - // spec/implementation/05 §5 (five) + spec/09 §10 (ℚ). |
| 781 | + // spec/bindings/05 §5 (five) + spec/09 §10 (ℚ). |
782 | 782 | let families = [ |
783 | 783 | ("codec", "types.json"), |
784 | 784 | ("metering", "cases.json"), |
|
0 commit comments