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

Issue 20 #23

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Issue 20 #23

merged 2 commits into from
Oct 11, 2023

Conversation

landabaso
Copy link
Member

Buffer Comparison in #assertPsbtInput:
Addressed a bug related to buffer comparisons in src/descriptors.ts.

  • Modified the comparison logic for witnessScript and redeemScript.
  • Introduced the eqBuffers function to compare two buffers, ensuring that it correctly handles undefined values.
  • Refer to issue-20 for more details.

- Introduced a utility function, `eqBuffers`, to accurately compare two Buffer objects or their fallback values.
- Updated buffer comparisons for `getWitnessScript` and `getRedeemScript` to use the new utility function, ensuring correct and more readable comparisons.

Resolves #20.
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.

1 participant