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

Add Sighash check to DecodePSBT scripts #92

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

SachinMeier
Copy link
Member

We print a notice if the PSBT includes inputs with non-standard Sighash flags ( a potential vulnerability )

@spec sighash_name(non_neg_integer)
defp sighash_name(n) do
case n do
0x00 -> "SIGHASH_DEFAULT" # for Segwit v1 (taproot) inputs only
Copy link
Member

Choose a reason for hiding this comment

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

that's same as sighash_all right?

Copy link
Member

@kafaichoi kafaichoi left a comment

Choose a reason for hiding this comment

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

utACK

@SachinMeier SachinMeier merged commit f12e803 into master Oct 15, 2024
10 checks passed
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