LensProtocol is an open social graph protocol for web 3. Many of us have heard of Lens.
But how does Lens work – what are the main components? How to build on top of Lens?
I summarize the lens’ document gist as follows.
First, what is the Lens protocol?
The Lens protocol is a user-owned open social graph that can be plugged into any application.
It’s composable and decentralized for you to build so you can focus on creating great experiences, not growing your user base.
On Lens, you will:
Own your content.
Own your social graph.
own your data.
To understand the concept, here is a screenshot of my Lens Profile NFT. I was lucky enough to get whitelisted and Mint my own Lens Profile NFT. lensfrens.xyz/ikola.lens
Since May 18, 2022, the Lens protocol has been officially launched on the Polygon mainnet. Mint personal information is still whitelisted for early community members.
So, at the protocol level, how does LENS work? Let’s start with the Lens Profile NFT.
Lens Profile NFT – When you create your own profile in LENS, it’s actually Mint an NFT in your wallet. Ownership of this NFT enables you to control the copyright of the information you publish.
Profile NFT owners can post information under their Lens NFT Profile, the content of which is associated with your Lens Profile NFT.
What will the published information be like? It can be a post, comment or mirror. Mirror means “repost” or “retweet”.
Published information has a ContentURI, which points to specific content, which can be text, images, or videos. It can be stored in a decentralized protocol like IPFS or Arweave, or in a centralized way like AWS S3.
Posting information also has two additional modules: 1) Favorites module, 2) References module. More modules to come soon.
Taking a step back, LENS consists of three types of modules:
1) Follow module
2) Collect modules
3) Reference modules
LENS adopts a modular design, and more modules can be created.
Let’s go through each module one by one.
1) Focus Module – Focusing on personal information is simple, but LENS extends this concept.
When you follow a person’s profile, a “Follow NFT” is created in your wallet. The attention module also supports a unique logic. For example, when you follow someone’s personal information, you need to pay.
Technically, the logic contract determines the logic that must be executed when the wallet attempts to focus on a given personal information. Profile NFTs can be attached to specific focus module logic.
For example, the logic can determine whether to issue Follow NFTs to users trying to follow personal information. There may be fees or other checks – there are limits to your imagination here.
2) Collection Module – This module allows creators to monetize their content. Because creators own their content through the LENS protocol, allowing their fans to buy that content.
The Favorites module contains logic that allows other users to mint your postings into NFTs. This NFT will reference the URI where the information was originally published.
3) References module – This module contains the logic to decide who can comment or mirror a new comment. Since comments reference information posted by others, they are subject to the citing module conditions in which the information was originally posted.
For example, a post could have a trackback module that restricts attention to comments on the original poster’s account only. In this case, commenters who do not hold Follow NFTs will not be able to comment on their transactions.
Now we have introduced the three main modules of LENS: the follow module, the collection module and the reference module. Again, LENS is modular and more modules can be created. There is still a lot of room for imagination about what the social platform of web3 will look like and how the content will be realized.
This leads us to the last part of the tweet: the built-in governance of LENS.
LENS has built-in governance capabilities. These capabilities enable social coordination innovations, for example, how DAOs are coordinated.
For example, you can use LENS to create a social DAO. How to create? Do you remember the “Follow NFT” we talked about earlier? They contain governance features such as voting delegation. Creators, DAOs, etc. can create different voting strategies.
For another example, there may be the following logic: “The first 1000 followers have 5 voting opportunities”, “The longer you follow, the more voting rights you have”, “You need to follow each core of a project.” Contributors can vote”
From a technical point of view, to create a DAO, all you need to do is deploy a contract that interfaces with Follow NFT’s built-in functionality. The contract should allow to create proposals and connect to Profile’s Follow NFT to read governance rights (vote on appropriate blocks).
There are currently over 50 applications built on Lens, such as Lensfrens (built by the team).
Finally, thanks to the Lens team:
This is an amazing achievement. Lens has the opportunity to be a key social Lego for web 3.
Lens has a comprehensive introduction on its official website ( https://docs.lens.xyz/docs) – I just did some copy+paste and simplification here.
Posted by:CoinYuppie，Reprinted with attribution to:https://coinyuppie.com/lens-protocol-a-decentralized-web3-social-graph/
Coinyuppie is an open information publishing platform, all information provided is not related to the views and positions of coinyuppie, and does not constitute any investment and financial advice. Users are expected to carefully screen and prevent risks.