Skip to content

Conversation

@Overtorment
Copy link
Member

@Overtorment Overtorment commented Sep 17, 2025

@Overtorment Overtorment marked this pull request as ready for review September 17, 2025 16:04
cursor[bot]

This comment was marked as outdated.

@Overtorment Overtorment force-pushed the fix-taproot-wif-address-unwrap branch from 43e8338 to 55bc394 Compare September 17, 2025 16:55
@Overtorment Overtorment requested a review from junderw September 17, 2025 16:56
@Overtorment Overtorment removed the WIP label Sep 17, 2025
// Sign each input as a Taproot key-path spend
inputs.forEach((_, idx) => {
psbt.signTaprootInput(idx, keyPair);
psbt.signTaprootInput(idx, keyPair.tweak(bitcoin.crypto.taggedHash('TapTweak', xOnlyPub)));
Copy link
Member Author

Choose a reason for hiding this comment

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

@junderw is there a "proper" way to do this? feels hacky

@Overtorment Overtorment force-pushed the fix-taproot-wif-address-unwrap branch from 55bc394 to 79f68bd Compare September 17, 2025 17:45
@GladosBlueWallet
Copy link
Collaborator

@GladosBlueWallet
Copy link
Collaborator

@Overtorment Overtorment merged commit bc79a1c into master Sep 18, 2025
15 of 16 checks passed
@Overtorment Overtorment deleted the fix-taproot-wif-address-unwrap branch September 18, 2025 11:44
@junderw
Copy link
Collaborator

junderw commented Sep 18, 2025

lgtm

@lukechilds
Copy link
Contributor

lukechilds commented Sep 24, 2025

@Overtorment just a reminder that this will cause users who have already imported an untweaked taproot wif to no longer be able to see or spend their balance. Not sure there would actually be any of those users since I think the only way to end up in this state is to import the wif and already have funds in the untweaked key?

But if you want to enable backwards compat you can enable this as a new wallet type like tweaked-taproot and have the current taproot type with the untweaked key still usable for current users. And then on wif scan just don't check taproot and only check tweaked-taproot so it's used for all new users going forwards.

@Overtorment
Copy link
Member Author

@lukechilds we discussed this internally and decided its ok. we didnt advertise this feature, theoretically there should be 0 users with stuck balance. worst case scenario we will deal with them one by one via support channel

@lukechilds
Copy link
Contributor

Yeah makes sense, just double checking.

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.

6 participants