Fix secretHash zero overload in claim #7
Merged@julien wants to merge
8-fix-secrethash-zero into mainMerged as
7d97bbb4e340.- @julien opened this merge request · Sep 18, 2026edited
closes #8
The privacy
deposit(bytes32,uint256)overload accepted anysecretHash, includingbytes32(0).claimusessecretHash == bytes32(0)as its "does not exist" sentinel, so a zero-hash envelope became permanently unclaimable.deposit(bytes32,uint256)now reverts withZeroSecretHashon a zero hash. Addedtest_RevertWhen_SecretHashIsZero.
Sign in to comment.