lib.rs 801 B

123456789101112131415161718192021222324252627
  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. pub mod common;
  9. pub mod database;
  10. pub mod error;
  11. #[cfg(feature = "mint")]
  12. pub mod mint;
  13. #[cfg(feature = "mint")]
  14. pub mod payment;
  15. pub mod pub_sub;
  16. pub mod subscription;
  17. #[cfg(feature = "wallet")]
  18. pub mod wallet;
  19. pub mod ws;
  20. // re-exporting external crates
  21. pub use bitcoin;
  22. pub use cashu::amount::{self, Amount};
  23. pub use cashu::lightning_invoice::{self, Bolt11Invoice};
  24. pub use cashu::nuts::{self, *};
  25. pub use cashu::{dhke, ensure_cdk, mint_url, secret, util, SECP256K1};
  26. pub use error::Error;