ETH Price: $3,199.37 (+4.97%)

Contract

0x5cee95232Ba8e71053fF0a7e87c8f3D836fc1eBe
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040101444432020-05-26 23:52:521628 days ago1590537172IN
 Contract Creation
0 ETH0.007964617

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x37FD71AA...9802bA34e
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DocumentCertoChainContract

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-05-16
*/

pragma solidity ^0.6.8;
//SPDX-License-Identifier: UNLICENSED

//certo v20050101005c060 noima (c) all right reserved 2020
contract BaseCertoChainContract {
    address payable creator;
    address payable owner;

    bool public isSealed;

    constructor() public {
        creator = msg.sender;
        owner = msg.sender;
    }

    modifier onlyBy(address _account) {
        require(msg.sender != _account);
        _;
    }

    modifier onlyIfNotSealed() //semantic when sealed is not possible to change sensible data
    {
        if (isSealed) revert();
        _;
    }

    function kill() public onlyBy(owner) {
        selfdestruct(owner);
    }

    function setCreator(address payable _creator) public onlyBy(creator) {
        creator = _creator;
        emit EventReady(address(this), "setCreator");
    }

    function setOwner(address payable _owner) public onlyBy(owner) {
        owner = _owner;
        emit EventReady(address(this), "SetOwner");
    }

    function setSealed() public onlyBy(owner) {
        isSealed = true;
        emit EventSealed(address(this));
    } //seal down contract not reversible

    event EventSealed(address self); //invoked when contract is sealed
    event EventSetCreator(address self); //invoked when we change creator
    event EventSetOwner(address self); //invoked when we change owner
    event EventReady(address self, string method); //invoked when we have done the method action
}


contract TagCertoChainContract is BaseCertoChainContract {
    bool public isActive;

    function constructorx(address payable _owner) public {
        owner = (_owner);
        emit EventReady(address(this), "constructor");
    }

    constructor(
        address payable _owner,
        bytes32 signaturehash,
        bytes32 signaturemaskR,
        bytes32 signaturemaskS,
        uint8 signaturemaskV
    ) public {
        owner = (_owner);
        SignatureMaskR = signaturemaskR;
        SignatureMaskS = signaturemaskS;
        SignatureMaskV = signaturemaskV;
        SignatureHash = signaturehash;
        emit EventReady(address(this), "constructor");
    }

    function ActivateTag(address Target) public onlyBy(owner) {
        TargetDocument = Target;
        emit EventReady(address(this), "ActivateTag");
    }

    function SignTag(
        bytes32 signaturehash,
        bytes32 signaturemaskR,
        bytes32 signaturemaskS,
        uint8 signaturemaskV
    ) public onlyBy(owner) {
        SignatureMaskR = signaturemaskR;
        SignatureMaskS = signaturemaskS;
        SignatureMaskV = signaturemaskV;
        SignatureHash = signaturehash;
        emit EventReady(address(this), "SignTag");
    }

    function VerifyTag(bytes8 signaturepinS)
        public
        view
        returns (string memory)
    {
        bytes32 signatureR;
        bytes32 signatureS;
        bytes32 signatureSpad;
        signatureSpad = signaturepinS;
        signatureR = SignatureMaskR;
        signatureS = SignatureMaskS | (signatureSpad);
        //emit EventReady(address(this),"VerifyTag");
        if (
            ecrecover(SignatureHash, SignatureMaskV, signatureR, signatureS) ==
            creator
        ) {
            return "OK IS TAG VALID";
        } else {
            return "NOT A VALID TAG";
        }

        // return signatureS;
    }

    function RecoverSigner(
        bytes32 msgHash,
        bytes32 signaturepinR,
        bytes32 signaturepinS
    ) public view returns (address) {
        bytes32 signatureR;
        bytes32 signatureS;
        signatureR = SignatureMaskR | signaturepinR;
        signatureS = SignatureMaskS | signaturepinS;

        return ecrecover(msgHash, SignatureMaskV, signatureR, signatureS);
    }

    address public TargetDocument;
    bytes32 public SignatureMaskR;
    bytes32 public SignatureMaskS;
    uint8 public SignatureMaskV;

    bytes32 public SignatureHash;
}


