@@ -48,7 +48,7 @@ enum State {
4848 } ,
4949 Closing {
5050 ctx : Context ,
51- transcript : TlsTranscript ,
51+ transcript : Box < TlsTranscript > ,
5252 fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > > > ,
5353 } ,
5454 Finalizing {
@@ -280,7 +280,7 @@ impl TlsClient for MpcTlsClient {
280280 ( Poll :: Pending , Poll :: Ready ( ( ctx, transcript) ) ) => {
281281 self . state = State :: Closing {
282282 ctx,
283- transcript,
283+ transcript : Box :: new ( transcript ) ,
284284 fut,
285285 } ;
286286 }
@@ -305,7 +305,7 @@ impl TlsClient for MpcTlsClient {
305305 ( Poll :: Pending , Poll :: Ready ( ( ctx, transcript) ) ) => {
306306 self . state = State :: Closing {
307307 ctx,
308- transcript,
308+ transcript : Box :: new ( transcript ) ,
309309 fut,
310310 } ;
311311 }
@@ -320,7 +320,7 @@ impl TlsClient for MpcTlsClient {
320320 } => {
321321 if let Poll :: Ready ( inner) = fut. poll_unpin ( cx) ? {
322322 self . state = State :: Finalizing {
323- fut : Box :: pin ( inner. finalize ( ctx, transcript) ) ,
323+ fut : Box :: pin ( inner. finalize ( ctx, * transcript) ) ,
324324 } ;
325325 } else {
326326 self . state = State :: Closing {
0 commit comments