diff --git a/src/circuit.rs b/src/circuit.rs index c4aa5960..3fe682df 100644 --- a/src/circuit.rs +++ b/src/circuit.rs @@ -120,9 +120,9 @@ impl Instance { #[derive(Debug)] pub struct Proof(pub(crate) Vec); -impl<'a> From<&'a Proof> for &'a Vec { - fn from(proof: &'a Proof) -> &'a Vec { - &proof.0 +impl AsRef<[u8]> for Proof { + fn as_ref(&self) -> &[u8] { + &self.0 } } @@ -163,7 +163,7 @@ impl Proof { } } - /// Construct a new Proof value. + /// Constructs a new Proof value. pub fn new(bytes: Vec) -> Self { Proof(bytes) }