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

PSBT/PSET updates #336

Merged
merged 14 commits into from
Oct 7, 2022
Merged

PSBT/PSET updates #336

merged 14 commits into from
Oct 7, 2022

Conversation

jgriffiths
Copy link
Contributor

  • Support input explicit value and asset proofs, add a helper to generate them
  • Verify input and output proofs when parsing
  • Add a strict parsing mode to work around elements compatibility requiring dumb/dangerous behaviour
  • Some minor fixes
  • Update docs, bump version for release

@jgriffiths jgriffiths merged commit 26f588f into master Oct 7, 2022
@jgriffiths jgriffiths deleted the psbt_v2_merge branch October 7, 2022 01:05
Sjors added a commit to Sjors/libwally-swift that referenced this pull request Nov 24, 2022
The secp256k1-zkp submodule at CLibWally/libwally-core/src/secp256k1 is updated along with libwally-core. In build-libwally.sh script we switch back to a vanilla  libwally at the same commit that Bitcoin Core uses.

Although Bitcoin Core bumped that commit a few months ago, we don't change it here because secp256k1-zkp has not yet been rebased on it.

There were two breaking change in libwally-core:

1. wally_psbt_from_bytes got an additional FLAGS argument in 0fb94751def8b2c767680e2428ebe2fdabd436c7 (ElementsProject/libwally-core#336): trivially fixed by setting it to 0

2. wally_psbt_output no longer has a witness_script field as of 8f8481a3c509fc4a02425db3839f92594e6ea852  (ElementsProject/libwally-core#330). This required a more tedious workaround.
Sjors added a commit to Sjors/libwally-swift that referenced this pull request Nov 25, 2022
The secp256k1-zkp submodule at CLibWally/libwally-core/src/secp256k1 is updated along with libwally-core. In build-libwally.sh script we switch back to a vanilla  libwally at the same commit that Bitcoin Core uses.

Although Bitcoin Core bumped that commit a few months ago, we don't change it here because secp256k1-zkp has not yet been rebased on it.

There were two breaking change in libwally-core:

1. wally_psbt_from_bytes got an additional FLAGS argument in 0fb94751def8b2c767680e2428ebe2fdabd436c7 (ElementsProject/libwally-core#336): trivially fixed by setting it to 0

2. wally_psbt_output no longer has a witness_script field as of 8f8481a3c509fc4a02425db3839f92594e6ea852  (ElementsProject/libwally-core#330). This required a more tedious workaround.
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.

1 participant