Skip to content

feat(wasm-utxo): add BLAKE2b-256 personalization helper#333

Merged
OttoAllmendinger merged 1 commit into
masterfrom
zcash-blake2b
Jul 23, 2026
Merged

feat(wasm-utxo): add BLAKE2b-256 personalization helper#333
OttoAllmendinger merged 1 commit into
masterfrom
zcash-blake2b

Conversation

@veetragjain

Copy link
Copy Markdown
Contributor

Shared primitive for Zcash ZIP-243/ZIP-244/ZIP-316 hashing, extracted as the base for the v6 transaction and unified-address work (PR1 of 3).

The BitGo miniscript fork already has a blake2b_256_personal helper but it is pub(crate) and unreachable from this crate, so we reimplement it here on the blake2 crate (already in the tree transitively; pinned as a direct dep). Includes the block-aligned finalization fix and a variable-length variant (blake2b_var_personal) that F4Jumble needs. Ships with unit tests.

Shared primitive for Zcash ZIP-243/ZIP-244/ZIP-316 hashing, extracted as
the base for the v6 transaction and unified-address work (PR1 of 3).

The BitGo miniscript fork already has a blake2b_256_personal helper but it
is pub(crate) and unreachable from this crate, so we reimplement it here on
the blake2 crate (already in the tree transitively; pinned as a direct dep).
Includes the block-aligned finalization fix and a variable-length variant
(blake2b_var_personal) that F4Jumble needs. Ships with unit tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@veetragjain
veetragjain marked this pull request as ready for review July 23, 2026 10:20
@veetragjain
veetragjain requested a review from a team as a code owner July 23, 2026 10:20
@OttoAllmendinger
OttoAllmendinger merged commit 9226c60 into master Jul 23, 2026
19 checks passed
@veetragjain
veetragjain deleted the zcash-blake2b branch July 23, 2026 10:22
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