Skip to content

Commit

Permalink
docs(tlsn-core): update Direction docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sinui0 committed Feb 9, 2024
1 parent 29fb409 commit 6e60b73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tlsn/tlsn-core/src/transcript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,13 @@ impl TranscriptSlice {

/// The direction of data communicated over a TLS connection.
///
/// This is used to differentiate between data sent to the Server, and data received from the Server.
/// This is used to differentiate between data sent from the Prover to the TLS peer,
/// and data received by the Prover from the TLS peer (client or server).
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Direction {
/// Sent from the prover to the server
/// Sent from the Prover to the TLS peer.
Sent,
/// Received by the prover from the server
/// Received by the prover from the TLS peer.
Received,
}

Expand Down

0 comments on commit 6e60b73

Please sign in to comment.