Inspired by Proof-of-History
The Tylix token smart contract not only offers a digital asset, but also has the ability to provide historical verification and proof through a unique timestamping system. This system addresses a feature that is lacking in traditional blockchain structures: A verifiable on-chain record of time-based events.
How the System Works
The recordHistory(bytes32 newHash) function in the contract records the hashed version of any data obtained from the outside world (e.g. a document, a transaction, a data set or an event) into the blockchain. However, this recording is not a simple "storage", but a process based on rules and cryptographic security

Uniqueness Check
If the hash to be saved has already been saved in the chain (historyHashes[newHash]
), the operation is rejected. In this way, the same event or data will not be stored in the system in duplicate. This guarantees that the data is processed only once.
Temporal Integrity
A new record can only be made after the timestamp of the previous record. This means that block.timestamp > lastTimestamp
. This mechanism prevents the creation of fake historical records. Each record has to be in real time, at a later moment in the chain.
Chain of Trust
Each new record is updated as lastHistoryHash
. In this way, the system creates a verifiable history chain. Each hash affects not only its own security, but also the security of the records that follow it.
What Works
This system offers particularly strong benefits in the following areas:
Verification of documents or agreements: For example, when the hash of a contract is saved in a Tylix contract, the parties can prove that the contract is unchanged and previously recorded.
Proof of data / Timestamping: Provides cryptographic evidence that any dataset (e.g. a medical record, report, analysis result) exists on a specific date and has not been altered.
Use as legal evidence: In some countries, hashed and timestamped data is accepted as legal evidence. The Tylix contract can meet this need directly.
Security in DAO & voting systems: In on-chain voting systems, this system can be used to verify the validity of votes or the verifiability of campaign histories.
Verify Process
Thanks to the verifyHistory(bytes32 hashToVerify)
function in the contract, it is easy to find out if any hash has been recorded before. Since this function is view only, it can be queried without spending any gas fee. This makes the system extremely easy and accessible for users and third parties.
This system provides a powerful infrastructure to ensure traceability of the digital past, especially in regulation, transparency, legal assurance and structures such as the DAO. It transforms Tylix from a mere token into a platform that provides time-based data integrity.
Last updated