Skip to main content

exo_root/
lib.rs

1//! EXOCHAIN root genesis authority ceremony.
2
3#![cfg_attr(test, allow(clippy::expect_used, clippy::unwrap_used))]
4
5mod bundle;
6mod ceremony;
7mod dkg;
8mod error;
9mod portal;
10mod seal;
11mod signing;
12
13pub use bundle::{RootIssuerDelegation, RootTrustBundle, assemble_root_bundle, verify_root_bundle};
14pub use ceremony::{
15    CertifierContact, GenesisCeremonyConfig, ROOT_GENESIS_SIGNERS, ROOT_GENESIS_THRESHOLD,
16};
17pub use dkg::{
18    RootDkgOutput, RootDkgRound1Output, RootDkgRound2Output, RootKeyPackage,
19    RootParticipantDkgOutput, RootPublicKeyPackage, dkg_finalize_participant, dkg_round1,
20    dkg_round2, run_complete_dkg,
21};
22pub use error::{Result, RootError};
23pub use portal::{
24    CeremonyEnvelope, CeremonyEnvelopeDraft, CeremonyPayloadKind, CeremonyPhase,
25    FINAL_KEY_CONFIRMATION_DOMAIN, FINAL_KEY_CONFIRMATION_SCHEMA_VERSION, FinalKeyConfirmation,
26    PortalStore, build_final_key_confirmation, ceremony_config_hash,
27    encode_final_key_confirmation_payload,
28};
29pub use seal::{
30    PairwiseEncryptedPayload, SealedShare, decrypt_pairwise_payload, encrypt_pairwise_payload,
31    seal_share, unseal_share,
32};
33pub use signing::{
34    RootSignature, RootSignatureShareOutput, RootSigningCommitment, RootSigningNonces,
35    RootSigningPackage, aggregate_signature, build_signing_package, sign_commit, sign_share,
36    threshold_sign, verify_root_signature,
37};