From e1a772d6e1fccbe6e80838a6987466e125404914 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Thu, 24 Dec 2020 12:33:45 -0700 Subject: [PATCH] Remove transcript forking API. --- src/transcript.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/transcript.rs b/src/transcript.rs index 537556c..389ae77 100644 --- a/src/transcript.rs +++ b/src/transcript.rs @@ -32,18 +32,11 @@ pub trait TranscriptRead: Transcript { /// Transcript view from the perspective of a prover that has access to an /// output stream of messages from the prover to the verifier. pub trait TranscriptWrite: Transcript { - /// Forked transcript that does not write to the proof structure. - type ForkedTranscript: TranscriptWrite; - /// Write a curve point to the proof and the transcript. fn write_point(&mut self, point: C) -> io::Result<()>; /// Write a scalar to the proof and the transcript. fn write_scalar(&mut self, scalar: C::Scalar) -> io::Result<()>; - - /// Fork the transcript, creating a variant of this `TranscriptWrite` which - /// does not output anything to the writer. - fn fork(&self) -> Self::ForkedTranscript; } /// This is just a simple (and completely broken) transcript reader @@ -161,8 +154,6 @@ impl DummyHashWrite { } impl TranscriptWrite for DummyHashWrite { - type ForkedTranscript = DummyHashWrite; - fn write_point(&mut self, point: C) -> io::Result<()> { self.common_point(point)?; let compressed = point.to_bytes(); @@ -175,14 +166,6 @@ impl TranscriptWrite for DummyHashWrite { let data = scalar.to_bytes(); self.writer.write_all(&data[..]) } - fn fork(&self) -> Self::ForkedTranscript { - DummyHashWrite { - base_state: self.base_state, - scalar_state: self.scalar_state, - written_scalar: self.written_scalar, - writer: io::sink(), - } - } } impl Transcript for DummyHashWrite {