I want to record certain events on chain, so there is later no dispute that party X indeed logged events E1, E2 etc at times T1, T2 etc. Most of these events will essentially be hashes of certain off-chain content.
Examples:
- Poet X just completed his grand cyber poem No. 12, and wants to record that without publishing the poem yet. (So the payload is the hash of the poem text file)
- Company X has just adopted a new privacy policy, and wants to record that.
Things like that.
I could create a smart contract that has a mapping from content hash to key, or maybe from content hash to a struct of key and timestamp. The downside seems to be that this smart contract would ever only grow in size, and become unaffordable sooner or later.
Is there some better way of doing this? Maybe only temporarily putting the entry into the mapping, and for efficiently keeping a "browsing index" off-chain?