diff --git a/src/ring.rs b/src/ring.rs index 472ef8f..cd062e3 100644 --- a/src/ring.rs +++ b/src/ring.rs @@ -33,6 +33,8 @@ pub type RingProof = ring_proof::RingProof, Pcs>; pub type PiopParams = ring_proof::PiopParams, CurveConfig>; +const TRANSCRIPT_LABEL: &'static [u8] = b""; + #[derive(Clone, CanonicalSerialize, CanonicalDeserialize)] pub struct Proof where @@ -183,7 +185,7 @@ where prover_key, self.piop_params.clone(), key_index, - merlin::Transcript::new(b""), + merlin::Transcript::new(TRANSCRIPT_LABEL), ) } @@ -191,7 +193,7 @@ where RingVerifier::::init( verifier_key, self.piop_params.clone(), - merlin::Transcript::new(b""), + merlin::Transcript::new(TRANSCRIPT_LABEL), ) } } @@ -299,6 +301,6 @@ where RingVerifier::::init( verifier_key, piop_params, - merlin::Transcript::new(b"ring-vrf"), + merlin::Transcript::new(TRANSCRIPT_LABEL), ) }