-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TxBuilder::add_psbt #153
Comments
I guess you are referring to the We currently have a method that does that ( I don't know if the best way is to go through |
I think concretely what I am aiming at is being able to do the naive coinjoin mentioned in BIP174. i.e. I generate a PSBT with my inputs and some outputs (where the coinjoin output is fixed to 0.1 BTC). I pass it onto you can then you add your inputs and your coinjoin output and so on. Once everyone has finished adding stuff we pass it back (with randomly re-ordered coinjoin outputs) and everyone adds their signatures.
For this it looks like I do need |
Right, I got it now. Appending inputs/outputs to existing PSBTs, not just metadata. I'm actually thinking this could be part of a larger refactoring that also improves the current I guess in a way the logic to do that would be very similar, with the only difference that "bump_fee" takes the transaction from the wallet's database, while you are proposing to take a PSBT from the outside. I think we could have a common method that contains all the logic, and |
Maybe something called |
The idea would be that instead of calling
add_recipients
andadd_utxo
and eventuallyadd_foreign_utxo
, you could just add a PSBT and the wallet would then figure out which of those it owns and which it doesn't and then fill in all the details it can.Does this make sense?
The text was updated successfully, but these errors were encountered: