mirror of
https://github.com/social-tw/social-tw-website.git
synced 2026-01-10 07:58:16 -05:00
replace bytes with keccak256 to gen daily nullifier
This commit is contained in:
@@ -402,7 +402,7 @@ contract UnirepApp is Ownable {
|
||||
DailyClaimVHelper.DailyClaimSignals memory signals = dailyClaimVHelpers.decodeDailyClaimSignals(publicSignals);
|
||||
|
||||
// check if proof is used before
|
||||
bytes32 nullifier = bytes32(abi.encodePacked(publicSignals, proof));
|
||||
bytes32 nullifier = keccak256(abi.encodePacked(publicSignals, proof));
|
||||
if (proofNullifier[nullifier]) {
|
||||
revert ProofHasUsed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user