loopring_sign 0.1.4

This crate generates an eddsa signature for loopring
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt;

#[derive(Debug, Clone)]
pub enum PoseidonError {
    EmptyInputError,
    InputsExceedRate,
}

impl fmt::Display for PoseidonError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            PoseidonError::EmptyInputError => write!(f, "No inputs provided"),
            PoseidonError::InputsExceedRate => write!(f, "Inputs exceed the rate."),
        }
    }
}

impl std::error::Error for PoseidonError {}