Skip to content

Conversation

@jrick
Copy link
Member

@jrick jrick commented Dec 11, 2025

This adds two additional type cases to the optimized writes for BLAKE-256 (used by transactions and the original PoW algorithm) and BLAKE-3 (used by the current PoW algorithm). It also updates both the block header and transaction code to use these hashers during the calculation of block and transaction hashes.

Requires #3589.

@davecgh davecgh added this to the 2.2.0 milestone Dec 11, 2025
@jrick jrick force-pushed the optimize_hashing branch 5 times, most recently from 27b36d8 to c4ba173 Compare December 12, 2025 14:12
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

I believe the go.mod will need an update because this makes blake256 a direct dep instead of indirect via chainhash.

@jrick jrick force-pushed the optimize_hashing branch 3 times, most recently from 1069c33 to 56a0fe2 Compare January 6, 2026 19:57
This adds two additional type cases to the optimized writes for BLAKE-256
(used by transactions and the original PoW algorithm) and BLAKE-3 (used by the
current PoW algorithm).  It also updates both the block header and transaction
code to use these hashers during the calculation of block and transaction
hashes.
@jrick jrick force-pushed the optimize_hashing branch from 56a0fe2 to 64c7e68 Compare January 6, 2026 20:03
@davecgh davecgh merged commit 4568f76 into decred:master Jan 6, 2026
34 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