contract DocumentCertoChainContract is BaseCertoChainContract {
    //string  public  Description ; //Description the description is in the trasaction log
    //string  public  FileName;     //FileName the file FileName is in the transaction log
    bytes32 public FileHash; //SecuritySeal HASH
    bytes32 public DescriptionHash; //SecuritySeal HASH
    int256 public FileData; //SecuritySeal DATA format AAMMDD

    address public NextOwner;
    address public PrevOwner;

    constructor(
       string memory _Description,
       // string memory _FileName,
        bytes32 _DescriptionHash,
        bytes32 _FileHash,
        int256 _FileData
    ) public {
        NextOwner = address(this);
        //Description=_Description; the description is in the trasaction log
        //FileName=_FileName;  the file FileName is in the transaction log
        FileHash = _FileHash;
        DescriptionHash = _DescriptionHash;
        FileData = _FileData;
        //emit EventNote(address(this), _FileName);
        emit EventNote(address(this), _Description);
        emit EventReady(address(this), "constructor");
    }

    function setNextOwner(address _NextOwner)
        public
        onlyBy(creator)
        onlyIfNotSealed()
    {
        NextOwner = _NextOwner;
        emit EventNewOwner(address(this));
    }

    function setPrevOwner(address _PrevOwner)
        public
        onlyBy(creator)
        onlyIfNotSealed()
    {
        PrevOwner = _PrevOwner;
        emit EventNewPrevOwner(address(this));
    }

    event EventNewOwner(address self);
    event EventNewPrevOwner(address self);

    event EventNote(address self,  string  note); // trace a note in the logs
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_Description","type":"string"},{"internalType":"bytes32","name":"_DescriptionHash","type":"bytes32"},{"internalType":"bytes32","name":"_FileHash","type":"bytes32"},{"internalType":"int256","name":"_FileData","type":"int256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"}],"name":"EventNewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"}],"name":"EventNewPrevOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"},{"indexed":false,"internalType":"string","name":"note","type":"string"}],"name":"EventNote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"},{"indexed":false,"internalType":"string","name":"method","type":"string"}],"name":"EventReady","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"}],"name":"EventSealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"}],"name":"EventSetCreator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"self","type":"address"}],"name":"EventSetOwner","type":"event"},{"inputs":[],"name":"DescriptionHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FileData","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FileHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NextOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PrevOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_creator","type":"address"}],"name":"setCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_NextOwner","type":"address"}],"name":"setNextOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_PrevOwner","type":"address"}],"name":"setPrevOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSealed","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a45760003560e01c806313af4035146100a95780632d202d24146100d15780633f516018146100f757806341c0e1b51461011d57806344673b2d14610125578063449c198d14610149578063475169101461015157806350ac98281461016b578063631f9852146101735780637b7e4f211461018f578063a07c132b14610197578063f0456691146101bd575b600080fd5b6100cf600480360360208110156100bf57600080fd5b50356001600160a01b03166101c5565b005b6100cf600480360360208110156100e757600080fd5b50356001600160a01b031661023d565b6100cf6004803603602081101561010d57600080fd5b50356001600160a01b03166102c0565b6100cf61033a565b61012d610361565b604080516001600160a01b039092168252519081900360200190f35b6100cf610370565b6101596103d2565b60408051918252519081900360200190f35b6101596103d8565b61017b6103de565b604080519115158252519081900360200190f35b6101596103ee565b6100cf600480360360208110156101ad57600080fd5b50356001600160a01b03166103f4565b61012d610477565b6001546001600160a01b0316338114156101de57600080fd5b600180546001600160a01b0319166001600160a01b03841617905560408051308152602081018290526008818301526729b2ba27bbb732b960c11b60608201529051600080516020610487833981519152916080908290030190a15050565b6000546001600160a01b03163381141561025657600080fd5b600154600160a01b900460ff161561026d57600080fd5b600580546001600160a01b0319166001600160a01b0384161790556040805130815290517fa0ccbd67048573ce351c45b2a4b73bf775758608cc269a83ff7a9f9dd6640542916020908290030190a15050565b6000546001600160a01b0316338114156102d957600080fd5b600080546001600160a01b0319166001600160a01b0384161790556040805130815260208101829052600a818301526939b2ba21b932b0ba37b960b11b60608201529051600080516020610487833981519152916080908290030190a15050565b6001546001600160a01b03163381141561035357600080fd5b6001546001600160a01b0316ff5b6005546001600160a01b031681565b6001546001600160a01b03163381141561038957600080fd5b6001805460ff60a01b1916600160a01b1790556040805130815290517f4eb6783909ea07b0aa366e4b899fdbcd45aef4172ea91e7d25c878f2ac4a11419181900360200190a150565b60025481565b60045481565b600154600160a01b900460ff1681565b60035481565b6000546001600160a01b03163381141561040d57600080fd5b600154600160a01b900460ff161561042457600080fd5b600680546001600160a01b0319166001600160a01b0384161790556040805130815290517f8503f87567a546e113bb8e9f354d9d58486f32ed1fee0ee7a2d7176dcfc00039916020908290030190a15050565b6006546001600160a01b03168156fedeee49121786e5dd3d7163aaba8eebbb9a3d64c6965ae64fe485db5507d3f49aa2646970667358221220dd913e3efe7a5b9d2f1446caa0dfb0c886d2eccbb0f4939479778fce38df9dff64736f6c63430006080033

