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

Change version byte for transaction hashes #12651

Merged
merged 4 commits into from
Feb 13, 2023

Conversation

psteckler
Copy link
Member

@psteckler psteckler commented Feb 11, 2023

Change the version byte for transaction hashes so that new hashes can be distinguished from old ones.

Transaction_hash.hash_signed_command_v1 now converts V1 commands to V2, then calls hash_signed_command. That's what we'll use for the db migration to produce hashes for existing commands.

The module passed to Make_base58_check is no longer a "top-tagged" module, since we don't have to maintain compatibility with old hashes. That was the only use of top-tagging for Blake2, so remove that.

Replaces #12649, which used a more complex approach to distinguish new hashes.

@psteckler psteckler requested a review from a team as a code owner February 11, 2023 16:18
@psteckler
Copy link
Member Author

!ci-build-me

@psteckler
Copy link
Member Author

!ci-build-me

@psteckler psteckler requested a review from a team as a code owner February 11, 2023 17:23
@psteckler
Copy link
Member Author

!ci-build-me

@psteckler
Copy link
Member Author

!ci-build-me

Copy link
Contributor

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

Nice!

@psteckler psteckler merged commit 01e963c into develop Feb 13, 2023
@psteckler psteckler deleted the feature/txn-hash-change-version-byte branch February 13, 2023 15:56
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