Reserve send inputs and commit recovered wallet results exactly once

This commit is contained in:
archipelago
2026-10-06 16:42:24 -04:00
parent 048007ea2d
commit 3211852acd
5 changed files with 420 additions and 0 deletions
@@ -83,6 +83,10 @@ impl std::fmt::Debug for PreparedSwap {
}
impl PreparedSwap {
pub(super) fn inputs(&self) -> &[Proof] {
&self.inputs
}
pub(super) fn validate_for_mint(&self, mint_url: &str) -> Result<()> {
anyhow::ensure!(
self.mint_url == mint_url,