pub(crate) mod commit;
pub(crate) mod ed;
pub mod import;
pub mod key;
pub mod keygen;
pub mod resharing;
pub(crate) mod schnorr;
pub mod signing;
#[cfg(test)]
mod testvec;
pub(crate) mod vss;
pub use import::import_key;
pub use key::Key;
pub use keygen::KeygenParty;
pub use resharing::ResharingParty;
pub use signing::{SignatureData, SigningParty};
#[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, "eddsatss: {m}"),
Error::Serde(e) => write!(f, "eddsatss: 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)
}
}