Skip to content

Conversation

@jgriffiths
Copy link
Contributor

Cleanups for the ccan sha code and a fix for tx_io hashing for non-default sha256 implementations (affecting taproot txs with more than 1 taproot input).

@greenaddress
Copy link

utack 1117e5b

For example, mbedtls hardware hashing requires (at least) semaphore
initialization/aquisition performed by sha256_init() to be done before
the context is considered valid. Openssl with HW hashers is likely the
same for at least some configs.

so, for non-standard setups like these, avoid caching the initial bip340
tagged hash context.

Many thanks to github users @advorzhak and @hazrulnizam for helping to
reproduce the issue!
@jgriffiths jgriffiths merged commit 8fc41b9 into master Jul 16, 2025
5 checks passed
@jgriffiths jgriffiths deleted the mbed_sha256 branch July 16, 2025 10:06
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