lib.rs 480 B

123456789101112131415161718192021222324252627
  1. #![doc = include_str!("../README.md")]
  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. pub use lightning_invoice::{self, Bolt11Invoice};
  9. pub use self::amount::Amount;
  10. pub use self::mint_url::MintUrl;
  11. pub use self::nuts::*;
  12. pub use self::util::SECP256K1;
  13. pub mod quote_id;
  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. }