pub(crate) mod bn;
pub(crate) mod commit;
pub(crate) mod dlnproof;
pub(crate) mod facproof;
pub mod import;
pub mod key;
pub mod keygen;
pub(crate) mod modproof;
pub(crate) mod mta;
pub mod paillier;
pub mod prepare;
pub mod resharing;
pub(crate) mod schnorr;
pub(crate) mod secp;
pub mod signing;
#[cfg(test)]
mod testvec;
pub use import::import_key;
pub use key::Key;
pub use keygen::KeygenParty;
pub use prepare::LocalPreParams;
pub use resharing::ResharingParty;
pub use signing::{SignatureData, SigningParty};
pub(crate) mod vss;
#[derive(Debug)]
pub enum Error {
Validation(String),
Serde(serde_json::Error),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::Validation(m) => write!(f, "ecdsatss: {m}"),
Error::Serde(e) => write!(f, "ecdsatss: json: {e}"),
}
}
}
impl std::error::Error for Error {}
impl From<serde_json::Error> for Error {
fn from(e: serde_json::Error) -> Self {
Error::Serde(e)
}
}