nut03.rs 392 B

123456789101112131415
  1. //! Request mint
  2. // https://github.com/cashubtc/nuts/blob/main/03.md
  3. use serde::{Deserialize, Serialize};
  4. pub use crate::Invoice;
  5. /// Mint request response [NUT-03]
  6. #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
  7. pub struct RequestMintResponse {
  8. /// Bolt11 payment request
  9. pub pr: Invoice,
  10. /// Random hash MUST not be the hash of invoice
  11. pub hash: String,
  12. }