mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-30 02:05:49 +01:00
28 lines
502 B
Rust
28 lines
502 B
Rust
//! CDK common types and traits
|
|
pub mod amount;
|
|
pub mod dhke;
|
|
#[cfg(feature = "mint")]
|
|
pub mod mint;
|
|
pub mod mint_url;
|
|
pub mod nuts;
|
|
pub mod secret;
|
|
pub mod util;
|
|
#[cfg(feature = "wallet")]
|
|
pub mod wallet;
|
|
|
|
pub use lightning_invoice::{self, Bolt11Invoice};
|
|
|
|
pub use self::amount::Amount;
|
|
pub use self::nuts::*;
|
|
pub use self::util::SECP256K1;
|
|
|
|
#[doc(hidden)]
|
|
#[macro_export]
|
|
macro_rules! ensure_cdk {
|
|
($cond:expr, $err:expr) => {
|
|
if !$cond {
|
|
return Err($err);
|
|
}
|
|
};
|
|
}
|