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 lightning;
14pub mod pub_sub;
15#[cfg(feature = "mint")]
16pub mod subscription;
17pub mod ws;
18
19// re-exporting external crates
20pub use bitcoin;
21pub use cashu::amount::{self, Amount};
22pub use cashu::lightning_invoice::{self, Bolt11Invoice};
23#[cfg(feature = "mint")]
24pub use cashu::mint;
25pub use cashu::nuts::{self, *};
26#[cfg(feature = "wallet")]
27pub use cashu::wallet;
28pub use cashu::{dhke, mint_url, secret, util, SECP256K1};