You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify v1 response processing function signatures (#745)
This was prompted by the discussion in
#710 (comment).
Using a reader still left callers susceptible to writing memory
exhaustion vulnerable code, and just introduced extra complexity by
having to buffer twice. We can recognize this and leave the buffering
entirely up to the caller. Also, the V2 sender and receiver response
processing functions already take &[u8], so this makes the function
signatures more consistent across versions.
Copy file name to clipboardExpand all lines: payjoin-ffi/src/send/mod.rs
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
use std::io::Cursor;
2
1
use std::str::FromStr;
3
2
use std::sync::{Arc,Mutex};
4
3
@@ -185,10 +184,9 @@ impl From<payjoin::send::v1::V1Context> for V1Context {
185
184
implV1Context{
186
185
///Decodes and validates the response.
187
186
/// Call this method with response from receiver to continue BIP78 flow. If the response is valid you will get appropriate PSBT that you should sign and broadcast.
Copy file name to clipboardExpand all lines: payjoin-ffi/src/send/uni.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ impl From<super::V1Context> for V1Context {
185
185
implV1Context{
186
186
/// Decodes and validates the response.
187
187
/// Call this method with response from receiver to continue BIP78 flow. If the response is valid you will get appropriate PSBT that you should sign and broadcast.
0 commit comments