Skip to content

Commit

Permalink
feat: add promises response to restore
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 30, 2024
1 parent 557208c commit 661a6a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/cdk/src/mint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ impl Mint {

Ok(RestoreResponse {
outputs,
signatures,
signatures: signatures.clone(),
promises: Some(signatures),
})
}

Expand Down
3 changes: 3 additions & 0 deletions crates/cdk/src/nuts/nut09.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ pub struct RestoreResponse {
pub outputs: Vec<BlindedMessage>,
/// Signatures
pub signatures: Vec<BlindSignature>,
/// Promises
// Temp compatibility with cashu-ts
pub promises: Option<Vec<BlindSignature>>,
}

mod test {
Expand Down

0 comments on commit 661a6a1

Please sign in to comment.