Expand description
Transcript types.
All application data communicated over a TLS connection is referred to as a
Transcript
. A transcript is essentially just two vectors of bytes, each
corresponding to a Direction
.
TLS operates over a bidirectional byte stream, and thus there are no application layer semantics present in the transcript. For example, HTTPS is an application layer protocol that runs over TLS so there is no concept of “requests” or “responses” in the transcript itself. These semantics must be recovered by parsing the application data and relating it to the bytes in the transcript.
§Commitments
During the attestation process a Prover can generate multiple commitments to various parts of the transcript. These commitments are inserted into the attestation body and can be used by the Verifier to verify transcript proofs later.
To configure the transcript commitments, use the
TranscriptCommitConfigBuilder
.
§Selective Disclosure
Using a TranscriptProof
a Prover can selectively disclose parts of a
transcript to a Verifier in the form of a PartialTranscript
. A Verifier
always learns the length of the transcript, but sensitive data can be
withheld.
To create a proof, use the TranscriptProofBuilder
which is returned by
Secrets::transcript_proof_builder
.
Structs§
- Compressed
Partial Transcript PartialTranscript
in a compressed form.- Idx
- Transcript index.
- IdxBuilder
- Builder for
Idx
. - Invalid
Subsequence - Invalid subsequence error.
- Partial
Transcript - A partial transcript.
- Subsequence
- Transcript subsequence.
- Transcript
- A transcript contains the plaintext of all application data communicated between the Prover and the Server.
- Transcript
Commit Config - Configuration for transcript commitments.
- Transcript
Commit Config Builder - A builder for
TranscriptCommitConfig
. - Transcript
Commit Config Builder Error - Error for
TranscriptCommitConfigBuilder
. - Transcript
Proof - Proof of the contents of a transcript.
- Transcript
Proof Builder - Builder for
TranscriptProof
. - Transcript
Proof Builder Error - Error for
TranscriptProofBuilder
. - Transcript
Proof Error - Error for
TranscriptProof
.
Enums§
- Direction
- The direction of data communicated over a TLS connection.
- Transcript
Commitment Kind - Kind of transcript commitment.