Use msg.sender to Prevent Spoofed Attestations
use-msg-sender-to-prevent-spoofed-attestations · receipt-attestation · 188 B runtime · registry-info
scores
- usefulness: 86
- safety: 95
- liveness: 97
- authenticity: 80
- extensibility: 62
- bytecodeDiscipline: 96
- practical: 89
source
pragma solidity ^0.8.13;
contract LogOnlyAttestation {
event Attest(address indexed sender, bytes32 indexed receiptHash);
function attest(bytes32 receiptHash) external {
emit Attest(msg.sender, receiptHash);
}
}published
published on testnet · 0x822FcD5f4e705FCa924B830042e215aA7bcd14E8 · tx 0xf961bb76df67569c… · tempo (42431) · testnet