Skip to content
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

Updates, candidate 0.9.1 release #406

Merged
merged 15 commits into from
Aug 1, 2023
Merged

Updates, candidate 0.9.1 release #406

merged 15 commits into from
Aug 1, 2023

Conversation

jgriffiths
Copy link
Contributor

@jgriffiths jgriffiths commented Jul 28, 2023

  • PSBT and tx fixes and new helpers.
  • Docs updates, add readthedocs config for the upcoming mandatory changes
  • Bump version for a new release

This allows the caller to differentiate between an invalid
PSBT/arguments and whether a given struct is present or not.
Rather than forcing the caller to remove these before setting the tx, ignore
them when cloning into the global tx. Note that any global tx in a serialized
PSBT v0 must still not contain these tx input elements as this is
invalid according to BIP-174.

(Strictly speaking, witnesses should never be present in the global tx
because it should be serialized without them. An upcoming change adds a
test case for this).
include/wally_psbt.h Outdated Show resolved Hide resolved
Expose this by reusing the PSBT parsing code.
PSBTv2 has a minimum tx version requirement of 2, in order to support
its ability to negotiate locktimes. When upgrading a v0 PSBT to v2,
automatically increase the tx version to comply with the v2 spec.

This means that code which internally upgrades to v2 for processing, then
downgrades to v0 later should either:
- Do nothing, and accept that the tx version will always be updated
- Reject PSBTs containing a tx version less than 2, or
- Save and restore the tx version manually, if they are assured that no
  v2 tx features are used.
@LeoComandini
Copy link
Contributor

utACK 58595e8 with minor nit, code review

@jgriffiths jgriffiths merged commit 3d2f0d4 into master Aug 1, 2023
4 checks passed
@jgriffiths jgriffiths deleted the more_updates branch August 1, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants