Secure merkle tree implementations for airdrops and whitelists
Review the merkle tree implementation in this contract:
```
${{CONTRACT_CODE}}
```
Use Case: ${{USE_CASE}}
Leaf Structure: ${{LEAF_STRUCTURE}}
Security review:
1. Merkle proof verification
2. Vulnerabilities check:
- Second preimage attacks
- Leaf/node confusion
- Duplicate leaf handling
3. Root update security
4. Claim tracking mechanism
5. Front-running protection
6. Gas optimization
7. Off-chain generation security
8. Standard library usage
9. Recommended improvements
10. Testing methodology
Include secure generation scripts.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{CONTRACT_CODE][{USE_CASE][{LEAF_STRUCTURE]