cdk_common/
lib.rs

1//! Cashu shared types and functions.
2//!
3//! This crate is the base foundation to build things that can interact with the CDK (Cashu
4//! Development Kit) and their internal crates.
5//!
6//! This is meant to contain the shared types, traits and common functions that are used across the
7//! internal crates.
8
9pub mod common;
10pub mod database;
11pub mod error;
12#[cfg(feature = "mint")]
13pub mod mint;
14#[cfg(feature = "mint")]
15pub mod payment;
16pub mod pub_sub;
17pub mod subscription;
18pub mod ws;
19// re-exporting external crates
20pub use bitcoin;
21pub use cashu::amount::{self, Amount};
22pub use cashu::lightning_invoice::{self, Bolt11Invoice};
23pub use cashu::nuts::{self, *};
24#[cfg(feature = "wallet")]
25pub use cashu::wallet;
26pub use cashu::{dhke, ensure_cdk, mint_url, secret, util, SECP256K1};
27pub use error::Error;