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

Update binding hash function signature #1396

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

AaronFeickert
Copy link
Contributor

PR intention

Updates SpendTransaction::hash_bind_inner to make it static and take S1 and T as arguments.

Code changes brief

Previously, the function in question was not static, and inferred S1 and T from the object. This was inconsistent and had a bad code smell.

This PR makes the function static and is explicit about all fields used in the hash.

@AaronFeickert
Copy link
Contributor Author

This shouldn't affect verification, but should be tested with a reindex to confirm.

@levonpetrosyan93 levonpetrosyan93 merged commit 2139540 into firoorg:master Jan 20, 2024
5 checks passed
@AaronFeickert AaronFeickert deleted the binding-hash-header branch January 20, 2024 18:02
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