Skip to content

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
@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