diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index 0a5ba610..e6b0fc47 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -302,7 +302,10 @@ impl Mint { } /// Blind Sign - async fn blind_sign(&self, blinded_message: &BlindedMessage) -> Result { + pub async fn blind_sign( + &self, + blinded_message: &BlindedMessage, + ) -> Result { let BlindedMessage { amount, blinded_secret, @@ -456,7 +459,7 @@ impl Mint { } /// Verify [`Proof`] meets conditions and is signed - async fn verify_proof(&self, proof: &Proof) -> Result<(), Error> { + pub async fn verify_proof(&self, proof: &Proof) -> Result<(), Error> { // Check if secret is a nut10 secret with conditions if let Ok(secret) = <&crate::secret::Secret as TryInto>::try_into(&proof.secret) @@ -744,7 +747,7 @@ impl Mint { } /// Ensure Keyset is loaded in mint - async fn ensure_keyset_loaded(&self, id: &Id) -> Result<(), Error> { + pub async fn ensure_keyset_loaded(&self, id: &Id) -> Result<(), Error> { let keysets = self.keysets.read().await; if keysets.contains_key(id) { return Ok(()); @@ -763,7 +766,7 @@ impl Mint { } /// Generate [`MintKeySet`] from [`MintKeySetInfo`] - fn generate_keyset(&self, keyset_info: MintKeySetInfo) -> MintKeySet { + pub fn generate_keyset(&self, keyset_info: MintKeySetInfo) -> MintKeySet { MintKeySet::generate_from_xpriv(&self.secp_ctx, self.xpriv, keyset_info) } } diff --git a/crates/cdk/src/wallet/mod.rs b/crates/cdk/src/wallet/mod.rs index 2403a1de..dcbc3228 100644 --- a/crates/cdk/src/wallet/mod.rs +++ b/crates/cdk/src/wallet/mod.rs @@ -335,7 +335,7 @@ impl Wallet { } #[instrument(skip(self), fields(mint_url = %mint_url))] - async fn active_mint_keyset( + pub async fn active_mint_keyset( &self, mint_url: &UncheckedUrl, unit: &CurrencyUnit, @@ -366,7 +366,7 @@ impl Wallet { } #[instrument(skip(self), fields(mint_url = %mint_url))] - async fn active_keys( + pub async fn active_keys( &self, mint_url: &UncheckedUrl, unit: &CurrencyUnit, @@ -779,7 +779,7 @@ impl Wallet { /// Create Swap Payload #[instrument(skip(self, proofs), fields(mint_url = %mint_url))] - async fn create_swap( + pub async fn create_swap( &self, mint_url: &UncheckedUrl, unit: &CurrencyUnit,