1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//! The x-deal-v0 deal record profile: an opt-in reference profile, built
//! only with the crate's `deal` feature.
//!
//! This module is the Rust counterpart of the Go package `dealprofile` in
//! this repository, and produces the same bytes: the profile's names, the
//! keys and fingerprints that keep raw identifiers out of a record, a
//! record's payload and digest, the record-level checks a sealed record must
//! pass, the sealed `deal_report`'s payload, the members of a step's
//! Capsule, and the record types ([`Record`]). The normative text is
//! `dealprofile/x-deal-v0/PROFILE.md`; its schemas are vendored here byte
//! for byte.
//!
//! [`v1`] is the x-deal-v1 profile (evidencebook#461), the counterpart of
//! Go's `dealprofile/xdealv1`.
//!
//! It is a profile the crate carries, not part of the Evidence Layer
//! semantics: nothing else in the crate depends on it. It holds no deal
//! logic: what a step says, what it is approved by and what a report's lines
//! read are the producer's. It seals nothing either: it returns the bytes
//! and plain Capsule members ([`Capsule`]), and the producer seals them with
//! its own sealer and key, on its own book. The sealed Capsule's layout is
//! the sealer's; the [`Capsule`] docs say where capsule-emit 0.0.8's differs
//! from the one Go seals.
//!
//! The chain stage (PROFILE.md ยง6), which reads a record against the records
//! before it, is [`check_chain`]: the same refusals, in the same order and with
//! the same text, as the reference checker's `check_chain`
//! (`check_profile.py`).
//!
//! A refusal matches Go's in its stage, and in its text wherever the
//! profile's fixtures name one, with one stricter refusal: a member named
//! `"$serde_json::private::Number"` or `"$serde_json::private::RawValue"`,
//! which serde_json would read as something else, is refused at the
//! canonicalization stage, and by [`decode`], where Go reads it as written
//! (evidencebook#534). Two diagnostics are written differently: a
//! `canonicalization` value that is not a string is shown as JSON, not as
//! Go's `%v` prints it, and a quoted value is not escaped where Go's `%q`
//! escapes a non-printable character beyond ASCII. The Unicode tables are
//! not Go's: the personal-data and wording scans' character classes come
//! from the `regex` crate (Unicode 16) and identifier normalization and
//! case mapping from ICU4X's data, where Go 1.27's tables are Unicode 17, so
//! a character newer than a table may be read differently.
pub use ;
pub use ;
pub use ;
pub use ;
pub use *;
pub use ;
pub use ;
pub use profile_schema;
pub use ;
pub use ;
pub use *;