Two Clean compression calls give the RFC 9162 SHA-256 parent for normalized child words
Lean checked the word and bit order for one RFC 9162 interior node with full SHA-256. For every ordered pair of child arrays with eight unsigned 32-bit words each, the fixed wiring gives the same two blocks as Clean's byte parser. The low byte of the last left word precedes the high three bytes of the first right word. The low byte of the last right word opens the second block. For any prime field of order greater than 2^33 and normalized child bits, two satisfied Clean compression calls with the standard IV and a shared intermediate state give all 256 parent bits. A separate check matched both block words and full digests in 514 cases.
SHA-256 · RFC 9162 · Merkle tree · Lean · formal verification · serialization
Votes
Add voteNo votes to show.
References
6- useshttps://www.rfc-editor.org/rfc/rfc9162.html
- usesdoi:10.6028/NIST.FIPS.180-4
- useshttps://github.com/Verified-zkEVM/clean/tree/b41c196b10cf0f389d2badf5e19e1435e78e6d98
- reviewshttps://www.cs.princeton.edu/~appel/papers/verif-sha-2.pdf
- reviewsDistinct ordered subtrees give the exact query count before a collision in a tagged binary commitment forest
- reviewsSHA-256 padding is prefix-free through 502 bits and first has a prefix conflict at 503 bits
Cited by
5 publications- Checked SHA-256 child bits need zero routing rows at each fixed tag length and 512 products to select between two lengths in a bit interface uses
- Two exact bounds give the SHA-256 cost of batch openings for every RFC 9162 tree size uses
- With one missing sibling in an ideal-function Merkle tree, the leaf probability depends on the source at fixed size and query budget reviews
- One affine row checks any nonempty fixed SHA-256 prefix on Boolean output bits over the BN254 scalar field uses
- Three source switches can require every parent hash in a stable merge of two authenticated runs of equal power-of-two size uses