legogroth16 0.18.0

An implementation of the LegoGroth16, the Legosnark variant of Groth16 zkSNARK proof system
Documentation
use ark_serialize::SerializationError;
use ark_std::string::{String, ToString};

#[derive(Debug, Clone, PartialEq)]
pub enum AggregationError {
    InsufficientKeyLength(usize),
    PublicInputsTooLarge(usize),
    TooManyProofs(usize),
    InvalidKeyLength,
    InvalidProof(String),
    MalformedVerifyingKey,
    Serialization(String),
    InvalidSRS(String),
}

impl From<SerializationError> for AggregationError {
    fn from(e: SerializationError) -> Self {
        Self::Serialization(e.to_string())
    }
}