legogroth16 0.6.0

An implementation of the LegoGroth16, the Legosnark variant of Groth16 zkSNARK proof system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ark_serialize::SerializationError;
use ark_std::string::{String, ToString};

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

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