diff --git a/src/lib.rs b/src/lib.rs index da7387e..c12fc72 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,12 @@ use std::error::Error; /// in the scalar field of a pairing-friendly elliptic curve group. pub struct LinearCombination(Vec<(T, E::Fr)>); +impl AsRef<[(T, E::Fr)]> for LinearCombination { + fn as_ref(&self) -> &[(T, E::Fr)] { + &self.0 + } +} + impl LinearCombination { pub fn zero() -> LinearCombination { LinearCombination(vec![])