Expand description
Compile-time test vectors required by the profile package.
§The values are illustrative, and one of them is load-bearing
Every value here is synthetic. Digests are repeated-nibble placeholders,
the site is the RES-001 reference fixture, and attestation.teeClass is a
conforming registry value chosen so the vector round-trips. No Pask witness
device has been built and no confidential-compute silicon has been
selected, so teeClass here discloses nothing and prefers nothing.
The load-bearing part: MINIMAL_VALID_JCS is the source of the example
figure carried by the profile document, emitted through
crate::canonical_example and asserted byte-identical to the document in
CI. Changing any value in this vector changes the published figure. Change
it deliberately, and regenerate with
cargo run -p pask-wire-cli -- canonical-example.
Constants§
- INVALID_
ACTOR_ CLASS - Invalid actor class used by malformed-payload tests.
- INVALID_
ADAPTER_ MODE - Reserved adapter mode used by malformed-payload tests.
- INVALID_
DIGEST - Invalid digest used by malformed-payload tests.
- JCS_
LITERALS_ EXPECTED - RFC 8785 literal-serialization output.
- JCS_
LITERALS_ INPUT - RFC 8785 literal-serialization input.
- JCS_
NUMBERS_ EXPECTED - RFC 8785 number-serialization output.
- JCS_
NUMBERS_ INPUT - RFC 8785 number-serialization input.
- JCS_
ORDER_ EXPECTED - RFC 8785 property-order output.
- JCS_
ORDER_ INPUT - RFC 8785 property-order input.
- MINIMAL_
CHAIN_ HASH - Correct chain digest for
MINIMAL_VALID_PAYLOADafter production normalization. - MINIMAL_
VALID_ JCS - Expected JCS bytes for the normalized minimal payload.
- MINIMAL_
VALID_ PAYLOAD - Minimal valid unsigned payload with the package’s placeholder chain hash.
- REVERSED_
WINDOW_ END - Reversed engagement end used by malformed-payload tests.
- WRONG_
CONTENT_ TYPE - Wrong protected content type used by malformed-envelope tests.
- WRONG_
CWT_ SUBJECT - Wrong CWT subject used by malformed-envelope tests.
- WRONG_
SPEC - Unsupported version used by malformed-payload tests.