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: OKX signature tweak signer #364

Open
wants to merge 4 commits into
base: v0.3.x
Choose a base branch
from

Conversation

gbarkhatov
Copy link
Contributor

Fixes OKX 3.29.26 version disableTweakSigner

totraev
totraev previously approved these changes Nov 18, 2024
{
toSignInputs: [
{
index: 0,
Copy link
Member

Choose a reason for hiding this comment

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

This looks hacky. signPsbt is being used to not only sign transactions with a single input. Also, what if the input is not a taproot one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, but it's not failing to sign the psbt
We can do a list with options in src/app/common/utils/psbt.ts. This signPsbtTransaction is used only in Unbonding and Withdrawing

So if it's OKX and we are unbonding or withdrawing, we can pass the boolean flag

Based on that flag OKX will check whether the wallet is on Taproot, and if so - add the needed options


Another solution is for OKX to disable the changes, but question is what is more future-proof?

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