lib.rs 900 B

12345678910111213141516171819202122232425
  1. mod error;
  2. mod mint;
  3. mod types;
  4. mod wallet;
  5. mod ffi {
  6. pub use cashu_ffi::{
  7. Amount, BlindedMessage, BlindedMessages, BlindedSignature, Bolt11Invoice, CashuError,
  8. CheckFeesRequest, CheckFeesResponse, CheckSpendableRequest, CheckSpendableResponse, Id,
  9. InvoiceStatus, KeyPair, KeySet, KeySetInfo, KeySetResponse, Keys, KeysResponse,
  10. MeltRequest, MeltResponse, MintInfo, MintKeySet, MintProof, MintProofs, MintRequest,
  11. MintVersion, Nut05MeltRequest, Nut05MeltResponse, PostMintResponse, Proof, PublicKey,
  12. RequestMintResponse, Secret, SecretKey, SplitRequest, SplitResponse, Token,
  13. };
  14. pub use crate::error::CashuSdkError;
  15. pub use crate::mint::Mint;
  16. pub use crate::types::{Melted, MintKeySetInfo, ProofsStatus, SendProofs};
  17. pub use crate::wallet::Wallet;
  18. // UDL
  19. uniffi::include_scaffolding!("cashu_sdk");
  20. }
  21. pub use ffi::*;