Hash Chain Receipt

hash-chain-receipt · receipt-attestation · 326 B runtime · registry-info

scores

source

pragma solidity ^0.8.13;

contract HashChainReceipt {
    mapping(address => bytes32) public receipts;

    function attest(bytes32 dataHash) external returns (bytes32 newHash) {
        newHash = keccak256(abi.encodePacked(receipts[msg.sender], dataHash));
        receipts[msg.sender] = newHash;
    }
}

published

published on mainnet · 0x4c6395b46ac841BE7fC4ce599F869E8f67AB6624 · tx 0x41a0e7252096bd04… · base (8453) · mainnet · source as deployed

published on testnet · 0xB131506ce5d32F1d3b287a4A445A16d01dFab6C1 · tx 0xabace553ffb93cc3… · base (84532) · testnet · source as deployed