lib.rs 463 B

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