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

fix: signing psbt with taproot address with okx wallet #136

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

slavastartsev
Copy link
Contributor

@slavastartsev slavastartsev commented Jan 3, 2025

Closes #

📝 Description

for taproot address we need to specify address: ${paymentAddress}.

all other combinations seem to not work e.g. address: ${publicKey}, publicKey: ${paymentAddress}. Also specifying both fields address and publicKey results in error.

for some reason not documented anywhere. OKX documentation

⛳️ Current behavior (updates)

Please describe the current behavior that you are modifying

🚀 New behavior

Please describe the behavior or changes this PR adds

💣 Is this a breaking change (Yes/No):

📝 Additional Information

Copy link

changeset-bot bot commented Jan 3, 2025

🦋 Changeset detected

Latest commit: 9482d54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@gobob/sats-wagmi Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

publicKey,
disableTweakSigner: this.getAddressType(this.paymentAddress!) !== AddressType.p2tr
...(addressType === AddressType.p2tr
? { address: this.paymentAddress, disableTweakSigner: false }
Copy link
Contributor Author

@slavastartsev slavastartsev Jan 3, 2025

Choose a reason for hiding this comment

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

for taproot address we need to specify address: ${paymentAddress}.

all other combinations seem to not work e.g. address: ${publicKey}, publicKey: ${paymentAddress}. Also specifying both fields address and publicKey results in error.

minor: for some reason not documented anywhere. OKX documentation for mainnet and testnet are different -> tells that we need to specify either of these fields which does not seem to work, mainnet does not tell which field (address, publicKey) does what

@slavastartsev slavastartsev merged commit 41e282b into main Jan 3, 2025
6 checks passed
@slavastartsev slavastartsev deleted the fix/okx-taproot-sign-psbt branch January 3, 2025 15:30
slavastartsev added a commit that referenced this pull request Jan 21, 2025
* fix: signing psbt with taproot address with okx wallet

* Create long-drinks-search.md
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.

2 participants