ETH Price: $2,338.57 (+9.80%)

Transaction Decoder

Block:
11190428 at Nov-04-2020 11:37:04 AM +UTC
Transaction Fee:
0.0012463315 ETH $2.91
Gas Used:
51,715 Gas / 24.1 Gwei

Emitted Events:

246 SignedDigitalAsset.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000007c3a76a1e196e04ff15dd662a623887cfe0d3503, 0x0000000000000000000000004d6a002795d8993e3bc0f2515161eb0dfefceef8, 0000000000000000000000000000000000000000000000029a694f9442420000 )

Account State Difference:

  Address   Before After State Difference Code
0x7C3a76a1...cfE0d3503
(BitherCash: Deployer)
0.486920314292343208 Eth
Nonce: 579
0.485673982792343208 Eth
Nonce: 580
0.0012463315
0xa7d10fF9...37EbA4b86
(Ethermine)
375.482254487662021603 Eth375.483500819162021603 Eth0.0012463315

Execution Trace

SignedDigitalAsset.a9059cbb( )
/*
**   Signed Digital Asset - A contract to store signatures of digital assets.
**   Martin Stellnberger
**   05-Dec-2016
**   martinstellnberger.co
**
**   This software is distributed in the hope that it will be useful,
**   but WITHOUT ANY WARRANTY; without even the implied warranty of
**   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**   GNU lesser General Public License for more details.
**   <http://www.gnu.org/licenses/>.
*/

pragma solidity ^0.4.2;

contract SignedDigitalAsset {
    // The owner of the contract
    address owner = msg.sender;
    // Name of the institution (for reference purposes only)
    string public institution;
    // Storage for linking the signatures to the digital fingerprints
	mapping (bytes32 => string) fingerprintSignatureMapping;

    // Event functionality
	event SignatureAdded(string digitalFingerprint, string signature, uint256 timestamp);
    // Modifier restricting only the owner of this contract to perform certain operations
    modifier isOwner() { if (msg.sender != owner) throw; _; }

    // Constructor of the Signed Digital Asset contract
    function SignedDigitalAsset(string _institution) {
        institution = _institution;
    }
    // Adds a new signature and links it to its corresponding digital fingerprint
	function addSignature(string digitalFingerprint, string signature)
        isOwner {
        // Add signature to the mapping
        fingerprintSignatureMapping[sha3(digitalFingerprint)] = signature;
        // Broadcast the token added event
        SignatureAdded(digitalFingerprint, signature, now);
	}

    // Removes a signature from this contract
	function removeSignature(string digitalFingerprint)
        isOwner {
        // Replaces an existing Signature with empty string
		fingerprintSignatureMapping[sha3(digitalFingerprint)] = "";
	}

    // Returns the corresponding signature for a specified digital fingerprint
	function getSignature(string digitalFingerprint) constant returns(string){
		return fingerprintSignatureMapping[sha3(digitalFingerprint)];
	}

    // Removes the entire contract from the blockchain and invalidates all signatures
    function removeSdaContract()
        isOwner {
        selfdestruct(owner);
    }
}