@@ -484,7 +484,7 @@ impl Proof {
484484 let mut U_scalar = Scalar :: ZERO ;
485485
486486 // Set up a transcript generator for use in weighting
487- let mut transcript_weights = Transcript :: new ( "Triptych verifier weights" . as_bytes ( ) ) ;
487+ let mut transcript_weights = Transcript :: new ( b "Triptych verifier weights") ;
488488
489489 let mut null_rng = NullRng ;
490490
@@ -499,7 +499,7 @@ impl Proof {
499499
500500 // Run the Fiat-Shamir response phase to get the transcript generator and weight
501501 let mut transcript_rng = transcript. response ( & proof. f , & proof. z_A , & proof. z_C , & proof. z ) ;
502- transcript_weights. append_u64 ( "proof" . as_bytes ( ) , transcript_rng. as_rngcore ( ) . next_u64 ( ) ) ;
502+ transcript_weights. append_u64 ( b "proof", transcript_rng. as_rngcore ( ) . next_u64 ( ) ) ;
503503 }
504504
505505 // Finalize the weighting transcript into a pseudorandom number generator
@@ -846,8 +846,8 @@ mod test {
846846 // Generate transcripts
847847 let transcripts = ( 0 ..b)
848848 . map ( |i| {
849- let mut transcript = Transcript :: new ( "Test transcript" . as_bytes ( ) ) ;
850- transcript. append_u64 ( "index" . as_bytes ( ) , i as u64 ) ;
849+ let mut transcript = Transcript :: new ( b "Test transcript") ;
850+ transcript. append_u64 ( b "index", i as u64 ) ;
851851
852852 transcript
853853 } )
@@ -975,7 +975,7 @@ mod test {
975975 Proof :: prove_with_rng_vartime ( & witnesses[ 0 ] , & statements[ 0 ] , & mut rng, & mut transcripts[ 0 ] ) . unwrap ( ) ;
976976
977977 // Generate a modified transcript
978- let mut evil_transcript = Transcript :: new ( "Evil transcript" . as_bytes ( ) ) ;
978+ let mut evil_transcript = Transcript :: new ( b "Evil transcript") ;
979979
980980 // Attempt to verify the proof against the new statement, which should fail
981981 assert ! ( proof. verify( & statements[ 0 ] , & mut evil_transcript) . is_err( ) ) ;
0 commit comments