extern crate curve25519_dalek;
extern crate digest;
extern crate failure;
extern crate rand;
extern crate typenum;
extern crate subtle;
#[macro_use]
extern crate failure_derive;
pub mod keypair;
pub mod request;
pub mod session;
pub mod signature;
pub type Result<T> = ::std::result::Result<T, Error>;
#[derive(Fail, Debug)]
pub enum Error {
#[fail(display = "failed to initialize the RNG")]
RngInitFailed,
#[fail(display = "failed to convert wired scalar to scalar")]
WiredScalarMalformed,
#[fail(display = "failed to convert wired ristretto point to ristretto point")]
WiredRistrettoPointMalformed,
}
impl From<rand::Error> for Error {
fn from(_: rand::Error) -> Self {
Error::RngInitFailed
}
}