pub struct TlsTranscript { /* private fields */ }
Expand description
A transcript of TLS records sent and received by the prover.
Implementations§
Source§impl TlsTranscript
impl TlsTranscript
Sourcepub fn new(
time: u64,
version: TlsVersion,
server_cert_chain: Option<Vec<Certificate>>,
server_signature: Option<ServerSignature>,
handshake_data: HandshakeData,
verify_data: VerifyData,
sent: Vec<Record>,
recv: Vec<Record>,
) -> Result<Self, TlsTranscriptError>
pub fn new( time: u64, version: TlsVersion, server_cert_chain: Option<Vec<Certificate>>, server_signature: Option<ServerSignature>, handshake_data: HandshakeData, verify_data: VerifyData, sent: Vec<Record>, recv: Vec<Record>, ) -> Result<Self, TlsTranscriptError>
Creates a new TLS transcript.
Sourcepub fn version(&self) -> &TlsVersion
pub fn version(&self) -> &TlsVersion
Returns the TLS protocol version.
Sourcepub fn server_cert_chain(&self) -> Option<&[Certificate]>
pub fn server_cert_chain(&self) -> Option<&[Certificate]>
Returns the server certificate chain.
Sourcepub fn server_signature(&self) -> Option<&ServerSignature>
pub fn server_signature(&self) -> Option<&ServerSignature>
Returns the server signature.
Sourcepub fn server_ephemeral_key(&self) -> &ServerEphemKey
pub fn server_ephemeral_key(&self) -> &ServerEphemKey
Returns the server ephemeral key used in the TLS handshake.
Sourcepub fn handshake_data(&self) -> &HandshakeData
pub fn handshake_data(&self) -> &HandshakeData
Returns the handshake data.
Sourcepub fn to_transcript(&self) -> Result<Transcript, TlsTranscriptError>
pub fn to_transcript(&self) -> Result<Transcript, TlsTranscriptError>
Returns the application data transcript.
Trait Implementations§
Source§impl Clone for TlsTranscript
impl Clone for TlsTranscript
Source§fn clone(&self) -> TlsTranscript
fn clone(&self) -> TlsTranscript
Returns a duplicate of the value. Read more
1.0.0§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TlsTranscript
impl RefUnwindSafe for TlsTranscript
impl Send for TlsTranscript
impl Sync for TlsTranscript
impl Unpin for TlsTranscript
impl UnwindSafe for TlsTranscript
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)