-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
Implement BIP 370 PSBTv2 #21283
base: master
Are you sure you want to change the base?
Implement BIP 370 PSBTv2 #21283
Commits on Jun 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 168773d - Browse repository at this point
Copy the full SHA 168773dView commit details -
Change PSBT unknown fields test to use higher numbers
Previously these tests were using 0x0f as the field number. Changed to use 0xf0 instead as it is unlikely we will hit that anytime soon.
Configuration menu - View commit details
-
Copy full SHA for a5cb6e7 - Browse repository at this point
Copy the full SHA a5cb6e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c033e44 - Browse repository at this point
Copy the full SHA c033e44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e1983b - Browse repository at this point
Copy the full SHA 6e1983bView commit details -
Enforce PSBT version constraints
With PSBTv2, some fields are not allowed in PSBTv2, and some are required. Enforce those.
Configuration menu - View commit details
-
Copy full SHA for 576392f - Browse repository at this point
Copy the full SHA 576392fView commit details -
Add PSBT::CacheUnsignedTxPieces
Fetches the PSBTv2 fields from PSBTv0's global unsigned tx. This allows us to pretend everything internally is a PSBTv2 and makes things easier to work with.
Configuration menu - View commit details
-
Copy full SHA for 3947056 - Browse repository at this point
Copy the full SHA 3947056View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58a3f87 - Browse repository at this point
Copy the full SHA 58a3f87View commit details -
Convert PSBTv0 unsigned tx to PSBTv2 fields
This is just a convenience and doesn't effect serialization.
Configuration menu - View commit details
-
Copy full SHA for 7a5f3ff - Browse repository at this point
Copy the full SHA 7a5f3ffView commit details -
Replace PSBT::GetInputUTXO with PSBTInput::GetUTXO
Now that PSBTInput's track their own prevouts, there's no need for a PSBT global function to fetch input specific data.
Configuration menu - View commit details
-
Copy full SHA for 518e102 - Browse repository at this point
Copy the full SHA 518e102View commit details -
Function to compute the lock time for the transaction
Configuration menu - View commit details
-
Copy full SHA for 5a65961 - Browse repository at this point
Copy the full SHA 5a65961View commit details -
A helper function for getting the unsigned transaction regardless of psbt version.
Configuration menu - View commit details
-
Copy full SHA for 8d7104c - Browse repository at this point
Copy the full SHA 8d7104cView commit details -
The unique ID for PSBTv2 is different from v0. Use this function to get the ID without requiring the caller to know the version number.
Configuration menu - View commit details
-
Copy full SHA for 6ef4bc8 - Browse repository at this point
Copy the full SHA 6ef4bc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad1b22c - Browse repository at this point
Copy the full SHA ad1b22cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67e60c5 - Browse repository at this point
Copy the full SHA 67e60c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a61a3 - Browse repository at this point
Copy the full SHA a4a61a3View commit details -
Helper for getting the PSBTInput COutPoint
Configuration menu - View commit details
-
Copy full SHA for 169c828 - Browse repository at this point
Copy the full SHA 169c828View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6482d2 - Browse repository at this point
Copy the full SHA a6482d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67cf571 - Browse repository at this point
Copy the full SHA 67cf571View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2b7f15 - Browse repository at this point
Copy the full SHA c2b7f15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43dca9a - Browse repository at this point
Copy the full SHA 43dca9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 039ffab - Browse repository at this point
Copy the full SHA 039ffabView commit details -
Configuration menu - View commit details
-
Copy full SHA for d55e0f4 - Browse repository at this point
Copy the full SHA d55e0f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9204367 - Browse repository at this point
Copy the full SHA 9204367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0224cde - Browse repository at this point
Copy the full SHA 0224cdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 537a969 - Browse repository at this point
Copy the full SHA 537a969View commit details -
Configuration menu - View commit details
-
Copy full SHA for da25e28 - Browse repository at this point
Copy the full SHA da25e28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1348ee1 - Browse repository at this point
Copy the full SHA 1348ee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de3d13 - Browse repository at this point
Copy the full SHA 6de3d13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78ae8a7 - Browse repository at this point
Copy the full SHA 78ae8a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22d7a2d - Browse repository at this point
Copy the full SHA 22d7a2dView commit details -
Allow createpsbt and walletcreatefundedpsbt to take psbt version
Use v2 for other RPCs. For some tests to work, PSBTv0 is set explicitly.
Configuration menu - View commit details
-
Copy full SHA for 213f6bc - Browse repository at this point
Copy the full SHA 213f6bcView commit details -
Use GetUnsignedTx when serializing in PSBTv0
If we are asked to make a PSBTv0, we may not necessarily have made an unsigned transaction. So instead use GetUnsignedTx which will either fetch one that already exists, or construct a new one from the stored data. Internally we may be storing a PSBTv0 like a PSBTv2, but still want to serialize those as v0.
Configuration menu - View commit details
-
Copy full SHA for caa5d36 - Browse repository at this point
Copy the full SHA caa5d36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 108c3f4 - Browse repository at this point
Copy the full SHA 108c3f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89c94a7 - Browse repository at this point
Copy the full SHA 89c94a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2619a5f - Browse repository at this point
Copy the full SHA 2619a5fView commit details