tlsn_core/transcript/
encoding.rs

1//! Transcript encoding commitments and proofs.
2//!
3//! This is an internal module that is not intended to be used directly by
4//! users.
5
6mod encoder;
7mod proof;
8mod provider;
9mod tree;
10
11pub use encoder::{new_encoder, Encoder, EncoderSecret};
12pub use proof::{EncodingProof, EncodingProofError};
13pub use provider::{EncodingProvider, EncodingProviderError};
14pub use tree::EncodingTree;
15
16use serde::{Deserialize, Serialize};
17
18use crate::hash::{impl_domain_separator, TypedHash};
19
20/// Transcript encoding commitment.
21#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
22pub struct EncodingCommitment {
23    /// Merkle root of the encoding commitments.
24    pub root: TypedHash,
25    /// Seed used to generate the encodings.
26    pub secret: EncoderSecret,
27}
28
29impl_domain_separator!(EncodingCommitment);