b3_utils 0.13.1

Utility functions for building on the Internet Computer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug)]
pub enum PairingError {
    InvalidLength,
    InvalidCurve,
}

#[rustfmt::skip]
impl std::fmt::Display for PairingError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            PairingError::InvalidLength => write!(f, "Invalid length"),
            PairingError::InvalidCurve => write!(f, "Invalid curve"),
        }
    }
}