Expand description
TDX attestion related shared types and functions
Structs§
- Quote
Input Data - Input data to be included in a TDX attestation
Enums§
- Quote
Context - An indicator as to the context in which a quote is intended to be used
- Verify
Quote Error - An error when verifying a quote
Constants§
- MEASUREMENT_
VALUE_ MOCK_ QUOTE - The acceptable TDX measurement value for non-production chainspecs. This is the measurement given in mock quotes. Mock quotes have all zeros for each of the 5 48 bit measurement registers. The overall measurement is the Blake2b hash of these values. So this is the Blake2b hash of 5 * 48 zero bytes.
Traits§
- Attestation
Handler - A trait for types which can handle attestation requests.
Functions§
- compute_
quote_ measurement - Create a measurement value by hashing together all measurement registers from quote data
- verify_
pck_ certificate_ chain - A mock version of verifying the PCK certificate chain. When generating mock quotes, we just put the encoded PCK in place of the certificate chain so this function just decodes it, checks it was used to sign the quote, and returns it