← Code LabSolidity0/50 solved · 0%
Crypto · medium

35. Merkle proof verification

Verify membership cheaply.

Implement `verify(bytes32[] memory proof, bytes32 root, bytes32 leaf)` by iteratively hashing the leaf with each proof element (smaller first).
Required in your answer: for (keccak256(abi.encodePacked== root