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

Commits on Jul 26, 2023

  1. psbt: return NULL rather than an error when fetching missing structs

    This allows the caller to differentiate between an invalid
    PSBT/arguments and whether a given struct is present or not.
    jgriffiths committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    cf67e09 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    836f1e0 View commit details
    Browse the repository at this point in the history
  3. psbt: allow setting a global tx with scriptSigs and witnesses

    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).
    jgriffiths committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    765fccb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e327f1c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    37f2b0c View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    d087f62 View commit details
    Browse the repository at this point in the history
  2. tx: allow creating a witness stack from its bip 144 serialization

    Expose this by reusing the PSBT parsing code.
    jgriffiths committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a067e70 View commit details
    Browse the repository at this point in the history
  3. tx: allow serializing a witness stack to its bip 144 representation

    Also adds num_items and length getters.
    jgriffiths committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    745fe39 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8655250 View commit details
    Browse the repository at this point in the history
  5. psbt: upgrade the tx version if required when upgrading a psbt

    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.
    jgriffiths committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    947d5ad View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    9f87133 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Configuration menu
    Copy the full SHA
    a31587c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51fcd15 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f73e395 View commit details
    Browse the repository at this point in the history
  4. Bump version to 0.9.1

    jgriffiths committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    3d2f0d4 View commit details
    Browse the repository at this point in the history