Skip to content

Conversation

@sstone
Copy link
Member

@sstone sstone commented Dec 15, 2025

Continuation of #169, branch was renamed so I can publish snapshot artefacts for downstream libraries.

Note: this PR is currently using secp256k1-kmp 0.22.0-SNAPSHOT (see ACINQ/secp256k1-kmp#136) and will need to be updated once secp256k1-kmp 0.22.0 has been released.

… spends

- We should not expose a Script.pay2tr() methods that sends to a raw untweaked key. It's confusing and users should never need it anyway.
- SchnorrTweak.NoTweak was not needed, it is simpler to just use an optional tweak when signing with the private key
Users now have to explicitly create a KeyPath or ScriptPath tweak.
@sstone
Copy link
Member Author

sstone commented Dec 16, 2025

Snapshots are published to https://central.sonatype.com/repository/maven-snapshots

Users had to cast null to ByteVector32?/ScriptTree? which was ugly. Now they
have to pass in either an explicit script/script root or use an explicit TaprootTweak.
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just waiting to figure out whether we keep the snapshot repository or not

We can always temporarly add the snapshot repo back in PRs that test upstream snasphot dependencies (secpc256k1-kmp) and remove it when
we update to a released version.
@sstone sstone merged commit 2ffe94d into master Dec 18, 2025
4 checks passed
@sstone sstone deleted the snapshot/refactor_p2tr_tweaks branch December 18, 2025 09:38
sstone added a commit to ACINQ/phoenix that referenced this pull request Dec 31, 2025
Includes:
- a fix for uncaught deserialization errors (see ACINQ/lightning-kmp#843)
- a update to bitcoin-kmp with a change to taproot tweaks (see ACINQ/bitcoin-kmp#170)
dpad85 pushed a commit to ACINQ/phoenix that referenced this pull request Jan 5, 2026
Includes:
- a fix for uncaught deserialization errors (see ACINQ/lightning-kmp#843)
- a update to bitcoin-kmp with a change to taproot tweaks (see ACINQ/bitcoin-kmp#170)
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.

3 participants