← 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 reviewsCollections: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...