lib.rs 502 B

123456789101112131415161718192021222324252627
  1. //! CDK common types and traits
  2. pub mod amount;
  3. pub mod dhke;
  4. #[cfg(feature = "mint")]
  5. pub mod mint;
  6. pub mod mint_url;
  7. pub mod nuts;
  8. pub mod secret;
  9. pub mod util;
  10. #[cfg(feature = "wallet")]
  11. pub mod wallet;
  12. pub use lightning_invoice::{self, Bolt11Invoice};
  13. pub use self::amount::Amount;
  14. pub use self::nuts::*;
  15. pub use self::util::SECP256K1;
  16. #[doc(hidden)]
  17. #[macro_export]
  18. macro_rules! ensure_cdk {
  19. ($cond:expr, $err:expr) => {
  20. if !$cond {
  21. return Err($err);
  22. }
  23. };
  24. }