Deployed Bytecode Sourcemap

4036:1735:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4036:1735:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;863:149:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;863:149:0;-1:-1:-1;;;;;863:149:0;;:::i;:::-;;5189:200;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5189:200:0;-1:-1:-1;;;;;5189:200:0;;:::i;694:161::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;694:161:0;-1:-1:-1;;;;;694:161:0;;:::i;611:75::-;;;:::i;4461:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;4461:24:0;;;;;;;;;;;;;;1020:118;;;:::i;4289:23::-;;;:::i;:::-;;;;;;;;;;;;;;;;4396:22;;;:::i;225:20::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;4339:30;;;:::i;5397:204::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5397:204:0;-1:-1:-1;;;;;5397:204:0;;:::i;4492:24::-;;;:::i;863:149::-;919:5;;-1:-1:-1;;;;;919:5:0;404:10;:22;;;396:31;;12:1:-1;9;2:12;396:31:0;937:5:::1;:14:::0;;-1:-1:-1;;;;;;937:14:0::1;-1:-1:-1::0;;;;;937:14:0;::::1;;::::0;;967:37:::1;::::0;;986:4:::1;967:37:::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;;;967:37:0;;;;;;-1:-1:-1;;;;;;;;;;;967:37:0;;;;;;;;::::1;863:149:::0;;:::o;5189:200::-;5263:7;;-1:-1:-1;;;;;5263:7:0;404:10;:22;;;396:31;;12:1:-1;9;2:12;396:31:0;565:8:::1;::::0;-1:-1:-1;;;565:8:0;::::1;;;561:22;;;12:1:-1;9::::0;2:12:::1;561:22:0;5315:9:::2;:22:::0;;-1:-1:-1;;;;;;5315:22:0::2;-1:-1:-1::0;;;;;5315:22:0;::::2;;::::0;;5353:28:::2;::::0;;5375:4:::2;5353:28:::0;;;;::::2;::::0;::::2;::::0;;;;;;::::2;5189:200:::0;;:::o;694:161::-;754:7;;-1:-1:-1;;;;;754:7:0;404:10;:22;;;396:31;;12:1:-1;9;2:12;396:31:0;774:7:::1;:18:::0;;-1:-1:-1;;;;;;774:18:0::1;-1:-1:-1::0;;;;;774:18:0;::::1;;::::0;;808:39:::1;::::0;;827:4:::1;808:39:::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;;;808:39:0;;;;;;-1:-1:-1;;;;;;;;;;;808:39:0;;;;;;;;::::1;694:161:::0;;:::o;611:75::-;641:5;;-1:-1:-1;;;;;641:5:0;404:10;:22;;;396:31;;12:1:-1;9;2:12;396:31:0;672:5:::1;::::0;-1:-1:-1;;;;;672:5:0::1;659:19;4461:24:::0;;;-1:-1:-1;;;;;4461:24:0;;:::o;1020:118::-;1055:5;;-1:-1:-1;;;;;1055:5:0;404:10;:22;;;396:31;;12:1:-1;9;2:12;396:31:0;1084:4:::1;1073:15:::0;;-1:-1:-1;;;;1073:15:0::1;-1:-1:-1::0;;;1073:15:0::1;::::0;;1104:26:::1;::::0;;1124:4:::1;1104:26:::0;;;;::::1;::::0;;;;::::1;::::0;;::::1;1020:118:::0;:::o;4289:23::-;;;;:::o;4396:22::-;;;;:::o;225:20::-;;;-1:-1:-1;;;225:20:0;;;;;:::o;4339:30::-;;;;:::o;5397:204::-;5471:7;;-1:-1:-1;;;;;5471:7:0;404:10;:22;;;396:31;;12:1:-1;9;2:12;396:31:0;565:8:::1;::::0;-1:-1:-1;;;565:8:0;::::1;;;561:22;;;12:1:-1;9::::0;2:12:::1;561:22:0;5523:9:::2;:22:::0;;-1:-1:-1;;;;;;5523:22:0::2;-1:-1:-1::0;;;;;5523:22:0;::::2;;::::0;;5561:32:::2;::::0;;5587:4:::2;5561:32:::0;;;;::::2;::::0;::::2;::::0;;;;;;::::2;5397:204:::0;;:::o;4492:24::-;;;-1:-1:-1;;;;;4492:24:0;;:::o

Swarm Source

ipfs://dd913e3efe7a5b9d2f1446caa0dfb0c886d2eccbb0f4939479778fce38df9dff

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.