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

Pre-taproot elements updates #477

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

jgriffiths
Copy link
Contributor

Misc updates prior to implementing taproot for Elements.

- Run CI tests with/without Elements, also test minimal build as used by Jade
- Enable -Werror for the main test run
- Fail if scan-build errors are detected
- Expose scan-build artifacts for investigating reported errors
- Do not build release files if any tests fail
This is the same size as WALLY_TX_ASSET_TAG_LEN but doesn't give the
incorrect impression that these fields hold asset tags.
Elements uses a different tagged hash for tweaking the internal key.
@jgriffiths jgriffiths force-pushed the pre_taproot_elements_updates branch 3 times, most recently from 490edc3 to 3ccb18c Compare February 11, 2025 13:51
Elements core supports standard descriptors but generates (at least for
taproot) different scriptpubkeys/addresses since it uses a different hash
to tweak its internal keys. Allow specifying that a descriptor is an
Elements descriptor when parsing, and use this to perform the correct
tweak.

Its unclear whether other descriptor expressions are affected since
there is no documentation of this behaviour.

Elements (only via rust-elements) also supports a renamed set of
descriptors and extensions which we do not attempt to support in this
change.
Avoids a warning when building.
The Elements case is more complicated and will be computed in its own
function.
@jgriffiths jgriffiths force-pushed the pre_taproot_elements_updates branch from 3ccb18c to 7bf9588 Compare February 11, 2025 20:37
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