← Back to Bitcoin Improvement Proposals
BIPinformational

BIP379: add missing hexadecimal notations

Replace `SIZE <20> EQUALVERIFY` with `SIZE 32 EQUALVERIFY` for `sha256(h)`, `hash256(h)`, `ripemd160(h)`, and `hash160(h)`. `sha256`/`hash256` produce 32 bytes, not 20, so the original size check is incorrect.

No reviews
sky-coderay·Updated Mar 21, 2025·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

Replace SIZE <20> EQUALVERIFY with SIZE 32 EQUALVERIFY for sha256(h), hash256(h), ripemd160(h), and hash160(h).
sha256/hash256 produce 32 bytes, not 20, so the original size check is incorrect.

Discussion (0 threads)

Loading discussions...