-
Notifications
You must be signed in to change notification settings - Fork 33
Description
There is significant overlap between posts and feeds. Looking at implementation details (they’re in the same folder, similar code), and documentation (post is mentioned prominently but feed is not) it seems like one was an afterthought of the other.
The only practical difference is that a post can be read on-chain and it is more expensive to make and it can only be done once.
| Post | Feed | |
|---|---|---|
| Can post data | 😔 Once | 😄 Many times |
| Data format | Multihash | Hash |
| Posting cost | 😞 Expensive (SSTORE) |
😄 Cheap (LOG3) |
| Can post metadata updates | ✅ | ✅ |
| Can be read on-chain | ✅ | ❌ |
There is no use case presented in documentation where current on-chain (SSTORE) data is useful. I cannot think of any on-chain contract that would want to purchase data using Erasure.
Recommendation: remove Post and ProofHash contracts. In the documentation continue to talk about feeds and posts. But actually a post will be implemented just as a feed with only one entry.
References: