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: remove padding input from ledger PSBT signing #311

Merged

Conversation

victorkirov
Copy link
Member

🔘 PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Enhancement

📜 Background

Ledger has an issue with signing PSBTs where the outputs spend more than the inputs. We were adding a dummy input to cater for this but we weren't removing that input before returning the signed PSBT.

🔄 Changes

Does this PR introduce a breaking change?

  • Yes, Incompatible API changes
  • No, Adds functionality (backwards compatible)
  • No, Bug fixes (backwards compatible)

Changes:

  • We now remove the dummy input

✅ Review checklist

Please ensure the following are true before merging:

  • Code Style is consistent with the project guidelines.
  • Code is readable and well-commented.
  • No unnecessary or debugging code has been added.
  • Security considerations have been taken into account.
  • The change has been manually tested and works as expected.
  • Breaking changes and their impacts have been considered and documented.
  • Code does not introduce new technical debt or issues.

@victorkirov victorkirov self-assigned this Dec 7, 2023
@teebszet
Copy link
Member

teebszet commented Dec 8, 2023

is the manual test to use a ledger device to sign any psbt request?

@victorkirov
Copy link
Member Author

is the manual test to use a ledger device to sign any psbt request?

Yes, just make sure we can still list on ME 👍

Copy link
Contributor

Test this PR with npm i --save-exact @secretkeylabs/xverse-core@5.2.0-40afbac

@teebszet
Copy link
Member

Screen.Recording.2023-12-12.at.3.00.52.PM.mov

ME listing looks good

@teebszet teebszet merged commit 8d13683 into develop Dec 12, 2023
3 checks passed
@victorkirov victorkirov deleted the victor/eng-3415-remove-padding-input-on-ledger-sign-psbt branch December 12, 2023 07:05
@teebszet teebszet changed the title Remove padding input from ledger PSBT signing fix: remove padding input from ledger PSBT signing Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants