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
{{ message }}
Repository navigation
Receiver create_session should accept an amount param #895
In our liana integration in creating our receiver session @arminsabouri realized that it would be nice to allow the amount as a param to be passed to the session for rust-payjoin to handle the bip-21 amount creation instead of leaving that up to the wallet.
The code is minimal but considering it is required it seems like a footgun to require the integration dev to know to do this after starting a receiver session.
note that this is not just a convenience thing but is important for representing payjoin history accurately (because unless it's stored, and the two parties pay at different effective feerates, the actual payment amount is underdetermined and cannot be inferred from the confirmed transaction reliably)
Yes, I agree the constructor taking Option<Amount> would be convenient.
I'm not sure if saving the amount in the URI necessarily helps recall payjoin history. I think The diff between original PSBT and payjoin PSBT is necessary, because a sender is not compelled to pay the amount posted in the URI.
Yes, I agree the constructor taking Option<Amount> would be convenient.
I'm not sure if saving the amount in the URI necessarily helps recall payjoin history. I think The diff between original PSBT and payjoin PSBT is necessary, because a sender is not compelled to pay the amount posted in the URI.
Yes, I kinda conflated two things, but I think both are important:
the amount the receiver requested
the amount the sender gave the receiver, not counting the fees both parties paid
there's also the net balance change for the receiver, but this is inferred from just the on chain tx
Activity
nothingmuch commentedon Jul 24, 2025
note that this is not just a convenience thing but is important for representing payjoin history accurately (because unless it's stored, and the two parties pay at different effective feerates, the actual payment amount is underdetermined and cannot be inferred from the confirmed transaction reliably)
#336
DanGould commentedon Jul 24, 2025
Yes, I agree the constructor taking
Option<Amount>would be convenient.I'm not sure if saving the amount in the URI necessarily helps recall payjoin history. I think The diff between original PSBT and payjoin PSBT is necessary, because a sender is not compelled to pay the amount posted in the URI.
nothingmuch commentedon Jul 25, 2025
Yes, I kinda conflated two things, but I think both are important:
there's also the net balance change for the receiver, but this is inferred from just the on chain tx
Add amount to recv session context (#920)
spacebear21 commentedon Aug 12, 2025
Closed by #920
Add amount to recv session context (#920)