    function registerHash(bytes32 hash) external payable
    {
        require(contractactive == true);
        require(getHashOwnersCount(hash) == 0);
        require(msg.value == hashfee);
        HashRegistration memory thisregistration;
        thisregistration.owner = msg.sender;
        thisregistration.registrationtime = now;
        HashList[hash].push(thisregistration);
        HashListLength++;
        emit RegisterHashEvent(thisregistration.owner, hash, thisregistration.registrationtime);
    }