Inspiration

I've tried to develop some real time social application with other blockchains (Filecoin, Ethereum, etc.) before. With these blockchains, I feel it's really hard for me to implement a simple prototype in which I can notify new content to users easily. Most of these blockchains will do that with an offline method. Blockchain in the application can only be used as incentive method. In my mind, a web3 social application should be capable of keep everything decentralized. That's what I think of Linera can give me some new way to implement that. So we create ResPeer on Linera for a real web3 decentralized content delivery application.

What it does

ResPeer aims to build a community in which author can publish content to get credits easily and the credits can be used to buy assets.

In ResPeer, people can submit their post to the network. After it's reviewed by Reviewer DAO, the posts will be published to all subscriber, thus the author will get remuneration in Native Token and ResPeer credits from ResPeer. Each reviewer who reviews the article will also get some fee (also in Native Token and ResPeer credits) for that. After the post is published, user can read, comment, like or dislike the articles. They will also be rewarded with ResPeer credits.

ResPeer also provide a market for artist to sell their artwork. Users can buy those artworks to design their personal avatar which will be show in their article, comment, and personal center. Of course they can sell their artwork with different price again. The artworks will be priced with Native Token. But for user who has ResPeer credits, their credits can deduct a part of artwork price.

Beside artist and author, normal user can also earn some Native Token and ResPeer credits through activity. Anyone can hold an activity. If the activity is approved by Reviewer DAO, it will lock some budget from foundation for the activity. After activity starts, user can vote for the participants. Activity host can set the ratio of reward which will be distributed to voters. When activity is finalized, those part reward will be distributed to vote users.

For the login system, due to currently Linera implementation is quite different from other blockchain, we create an infrastructure named Microchain as a Service in which we can implement our Linera wallet (named CheCko). ResPeer will connect to CheCho when user need to login.

How we built it

  • 1 We build the ResPeer application based on Linera client tool
  • 2 We build Microchain as a Service through ResPeer folk version of linera-protocol
  • 3 We build website application and browser extension of CheCko

Challenges we ran into

Current Linera Node Service seems don't support recovery chain store from key/chainId, so we need to take some time for that then our user can backup their key/chainId, and recovery their chain like other web3 wallet.

Accomplishments that we're proud of

  • 1 We really proud that we're consecutive winner of Linera hackathon
  • 2 We design a reasonable wallet infrastructure Microchain as a Service which is quite different from official implementation. We think of that's a good supplementary of Linera eco-system
  • 3 We implement the first browser Linera wallet based on MaaS
  • 4 We create a full function ResPeer application in which user can login/post/comment/sell artwork/earn

What we learned

We learn a lot from Linera about how to build a scalable web3 applition.

What's next for ResPeer: P2P Content Publishing Application on Linera

  • 1 Align schedule with Linera and try to build production version
  • 2 Recheck the subscription implementation with Linera native mechanism
  • 3 Build producer community for production operation (may be with some online race before mainnet)

Built With

Share this project:

Updates